@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IpSet extends Object implements Serializable, Cloneable, StructuredPojo
A complex type for the set of IP addresses for an accelerator.
Constructor and Description |
---|
IpSet() |
Modifier and Type | Method and Description |
---|---|
IpSet |
clone() |
boolean |
equals(Object obj) |
List<String> |
getIpAddresses()
The array of IP addresses in the IP address set.
|
String |
getIpFamily()
The types of IP addresses included in this IP set.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIpAddresses(Collection<String> ipAddresses)
The array of IP addresses in the IP address set.
|
void |
setIpFamily(String ipFamily)
The types of IP addresses included in this IP set.
|
String |
toString()
Returns a string representation of this object.
|
IpSet |
withIpAddresses(Collection<String> ipAddresses)
The array of IP addresses in the IP address set.
|
IpSet |
withIpAddresses(String... ipAddresses)
The array of IP addresses in the IP address set.
|
IpSet |
withIpFamily(String ipFamily)
The types of IP addresses included in this IP set.
|
public void setIpFamily(String ipFamily)
The types of IP addresses included in this IP set.
ipFamily
- The types of IP addresses included in this IP set.public String getIpFamily()
The types of IP addresses included in this IP set.
public IpSet withIpFamily(String ipFamily)
The types of IP addresses included in this IP set.
ipFamily
- The types of IP addresses included in this IP set.public List<String> getIpAddresses()
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
public void setIpAddresses(Collection<String> ipAddresses)
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
ipAddresses
- The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.public IpSet withIpAddresses(String... ipAddresses)
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
NOTE: This method appends the values to the existing list (if any). Use
setIpAddresses(java.util.Collection)
or withIpAddresses(java.util.Collection)
if you want to
override the existing values.
ipAddresses
- The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.public IpSet withIpAddresses(Collection<String> ipAddresses)
The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.
ipAddresses
- The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.