Class StaleSecurityGroup
- java.lang.Object
-
- com.amazonaws.services.ec2.model.StaleSecurityGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class StaleSecurityGroup extends Object implements Serializable, Cloneable
Describes a stale security group (a security group that contains stale rules).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StaleSecurityGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StaleSecurityGroup
clone()
boolean
equals(Object obj)
String
getDescription()
The description of the security group.String
getGroupId()
The ID of the security group.String
getGroupName()
The name of the security group.List<StaleIpPermission>
getStaleIpPermissions()
Information about the stale inbound rules in the security group.List<StaleIpPermission>
getStaleIpPermissionsEgress()
Information about the stale outbound rules in the security group.String
getVpcId()
The ID of the VPC for the security group.int
hashCode()
void
setDescription(String description)
The description of the security group.void
setGroupId(String groupId)
The ID of the security group.void
setGroupName(String groupName)
The name of the security group.void
setStaleIpPermissions(Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.void
setStaleIpPermissionsEgress(Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.void
setVpcId(String vpcId)
The ID of the VPC for the security group.String
toString()
Returns a string representation of this object; useful for testing and debugging.StaleSecurityGroup
withDescription(String description)
The description of the security group.StaleSecurityGroup
withGroupId(String groupId)
The ID of the security group.StaleSecurityGroup
withGroupName(String groupName)
The name of the security group.StaleSecurityGroup
withStaleIpPermissions(StaleIpPermission... staleIpPermissions)
Information about the stale inbound rules in the security group.StaleSecurityGroup
withStaleIpPermissions(Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.StaleSecurityGroup
withStaleIpPermissionsEgress(StaleIpPermission... staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.StaleSecurityGroup
withStaleIpPermissionsEgress(Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.StaleSecurityGroup
withVpcId(String vpcId)
The ID of the VPC for the security group.
-
-
-
Method Detail
-
setGroupId
public void setGroupId(String groupId)
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.
-
getGroupId
public String getGroupId()
The ID of the security group.
- Returns:
- The ID of the security group.
-
withGroupId
public StaleSecurityGroup withGroupId(String groupId)
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupName
public void setGroupName(String groupName)
The name of the security group.
- Parameters:
groupName
- The name of the security group.
-
getGroupName
public String getGroupName()
The name of the security group.
- Returns:
- The name of the security group.
-
withGroupName
public StaleSecurityGroup withGroupName(String groupName)
The name of the security group.
- Parameters:
groupName
- The name of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the security group.
- Parameters:
description
- The description of the security group.
-
getDescription
public String getDescription()
The description of the security group.
- Returns:
- The description of the security group.
-
withDescription
public StaleSecurityGroup withDescription(String description)
The description of the security group.
- Parameters:
description
- The description of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC for the security group.
- Parameters:
vpcId
- The ID of the VPC for the security group.
-
getVpcId
public String getVpcId()
The ID of the VPC for the security group.
- Returns:
- The ID of the VPC for the security group.
-
withVpcId
public StaleSecurityGroup withVpcId(String vpcId)
The ID of the VPC for the security group.
- Parameters:
vpcId
- The ID of the VPC for the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getStaleIpPermissions
public List<StaleIpPermission> getStaleIpPermissions()
Information about the stale inbound rules in the security group.
- Returns:
- Information about the stale inbound rules in the security group.
-
setStaleIpPermissions
public void setStaleIpPermissions(Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.
- Parameters:
staleIpPermissions
- Information about the stale inbound rules in the security group.
-
withStaleIpPermissions
public StaleSecurityGroup withStaleIpPermissions(StaleIpPermission... staleIpPermissions)
Information about the stale inbound rules in the security group.
NOTE: This method appends the values to the existing list (if any). Use
setStaleIpPermissions(java.util.Collection)
orwithStaleIpPermissions(java.util.Collection)
if you want to override the existing values.- Parameters:
staleIpPermissions
- Information about the stale inbound rules in the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withStaleIpPermissions
public StaleSecurityGroup withStaleIpPermissions(Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.
- Parameters:
staleIpPermissions
- Information about the stale inbound rules in the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getStaleIpPermissionsEgress
public List<StaleIpPermission> getStaleIpPermissionsEgress()
Information about the stale outbound rules in the security group.
- Returns:
- Information about the stale outbound rules in the security group.
-
setStaleIpPermissionsEgress
public void setStaleIpPermissionsEgress(Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
- Parameters:
staleIpPermissionsEgress
- Information about the stale outbound rules in the security group.
-
withStaleIpPermissionsEgress
public StaleSecurityGroup withStaleIpPermissionsEgress(StaleIpPermission... staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
NOTE: This method appends the values to the existing list (if any). Use
setStaleIpPermissionsEgress(java.util.Collection)
orwithStaleIpPermissionsEgress(java.util.Collection)
if you want to override the existing values.- Parameters:
staleIpPermissionsEgress
- Information about the stale outbound rules in the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withStaleIpPermissionsEgress
public StaleSecurityGroup withStaleIpPermissionsEgress(Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
- Parameters:
staleIpPermissionsEgress
- Information about the stale outbound rules in the 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 StaleSecurityGroup clone()
-
-