Class EC2SecurityGroup
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.EC2SecurityGroup
-
- All Implemented Interfaces:
Serializable,Cloneable
public class EC2SecurityGroup extends Object implements Serializable, Cloneable
Provides ownership and status information for an Amazon EC2 security group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EC2SecurityGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EC2SecurityGroupclone()booleanequals(Object obj)StringgetEC2SecurityGroupName()The name of the Amazon EC2 security group.StringgetEC2SecurityGroupOwnerId()The AWS account ID of the Amazon EC2 security group owner.StringgetStatus()The status of the Amazon EC2 security group.inthashCode()voidsetEC2SecurityGroupName(String eC2SecurityGroupName)The name of the Amazon EC2 security group.voidsetEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)The AWS account ID of the Amazon EC2 security group owner.voidsetStatus(String status)The status of the Amazon EC2 security group.StringtoString()Returns a string representation of this object; useful for testing and debugging.EC2SecurityGroupwithEC2SecurityGroupName(String eC2SecurityGroupName)The name of the Amazon EC2 security group.EC2SecurityGroupwithEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)The AWS account ID of the Amazon EC2 security group owner.EC2SecurityGroupwithStatus(String status)The status of the Amazon EC2 security group.
-
-
-
Method Detail
-
setStatus
public void setStatus(String status)
The status of the Amazon EC2 security group.
- Parameters:
status- The status of the Amazon EC2 security group.
-
getStatus
public String getStatus()
The status of the Amazon EC2 security group.
- Returns:
- The status of the Amazon EC2 security group.
-
withStatus
public EC2SecurityGroup withStatus(String status)
The status of the Amazon EC2 security group.
- Parameters:
status- The status of the Amazon EC2 security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupName
public void setEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the Amazon EC2 security group.
- Parameters:
eC2SecurityGroupName- The name of the Amazon EC2 security group.
-
getEC2SecurityGroupName
public String getEC2SecurityGroupName()
The name of the Amazon EC2 security group.
- Returns:
- The name of the Amazon EC2 security group.
-
withEC2SecurityGroupName
public EC2SecurityGroup withEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the Amazon EC2 security group.
- Parameters:
eC2SecurityGroupName- The name of the Amazon EC2 security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupOwnerId
public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS account ID of the Amazon EC2 security group owner.
- Parameters:
eC2SecurityGroupOwnerId- The AWS account ID of the Amazon EC2 security group owner.
-
getEC2SecurityGroupOwnerId
public String getEC2SecurityGroupOwnerId()
The AWS account ID of the Amazon EC2 security group owner.
- Returns:
- The AWS account ID of the Amazon EC2 security group owner.
-
withEC2SecurityGroupOwnerId
public EC2SecurityGroup withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS account ID of the Amazon EC2 security group owner.
- Parameters:
eC2SecurityGroupOwnerId- The AWS account ID of the Amazon EC2 security group owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EC2SecurityGroup clone()
-
-