@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddPrefixListEntry extends Object implements Serializable, Cloneable
An entry for a prefix list.
Constructor and Description |
---|
AddPrefixListEntry() |
Modifier and Type | Method and Description |
---|---|
AddPrefixListEntry |
clone() |
boolean |
equals(Object obj) |
String |
getCidr()
The CIDR block.
|
String |
getDescription()
A description for the entry.
|
int |
hashCode() |
void |
setCidr(String cidr)
The CIDR block.
|
void |
setDescription(String description)
A description for the entry.
|
String |
toString()
Returns a string representation of this object.
|
AddPrefixListEntry |
withCidr(String cidr)
The CIDR block.
|
AddPrefixListEntry |
withDescription(String description)
A description for the entry.
|
public void setCidr(String cidr)
The CIDR block.
cidr
- The CIDR block.public String getCidr()
The CIDR block.
public AddPrefixListEntry withCidr(String cidr)
The CIDR block.
cidr
- The CIDR block.public void setDescription(String description)
A description for the entry.
Constraints: Up to 255 characters in length.
description
- A description for the entry.
Constraints: Up to 255 characters in length.
public String getDescription()
A description for the entry.
Constraints: Up to 255 characters in length.
Constraints: Up to 255 characters in length.
public AddPrefixListEntry withDescription(String description)
A description for the entry.
Constraints: Up to 255 characters in length.
description
- A description for the entry.
Constraints: Up to 255 characters in length.
public String toString()
toString
in class Object
Object.toString()
public AddPrefixListEntry clone()