Class IPRange
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an IP range used in a security group.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The IP range in Classless Inter-Domain Routing (CIDR) notation.The status of the IP range, for example, "authorized".getTags()
The list of tags for the IP range.int
hashCode()
void
The IP range in Classless Inter-Domain Routing (CIDR) notation.void
The status of the IP range, for example, "authorized".void
setTags
(Collection<Tag> tags) The list of tags for the IP range.toString()
Returns a string representation of this object; useful for testing and debugging.withCIDRIP
(String cIDRIP) The IP range in Classless Inter-Domain Routing (CIDR) notation.withStatus
(String status) The status of the IP range, for example, "authorized".The list of tags for the IP range.withTags
(Collection<Tag> tags) The list of tags for the IP range.
-
Constructor Details
-
IPRange
public IPRange()
-
-
Method Details
-
setStatus
The status of the IP range, for example, "authorized".
- Parameters:
status
- The status of the IP range, for example, "authorized".
-
getStatus
The status of the IP range, for example, "authorized".
- Returns:
- The status of the IP range, for example, "authorized".
-
withStatus
The status of the IP range, for example, "authorized".
- Parameters:
status
- The status of the IP range, for example, "authorized".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCIDRIP
The IP range in Classless Inter-Domain Routing (CIDR) notation.
- Parameters:
cIDRIP
- The IP range in Classless Inter-Domain Routing (CIDR) notation.
-
getCIDRIP
The IP range in Classless Inter-Domain Routing (CIDR) notation.
- Returns:
- The IP range in Classless Inter-Domain Routing (CIDR) notation.
-
withCIDRIP
The IP range in Classless Inter-Domain Routing (CIDR) notation.
- Parameters:
cIDRIP
- The IP range in Classless Inter-Domain Routing (CIDR) notation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
The list of tags for the IP range.
- Returns:
- The list of tags for the IP range.
-
setTags
The list of tags for the IP range.
- Parameters:
tags
- The list of tags for the IP range.
-
withTags
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)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- The list of tags for the IP range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
The list of tags for the IP range.
- Parameters:
tags
- The list of tags for the IP range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-