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 PrefixList
clone()
boolean
equals(Object obj)
List<String>
getCidrs()
The IP address range of the AWS service.String
getPrefixListId()
The ID of the prefix.String
getPrefixListName()
The name of the prefix.int
hashCode()
void
setCidrs(Collection<String> cidrs)
The IP address range of the AWS service.void
setPrefixListId(String prefixListId)
The ID of the prefix.void
setPrefixListName(String prefixListName)
The name of the prefix.String
toString()
Returns a string representation of this object; useful for testing and debugging.PrefixList
withCidrs(String... cidrs)
The IP address range of the AWS service.PrefixList
withCidrs(Collection<String> cidrs)
The IP address range of the AWS service.PrefixList
withPrefixListId(String prefixListId)
The ID of the prefix.PrefixList
withPrefixListName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PrefixList clone()
-
-