Class EC2SecurityGroup
- java.lang.Object
-
- com.amazonaws.services.redshift.model.EC2SecurityGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EC2SecurityGroup extends Object implements Serializable, Cloneable
Describes 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 EC2SecurityGroup
clone()
boolean
equals(Object obj)
String
getEC2SecurityGroupName()
The name of the EC2 Security Group.String
getEC2SecurityGroupOwnerId()
The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.String
getStatus()
The status of the EC2 security group.List<Tag>
getTags()
The list of tags for the EC2 security group.int
hashCode()
void
setEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.void
setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.void
setStatus(String status)
The status of the EC2 security group.void
setTags(Collection<Tag> tags)
The list of tags for the EC2 security group.String
toString()
Returns a string representation of this object; useful for testing and debugging.EC2SecurityGroup
withEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.EC2SecurityGroup
withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.EC2SecurityGroup
withStatus(String status)
The status of the EC2 security group.EC2SecurityGroup
withTags(Tag... tags)
The list of tags for the EC2 security group.EC2SecurityGroup
withTags(Collection<Tag> tags)
The list of tags for the EC2 security group.
-
-
-
Method Detail
-
setStatus
public void setStatus(String status)
The status of the EC2 security group.
- Parameters:
status
- The status of the EC2 security group.
-
getStatus
public String getStatus()
The status of the EC2 security group.
- Returns:
- The status of the EC2 security group.
-
withStatus
public EC2SecurityGroup withStatus(String status)
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
public void setEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.
- Parameters:
eC2SecurityGroupName
- The name of the EC2 Security Group.
-
getEC2SecurityGroupName
public String getEC2SecurityGroupName()
The name of the EC2 Security Group.
- Returns:
- The name of the EC2 Security Group.
-
withEC2SecurityGroupName
public EC2SecurityGroup withEC2SecurityGroupName(String eC2SecurityGroupName)
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
public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName
field.- Parameters:
eC2SecurityGroupOwnerId
- The AWS ID of the owner of the EC2 security group specified in theEC2SecurityGroupName
field.
-
getEC2SecurityGroupOwnerId
public String getEC2SecurityGroupOwnerId()
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName
field.- Returns:
- The AWS ID of the owner of the EC2 security group specified in
the
EC2SecurityGroupName
field.
-
withEC2SecurityGroupOwnerId
public EC2SecurityGroup withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName
field.- Parameters:
eC2SecurityGroupOwnerId
- 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.
-
getTags
public List<Tag> getTags()
The list of tags for the EC2 security group.
- Returns:
- The list of tags for the EC2 security group.
-
setTags
public void setTags(Collection<Tag> tags)
The list of tags for the EC2 security group.
- Parameters:
tags
- The list of tags for the EC2 security group.
-
withTags
public EC2SecurityGroup withTags(Tag... tags)
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
public EC2SecurityGroup withTags(Collection<Tag> tags)
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
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()
-
-