Package com.vmware.nsx_policy.model
Class DnsHeader.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.DnsHeader.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsHeader
build()
DnsHeader.Builder
setAddress(java.lang.String address)
This is used to define what is being asked or responded.DnsHeader.Builder
setAddressType(java.lang.String addressType)
Possible values are:DnsHeader.ADDRESS_TYPE_V4
DnsHeader.ADDRESS_TYPE_V6
This is used to specify the type of the address.DnsHeader.Builder
setMessageType(java.lang.String messageType)
Possible values are:DnsHeader.MESSAGE_TYPE_QUERY
DnsHeader.MESSAGE_TYPE_RESPONSE
Specifies the message type whether it is a query or a response.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofDnsHeader
.
-
-
Method Detail
-
setAddress
public DnsHeader.Builder setAddress(java.lang.String address)
This is used to define what is being asked or responded. format: hostname-or-ip- Parameters:
address
- New value for the property.
-
setAddressType
public DnsHeader.Builder setAddressType(java.lang.String addressType)
Possible values are: This is used to specify the type of the address. V4 - The address provided is an IPv4 domain name/IP address, the Type in query or response will be A V6 - The address provided is an IPv6 domain name/IP address, the Type in query or response will be AAAA- Parameters:
addressType
- New value for the property.
-
setMessageType
public DnsHeader.Builder setMessageType(java.lang.String messageType)
Possible values are: Specifies the message type whether it is a query or a response.- Parameters:
messageType
- New value for the property.
-
build
public DnsHeader build()
-
-