@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetAddress extends Object implements Serializable, Cloneable, StructuredPojo
In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.
Constructor and Description |
---|
TargetAddress() |
Modifier and Type | Method and Description |
---|---|
TargetAddress |
clone() |
boolean |
equals(Object obj) |
String |
getIp()
One IPv4 address that you want to forward DNS queries to.
|
String |
getIpv6()
One IPv6 address that you want to forward DNS queries to.
|
Integer |
getPort()
The port at
Ip that you want to forward DNS queries to. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIp(String ip)
One IPv4 address that you want to forward DNS queries to.
|
void |
setIpv6(String ipv6)
One IPv6 address that you want to forward DNS queries to.
|
void |
setPort(Integer port)
The port at
Ip that you want to forward DNS queries to. |
String |
toString()
Returns a string representation of this object.
|
TargetAddress |
withIp(String ip)
One IPv4 address that you want to forward DNS queries to.
|
TargetAddress |
withIpv6(String ipv6)
One IPv6 address that you want to forward DNS queries to.
|
TargetAddress |
withPort(Integer port)
The port at
Ip that you want to forward DNS queries to. |
public void setIp(String ip)
One IPv4 address that you want to forward DNS queries to.
ip
- One IPv4 address that you want to forward DNS queries to.public String getIp()
One IPv4 address that you want to forward DNS queries to.
public TargetAddress withIp(String ip)
One IPv4 address that you want to forward DNS queries to.
ip
- One IPv4 address that you want to forward DNS queries to.public void setPort(Integer port)
The port at Ip
that you want to forward DNS queries to.
port
- The port at Ip
that you want to forward DNS queries to.public Integer getPort()
The port at Ip
that you want to forward DNS queries to.
Ip
that you want to forward DNS queries to.public TargetAddress withPort(Integer port)
The port at Ip
that you want to forward DNS queries to.
port
- The port at Ip
that you want to forward DNS queries to.public void setIpv6(String ipv6)
One IPv6 address that you want to forward DNS queries to.
ipv6
- One IPv6 address that you want to forward DNS queries to.public String getIpv6()
One IPv6 address that you want to forward DNS queries to.
public TargetAddress withIpv6(String ipv6)
One IPv6 address that you want to forward DNS queries to.
ipv6
- One IPv6 address that you want to forward DNS queries to.public String toString()
toString
in class Object
Object.toString()
public TargetAddress clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.