Class IPRange
- java.lang.Object
-
- com.amazonaws.services.redshift.model.IPRange
-
- All Implemented Interfaces:
Serializable,Cloneable
public class IPRange extends Object implements Serializable, Cloneable
Describes an IP range used in a security group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IPRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPRangeclone()booleanequals(Object obj)StringgetCIDRIP()The IP range in Classless Inter-Domain Routing (CIDR) notation.StringgetStatus()The status of the IP range, for example, "authorized".List<Tag>getTags()The list of tags for the IP range.inthashCode()voidsetCIDRIP(String cIDRIP)The IP range in Classless Inter-Domain Routing (CIDR) notation.voidsetStatus(String status)The status of the IP range, for example, "authorized".voidsetTags(Collection<Tag> tags)The list of tags for the IP range.StringtoString()Returns a string representation of this object; useful for testing and debugging.IPRangewithCIDRIP(String cIDRIP)The IP range in Classless Inter-Domain Routing (CIDR) notation.IPRangewithStatus(String status)The status of the IP range, for example, "authorized".IPRangewithTags(Tag... tags)The list of tags for the IP range.IPRangewithTags(Collection<Tag> tags)The list of tags for the IP range.
-
-
-
Method Detail
-
setStatus
public void setStatus(String status)
The status of the IP range, for example, "authorized".
- Parameters:
status- The status of the IP range, for example, "authorized".
-
getStatus
public String getStatus()
The status of the IP range, for example, "authorized".
- Returns:
- The status of the IP range, for example, "authorized".
-
withStatus
public IPRange withStatus(String status)
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
public void setCIDRIP(String cIDRIP)
The IP range in Classless Inter-Domain Routing (CIDR) notation.
- Parameters:
cIDRIP- The IP range in Classless Inter-Domain Routing (CIDR) notation.
-
getCIDRIP
public String getCIDRIP()
The IP range in Classless Inter-Domain Routing (CIDR) notation.
- Returns:
- The IP range in Classless Inter-Domain Routing (CIDR) notation.
-
withCIDRIP
public IPRange withCIDRIP(String cIDRIP)
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
public List<Tag> getTags()
The list of tags for the IP range.
- Returns:
- The list of tags for the IP range.
-
setTags
public void setTags(Collection<Tag> tags)
The list of tags for the IP range.
- Parameters:
tags- The list of tags for the IP range.
-
withTags
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)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
public IPRange withTags(Collection<Tag> tags)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-