Class EC2SecurityGroup
- java.lang.Object
-
- com.amazonaws.services.rds.model.EC2SecurityGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EC2SecurityGroup extends Object implements Serializable, Cloneable
This data type is used as a response element in the following actions:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EC2SecurityGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EC2SecurityGroup
clone()
boolean
equals(Object obj)
String
getEC2SecurityGroupId()
Specifies the id of the EC2 security group.String
getEC2SecurityGroupName()
Specifies the name of the EC2 security group.String
getEC2SecurityGroupOwnerId()
Specifies the AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.String
getStatus()
Provides the status of the EC2 security group.int
hashCode()
void
setEC2SecurityGroupId(String eC2SecurityGroupId)
Specifies the id of the EC2 security group.void
setEC2SecurityGroupName(String eC2SecurityGroupName)
Specifies the name of the EC2 security group.void
setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
Specifies the AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.void
setStatus(String status)
Provides the status of the EC2 security group.String
toString()
Returns a string representation of this object; useful for testing and debugging.EC2SecurityGroup
withEC2SecurityGroupId(String eC2SecurityGroupId)
Specifies the id of the EC2 security group.EC2SecurityGroup
withEC2SecurityGroupName(String eC2SecurityGroupName)
Specifies the name of the EC2 security group.EC2SecurityGroup
withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
Specifies the AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.EC2SecurityGroup
withStatus(String status)
Provides the status of the EC2 security group.
-
-
-
Method Detail
-
setStatus
public void setStatus(String status)
Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".
- Parameters:
status
- Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".
-
getStatus
public String getStatus()
Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".
- Returns:
- Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".
-
withStatus
public EC2SecurityGroup withStatus(String status)
Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".
- Parameters:
status
- Provides the status of the EC2 security group. Status can be "authorizing", "authorized", "revoking", and "revoked".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupName
public void setEC2SecurityGroupName(String eC2SecurityGroupName)
Specifies the name of the EC2 security group.
- Parameters:
eC2SecurityGroupName
- Specifies the name of the EC2 security group.
-
getEC2SecurityGroupName
public String getEC2SecurityGroupName()
Specifies the name of the EC2 security group.
- Returns:
- Specifies the name of the EC2 security group.
-
withEC2SecurityGroupName
public EC2SecurityGroup withEC2SecurityGroupName(String eC2SecurityGroupName)
Specifies the name of the EC2 security group.
- Parameters:
eC2SecurityGroupName
- Specifies the name of the EC2 security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupId
public void setEC2SecurityGroupId(String eC2SecurityGroupId)
Specifies the id of the EC2 security group.
- Parameters:
eC2SecurityGroupId
- Specifies the id of the EC2 security group.
-
getEC2SecurityGroupId
public String getEC2SecurityGroupId()
Specifies the id of the EC2 security group.
- Returns:
- Specifies the id of the EC2 security group.
-
withEC2SecurityGroupId
public EC2SecurityGroup withEC2SecurityGroupId(String eC2SecurityGroupId)
Specifies the id of the EC2 security group.
- Parameters:
eC2SecurityGroupId
- Specifies the id of the EC2 security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEC2SecurityGroupOwnerId
public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
Specifies the AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName
field.- Parameters:
eC2SecurityGroupOwnerId
- Specifies the AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.
-
getEC2SecurityGroupOwnerId
public String getEC2SecurityGroupOwnerId()
Specifies the AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName
field.- Returns:
- Specifies the AWS ID of the owner of the EC2 security group
specified in the
EC2SecurityGroupName
field.
-
withEC2SecurityGroupOwnerId
public EC2SecurityGroup withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
Specifies the AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName
field.- Parameters:
eC2SecurityGroupOwnerId
- Specifies the AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EC2SecurityGroup clone()
-
-