@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2SecurityGroupIpRange extends Object implements Serializable, Cloneable, StructuredPojo
A range of IPv4 addresses.
Constructor and Description |
---|
AwsEc2SecurityGroupIpRange() |
Modifier and Type | Method and Description |
---|---|
AwsEc2SecurityGroupIpRange |
clone() |
boolean |
equals(Object obj) |
String |
getCidrIp()
The IPv4 CIDR range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCidrIp(String cidrIp)
The IPv4 CIDR range.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2SecurityGroupIpRange |
withCidrIp(String cidrIp)
The IPv4 CIDR range.
|
public void setCidrIp(String cidrIp)
The IPv4 CIDR range. You can specify either a CIDR range or a source security group, but not both. To specify a single IPv4 address, use the /32 prefix length.
cidrIp
- The IPv4 CIDR range. You can specify either a CIDR range or a source security group, but not both. To
specify a single IPv4 address, use the /32 prefix length.public String getCidrIp()
The IPv4 CIDR range. You can specify either a CIDR range or a source security group, but not both. To specify a single IPv4 address, use the /32 prefix length.
public AwsEc2SecurityGroupIpRange withCidrIp(String cidrIp)
The IPv4 CIDR range. You can specify either a CIDR range or a source security group, but not both. To specify a single IPv4 address, use the /32 prefix length.
cidrIp
- The IPv4 CIDR range. You can specify either a CIDR range or a source security group, but not both. To
specify a single IPv4 address, use the /32 prefix length.public String toString()
toString
in class Object
Object.toString()
public AwsEc2SecurityGroupIpRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.