@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DnsServiceDiscovery extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the DNS service discovery information for your virtual node.
Constructor and Description |
---|
DnsServiceDiscovery() |
Modifier and Type | Method and Description |
---|---|
DnsServiceDiscovery |
clone() |
boolean |
equals(Object obj) |
String |
getHostname()
Specifies the DNS service discovery hostname for the virtual node.
|
String |
getIpPreference()
The IP version to use to control traffic within the mesh.
|
String |
getResponseType()
Specifies the DNS response type for the virtual node.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHostname(String hostname)
Specifies the DNS service discovery hostname for the virtual node.
|
void |
setIpPreference(String ipPreference)
The IP version to use to control traffic within the mesh.
|
void |
setResponseType(String responseType)
Specifies the DNS response type for the virtual node.
|
String |
toString()
Returns a string representation of this object.
|
DnsServiceDiscovery |
withHostname(String hostname)
Specifies the DNS service discovery hostname for the virtual node.
|
DnsServiceDiscovery |
withIpPreference(IpPreference ipPreference)
The IP version to use to control traffic within the mesh.
|
DnsServiceDiscovery |
withIpPreference(String ipPreference)
The IP version to use to control traffic within the mesh.
|
DnsServiceDiscovery |
withResponseType(DnsResponseType responseType)
Specifies the DNS response type for the virtual node.
|
DnsServiceDiscovery |
withResponseType(String responseType)
Specifies the DNS response type for the virtual node.
|
public void setHostname(String hostname)
Specifies the DNS service discovery hostname for the virtual node.
hostname
- Specifies the DNS service discovery hostname for the virtual node.public String getHostname()
Specifies the DNS service discovery hostname for the virtual node.
public DnsServiceDiscovery withHostname(String hostname)
Specifies the DNS service discovery hostname for the virtual node.
hostname
- Specifies the DNS service discovery hostname for the virtual node.public void setIpPreference(String ipPreference)
The IP version to use to control traffic within the mesh.
ipPreference
- The IP version to use to control traffic within the mesh.IpPreference
public String getIpPreference()
The IP version to use to control traffic within the mesh.
IpPreference
public DnsServiceDiscovery withIpPreference(String ipPreference)
The IP version to use to control traffic within the mesh.
ipPreference
- The IP version to use to control traffic within the mesh.IpPreference
public DnsServiceDiscovery withIpPreference(IpPreference ipPreference)
The IP version to use to control traffic within the mesh.
ipPreference
- The IP version to use to control traffic within the mesh.IpPreference
public void setResponseType(String responseType)
Specifies the DNS response type for the virtual node.
responseType
- Specifies the DNS response type for the virtual node.DnsResponseType
public String getResponseType()
Specifies the DNS response type for the virtual node.
DnsResponseType
public DnsServiceDiscovery withResponseType(String responseType)
Specifies the DNS response type for the virtual node.
responseType
- Specifies the DNS response type for the virtual node.DnsResponseType
public DnsServiceDiscovery withResponseType(DnsResponseType responseType)
Specifies the DNS response type for the virtual node.
responseType
- Specifies the DNS response type for the virtual node.DnsResponseType
public String toString()
toString
in class Object
Object.toString()
public DnsServiceDiscovery clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.