public class PrefixList
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes prefixes for AWS services.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
cidrs
The IP address range of the AWS service.
|
private java.lang.String |
prefixListId
The ID of the prefix.
|
private java.lang.String |
prefixListName
The name of the prefix.
|
Constructor and Description |
---|
PrefixList() |
Modifier and Type | Method and Description |
---|---|
PrefixList |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getCidrs()
The IP address range of the AWS service.
|
java.lang.String |
getPrefixListId()
The ID of the prefix.
|
java.lang.String |
getPrefixListName()
The name of the prefix.
|
int |
hashCode() |
void |
setCidrs(java.util.Collection<java.lang.String> cidrs)
The IP address range of the AWS service.
|
void |
setPrefixListId(java.lang.String prefixListId)
The ID of the prefix.
|
void |
setPrefixListName(java.lang.String prefixListName)
The name of the prefix.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PrefixList |
withCidrs(java.util.Collection<java.lang.String> cidrs)
The IP address range of the AWS service.
|
PrefixList |
withCidrs(java.lang.String... cidrs)
The IP address range of the AWS service.
|
PrefixList |
withPrefixListId(java.lang.String prefixListId)
The ID of the prefix.
|
PrefixList |
withPrefixListName(java.lang.String prefixListName)
The name of the prefix.
|
private java.lang.String prefixListId
The ID of the prefix.
private java.lang.String prefixListName
The name of the prefix.
private SdkInternalList<java.lang.String> cidrs
The IP address range of the AWS service.
public void setPrefixListId(java.lang.String prefixListId)
The ID of the prefix.
prefixListId
- The ID of the prefix.public java.lang.String getPrefixListId()
The ID of the prefix.
public PrefixList withPrefixListId(java.lang.String prefixListId)
The ID of the prefix.
prefixListId
- The ID of the prefix.public void setPrefixListName(java.lang.String prefixListName)
The name of the prefix.
prefixListName
- The name of the prefix.public java.lang.String getPrefixListName()
The name of the prefix.
public PrefixList withPrefixListName(java.lang.String prefixListName)
The name of the prefix.
prefixListName
- The name of the prefix.public java.util.List<java.lang.String> getCidrs()
The IP address range of the AWS service.
public void setCidrs(java.util.Collection<java.lang.String> cidrs)
The IP address range of the AWS service.
cidrs
- The IP address range of the AWS service.public PrefixList withCidrs(java.lang.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(java.util.Collection<java.lang.String> cidrs)
The IP address range of the AWS service.
cidrs
- The IP address range of the AWS service.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PrefixList clone()
clone
in class java.lang.Object