@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrefixList extends Object implements Serializable, Cloneable
Describes prefixes for Amazon Web Services services.
Constructor and Description |
---|
PrefixList() |
Modifier and Type | Method and Description |
---|---|
PrefixList |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCidrs()
The IP address range of the Amazon Web 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 Amazon Web 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.
|
PrefixList |
withCidrs(Collection<String> cidrs)
The IP address range of the Amazon Web Service.
|
PrefixList |
withCidrs(String... cidrs)
The IP address range of the Amazon Web Service.
|
PrefixList |
withPrefixListId(String prefixListId)
The ID of the prefix.
|
PrefixList |
withPrefixListName(String prefixListName)
The name of the prefix.
|
public List<String> getCidrs()
The IP address range of the Amazon Web Service.
public void setCidrs(Collection<String> cidrs)
The IP address range of the Amazon Web Service.
cidrs
- The IP address range of the Amazon Web Service.public PrefixList withCidrs(String... cidrs)
The IP address range of the Amazon Web Service.
NOTE: This method appends the values to the existing list (if any). Use
setCidrs(java.util.Collection)
or withCidrs(java.util.Collection)
if you want to override the
existing values.
cidrs
- The IP address range of the Amazon Web Service.public PrefixList withCidrs(Collection<String> cidrs)
The IP address range of the Amazon Web Service.
cidrs
- The IP address range of the Amazon Web Service.public void setPrefixListId(String prefixListId)
The ID of the prefix.
prefixListId
- The ID of the prefix.public String getPrefixListId()
The ID of the prefix.
public PrefixList withPrefixListId(String prefixListId)
The ID of the prefix.
prefixListId
- The ID of the prefix.public void setPrefixListName(String prefixListName)
The name of the prefix.
prefixListName
- The name of the prefix.public String getPrefixListName()
The name of the prefix.
public PrefixList withPrefixListName(String prefixListName)
The name of the prefix.
prefixListName
- The name of the prefix.public String toString()
toString
in class Object
Object.toString()
public PrefixList clone()