public class IPRange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an IP range used in a security group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cIDRIP
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
private java.lang.String |
status
The status of the IP range, for example, "authorized".
|
private SdkInternalList<Tag> |
tags
The list of tags for the IP range.
|
Constructor and Description |
---|
IPRange() |
Modifier and Type | Method and Description |
---|---|
IPRange |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCIDRIP()
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
java.lang.String |
getStatus()
The status of the IP range, for example, "authorized".
|
java.util.List<Tag> |
getTags()
The list of tags for the IP range.
|
int |
hashCode() |
void |
setCIDRIP(java.lang.String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
void |
setStatus(java.lang.String status)
The status of the IP range, for example, "authorized".
|
void |
setTags(java.util.Collection<Tag> tags)
The list of tags for the IP range.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IPRange |
withCIDRIP(java.lang.String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
IPRange |
withStatus(java.lang.String status)
The status of the IP range, for example, "authorized".
|
IPRange |
withTags(java.util.Collection<Tag> tags)
The list of tags for the IP range.
|
IPRange |
withTags(Tag... tags)
The list of tags for the IP range.
|
private java.lang.String status
The status of the IP range, for example, "authorized".
private java.lang.String cIDRIP
The IP range in Classless Inter-Domain Routing (CIDR) notation.
private SdkInternalList<Tag> tags
The list of tags for the IP range.
public void setStatus(java.lang.String status)
The status of the IP range, for example, "authorized".
status
- The status of the IP range, for example, "authorized".public java.lang.String getStatus()
The status of the IP range, for example, "authorized".
public IPRange withStatus(java.lang.String status)
The status of the IP range, for example, "authorized".
status
- The status of the IP range, for example, "authorized".public void setCIDRIP(java.lang.String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
cIDRIP
- The IP range in Classless Inter-Domain Routing (CIDR) notation.public java.lang.String getCIDRIP()
The IP range in Classless Inter-Domain Routing (CIDR) notation.
public IPRange withCIDRIP(java.lang.String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
cIDRIP
- The IP range in Classless Inter-Domain Routing (CIDR) notation.public java.util.List<Tag> getTags()
The list of tags for the IP range.
public void setTags(java.util.Collection<Tag> tags)
The list of tags for the IP range.
tags
- The list of tags for the IP range.public IPRange withTags(Tag... tags)
The list of tags for the IP range.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The list of tags for the IP range.public IPRange withTags(java.util.Collection<Tag> tags)
The list of tags for the IP range.
tags
- The list of tags for the IP range.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IPRange clone()
clone
in class java.lang.Object