Package com.amazonaws.services.ec2.model
Class PrefixList
java.lang.Object
com.amazonaws.services.ec2.model.PrefixList
- All Implemented Interfaces:
Serializable
,Cloneable
Describes prefixes for AWS services.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCidrs()
The IP address range of the AWS service.The ID of the prefix.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.toString()
Returns a string representation of this object; useful for testing and debugging.The IP address range of the AWS service.withCidrs
(Collection<String> cidrs) The IP address range of the AWS service.withPrefixListId
(String prefixListId) The ID of the prefix.withPrefixListName
(String prefixListName) The name of the prefix.
-
Constructor Details
-
PrefixList
public PrefixList()
-
-
Method Details
-
setPrefixListId
The ID of the prefix.
- Parameters:
prefixListId
- The ID of the prefix.
-
getPrefixListId
The ID of the prefix.
- Returns:
- The ID of the prefix.
-
withPrefixListId
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
The name of the prefix.
- Parameters:
prefixListName
- The name of the prefix.
-
getPrefixListName
The name of the prefix.
- Returns:
- The name of the prefix.
-
withPrefixListName
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
The IP address range of the AWS service.
- Returns:
- The IP address range of the AWS service.
-
setCidrs
The IP address range of the AWS service.
- Parameters:
cidrs
- The IP address range of the AWS service.
-
withCidrs
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-