public class IPRange extends Object implements Serializable, Cloneable
Describes an IP range used in a security group.
Constructor and Description |
---|
IPRange() |
Modifier and Type | Method and Description |
---|---|
IPRange |
clone() |
boolean |
equals(Object obj) |
String |
getCIDRIP()
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
String |
getStatus()
The status of the IP range, for example, "authorized".
|
List<Tag> |
getTags()
The list of tags for the IP range.
|
int |
hashCode() |
void |
setCIDRIP(String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
void |
setStatus(String status)
The status of the IP range, for example, "authorized".
|
void |
setTags(Collection<Tag> tags)
The list of tags for the IP range.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IPRange |
withCIDRIP(String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
|
IPRange |
withStatus(String status)
The status of the IP range, for example, "authorized".
|
IPRange |
withTags(Collection<Tag> tags)
The list of tags for the IP range.
|
IPRange |
withTags(Tag... tags)
The list of tags for the IP range.
|
public String getStatus()
public void setStatus(String status)
status
- The status of the IP range, for example, "authorized".public IPRange withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
status
- The status of the IP range, for example, "authorized".public String getCIDRIP()
public void setCIDRIP(String cIDRIP)
cIDRIP
- The IP range in Classless Inter-Domain Routing (CIDR) notation.public IPRange withCIDRIP(String cIDRIP)
Returns a reference to this object so that method calls can be chained together.
cIDRIP
- The IP range in Classless Inter-Domain Routing (CIDR) notation.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- The list of tags for the IP range.public IPRange withTags(Tag... tags)
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.
Returns a reference to this object so that method calls can be chained together.
tags
- The list of tags for the IP range.public IPRange withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- The list of tags for the IP range.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.