@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 IP 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 IP 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 IP 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 IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
ip
- One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.public String getIp()
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
public TargetAddress withIp(String ip)
One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.
ip
- One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.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 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.