Package com.amazonaws.services.ec2.model
Class PrefixList
- java.lang.Object
-
- com.amazonaws.services.ec2.model.PrefixList
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PrefixList extends Object implements Serializable, Cloneable
Describes prefixes for AWS services.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrefixList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrefixListclone()booleanequals(Object obj)List<String>getCidrs()The IP address range of the AWS service.StringgetPrefixListId()The ID of the prefix.StringgetPrefixListName()The name of the prefix.inthashCode()voidsetCidrs(Collection<String> cidrs)The IP address range of the AWS service.voidsetPrefixListId(String prefixListId)The ID of the prefix.voidsetPrefixListName(String prefixListName)The name of the prefix.StringtoString()Returns a string representation of this object; useful for testing and debugging.PrefixListwithCidrs(String... cidrs)The IP address range of the AWS service.PrefixListwithCidrs(Collection<String> cidrs)The IP address range of the AWS service.PrefixListwithPrefixListId(String prefixListId)The ID of the prefix.PrefixListwithPrefixListName(String prefixListName)The name of the prefix.
-
-
-
Method Detail
-
setPrefixListId
public void setPrefixListId(String prefixListId)
The ID of the prefix.
- Parameters:
prefixListId- The ID of the prefix.
-
getPrefixListId
public String getPrefixListId()
The ID of the prefix.
- Returns:
- The ID of the prefix.
-
withPrefixListId
public PrefixList withPrefixListId(String prefixListId)
The ID of the prefix.
- Parameters:
prefixListId- The ID of the prefix.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrefixListName
public void setPrefixListName(String prefixListName)
The name of the prefix.
- Parameters:
prefixListName- The name of the prefix.
-
getPrefixListName
public String getPrefixListName()
The name of the prefix.
- Returns:
- The name of the prefix.
-
withPrefixListName
public PrefixList withPrefixListName(String prefixListName)
The name of the prefix.
- Parameters:
prefixListName- The name of the prefix.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCidrs
public List<String> getCidrs()
The IP address range of the AWS service.
- Returns:
- The IP address range of the AWS service.
-
setCidrs
public void setCidrs(Collection<String> cidrs)
The IP address range of the AWS service.
- Parameters:
cidrs- The IP address range of the AWS service.
-
withCidrs
public PrefixList withCidrs(String... cidrs)
The IP address range of the AWS service.
NOTE: This method appends the values to the existing list (if any). Use
setCidrs(java.util.Collection)orwithCidrs(java.util.Collection)if you want to override the existing values.- Parameters:
cidrs- The IP address range of the AWS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCidrs
public PrefixList withCidrs(Collection<String> cidrs)
The IP address range of the AWS service.
- Parameters:
cidrs- The IP address range of the AWS service.- 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()
-
clone
public PrefixList clone()
-
-