Class EC2SecurityGroup
- All Implemented Interfaces:
Serializable,Cloneable
Describes an Amazon EC2 security group.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe name of the EC2 Security Group.The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupNamefield.The status of the EC2 security group.getTags()The list of tags for the EC2 security group.inthashCode()voidsetEC2SecurityGroupName(String eC2SecurityGroupName) The name of the EC2 Security Group.voidsetEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId) The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupNamefield.voidThe status of the EC2 security group.voidsetTags(Collection<Tag> tags) The list of tags for the EC2 security group.toString()Returns a string representation of this object; useful for testing and debugging.withEC2SecurityGroupName(String eC2SecurityGroupName) The name of the EC2 Security Group.withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId) The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupNamefield.withStatus(String status) The status of the EC2 security group.The list of tags for the EC2 security group.withTags(Collection<Tag> tags) The list of tags for the EC2 security group.
-
Constructor Details
-
EC2SecurityGroup
public EC2SecurityGroup()
-
-
Method Details
-
setStatus
The status of the EC2 security group.
- Parameters:
status- The status of the EC2 security group.
-
getStatus
The status of the EC2 security group.
- Returns:
- The status of the EC2 security group.
-
withStatus
The status of the EC2 security group.
- Parameters:
status- The status of the EC2 security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupName
The name of the EC2 Security Group.
- Parameters:
eC2SecurityGroupName- The name of the EC2 Security Group.
-
getEC2SecurityGroupName
The name of the EC2 Security Group.
- Returns:
- The name of the EC2 Security Group.
-
withEC2SecurityGroupName
The name of the EC2 Security Group.
- Parameters:
eC2SecurityGroupName- The name of the EC2 Security Group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupOwnerId
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupNamefield.- Parameters:
eC2SecurityGroupOwnerId- The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupNamefield.
-
getEC2SecurityGroupOwnerId
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupNamefield.- Returns:
- The AWS ID of the owner of the EC2 security group specified in
the
EC2SecurityGroupNamefield.
-
withEC2SecurityGroupOwnerId
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupNamefield.- Parameters:
eC2SecurityGroupOwnerId- The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupNamefield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
The list of tags for the EC2 security group.
- Returns:
- The list of tags for the EC2 security group.
-
setTags
The list of tags for the EC2 security group.
- Parameters:
tags- The list of tags for the EC2 security group.
-
withTags
The list of tags for the EC2 security group.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- The list of tags for the EC2 security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
The list of tags for the EC2 security group.
- Parameters:
tags- The list of tags for the EC2 security group.- 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
-