@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IpRange extends Object implements Serializable, Cloneable
Describes an IPv4 address range.
Constructor and Description |
---|
IpRange() |
Modifier and Type | Method and Description |
---|---|
IpRange |
clone() |
boolean |
equals(Object obj) |
String |
getCidrIp()
The IPv4 address range.
|
String |
getDescription()
A description for the security group rule that references this IPv4 address range.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
The IPv4 address range.
|
void |
setDescription(String description)
A description for the security group rule that references this IPv4 address range.
|
String |
toString()
Returns a string representation of this object.
|
IpRange |
withCidrIp(String cidrIp)
The IPv4 address range.
|
IpRange |
withDescription(String description)
A description for the security group rule that references this IPv4 address range.
|
public void setCidrIp(String cidrIp)
The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
cidrIp
- The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To
specify a single IPv4 address, use the /32 prefix length.public String getCidrIp()
The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
public IpRange withCidrIp(String cidrIp)
The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To specify a single IPv4 address, use the /32 prefix length.
cidrIp
- The IPv4 address range. You can either specify a CIDR block or a source security group, not both. To
specify a single IPv4 address, use the /32 prefix length.public void setDescription(String description)
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description
- A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public String getDescription()
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$
public IpRange withDescription(String description)
A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
description
- A description for the security group rule that references this IPv4 address range.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
public String toString()
toString
in class Object
Object.toString()