@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PrefixList extends Object implements Serializable, Cloneable
Describes prefixes for AWS 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 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(Collection<String> cidrs)
The IP address range of the AWS service.
|
PrefixList |
withCidrs(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.
|
public List<String> getCidrs()
The IP address range of the AWS service.
public void setCidrs(Collection<String> cidrs)
The IP address range of the AWS service.
cidrs
- The IP address range of the AWS service.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)
or withCidrs(java.util.Collection)
if you want to override the
existing values.
cidrs
- The IP address range of the AWS service.public PrefixList withCidrs(Collection<String> cidrs)
The IP address range of the AWS service.
cidrs
- The IP address range of the AWS 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.