public class StaleSecurityGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a stale security group (a security group that contains stale rules).
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
The description of the security group.
|
private java.lang.String |
groupId
The ID of the security group.
|
private java.lang.String |
groupName
The name of the security group.
|
private SdkInternalList<StaleIpPermission> |
staleIpPermissions
Information about the stale inbound rules in the security group.
|
private SdkInternalList<StaleIpPermission> |
staleIpPermissionsEgress
Information about the stale outbound rules in the security group.
|
private java.lang.String |
vpcId
The ID of the VPC for the security group.
|
Constructor and Description |
---|
StaleSecurityGroup() |
Modifier and Type | Method and Description |
---|---|
StaleSecurityGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
The description of the security group.
|
java.lang.String |
getGroupId()
The ID of the security group.
|
java.lang.String |
getGroupName()
The name of the security group.
|
java.util.List<StaleIpPermission> |
getStaleIpPermissions()
Information about the stale inbound rules in the security group.
|
java.util.List<StaleIpPermission> |
getStaleIpPermissionsEgress()
Information about the stale outbound rules in the security group.
|
java.lang.String |
getVpcId()
The ID of the VPC for the security group.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
The description of the security group.
|
void |
setGroupId(java.lang.String groupId)
The ID of the security group.
|
void |
setGroupName(java.lang.String groupName)
The name of the security group.
|
void |
setStaleIpPermissions(java.util.Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.
|
void |
setStaleIpPermissionsEgress(java.util.Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC for the security group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StaleSecurityGroup |
withDescription(java.lang.String description)
The description of the security group.
|
StaleSecurityGroup |
withGroupId(java.lang.String groupId)
The ID of the security group.
|
StaleSecurityGroup |
withGroupName(java.lang.String groupName)
The name of the security group.
|
StaleSecurityGroup |
withStaleIpPermissions(java.util.Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.
|
StaleSecurityGroup |
withStaleIpPermissions(StaleIpPermission... staleIpPermissions)
Information about the stale inbound rules in the security group.
|
StaleSecurityGroup |
withStaleIpPermissionsEgress(java.util.Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
|
StaleSecurityGroup |
withStaleIpPermissionsEgress(StaleIpPermission... staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
|
StaleSecurityGroup |
withVpcId(java.lang.String vpcId)
The ID of the VPC for the security group.
|
private java.lang.String groupId
The ID of the security group.
private java.lang.String groupName
The name of the security group.
private java.lang.String description
The description of the security group.
private java.lang.String vpcId
The ID of the VPC for the security group.
private SdkInternalList<StaleIpPermission> staleIpPermissions
Information about the stale inbound rules in the security group.
private SdkInternalList<StaleIpPermission> staleIpPermissionsEgress
Information about the stale outbound rules in the security group.
public void setGroupId(java.lang.String groupId)
The ID of the security group.
groupId
- The ID of the security group.public java.lang.String getGroupId()
The ID of the security group.
public StaleSecurityGroup withGroupId(java.lang.String groupId)
The ID of the security group.
groupId
- The ID of the security group.public void setGroupName(java.lang.String groupName)
The name of the security group.
groupName
- The name of the security group.public java.lang.String getGroupName()
The name of the security group.
public StaleSecurityGroup withGroupName(java.lang.String groupName)
The name of the security group.
groupName
- The name of the security group.public void setDescription(java.lang.String description)
The description of the security group.
description
- The description of the security group.public java.lang.String getDescription()
The description of the security group.
public StaleSecurityGroup withDescription(java.lang.String description)
The description of the security group.
description
- The description of the security group.public void setVpcId(java.lang.String vpcId)
The ID of the VPC for the security group.
vpcId
- The ID of the VPC for the security group.public java.lang.String getVpcId()
The ID of the VPC for the security group.
public StaleSecurityGroup withVpcId(java.lang.String vpcId)
The ID of the VPC for the security group.
vpcId
- The ID of the VPC for the security group.public java.util.List<StaleIpPermission> getStaleIpPermissions()
Information about the stale inbound rules in the security group.
public void setStaleIpPermissions(java.util.Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.
staleIpPermissions
- Information about the stale inbound rules in the security group.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)
or
withStaleIpPermissions(java.util.Collection)
if you want to
override the existing values.
staleIpPermissions
- Information about the stale inbound rules in the security group.public StaleSecurityGroup withStaleIpPermissions(java.util.Collection<StaleIpPermission> staleIpPermissions)
Information about the stale inbound rules in the security group.
staleIpPermissions
- Information about the stale inbound rules in the security group.public java.util.List<StaleIpPermission> getStaleIpPermissionsEgress()
Information about the stale outbound rules in the security group.
public void setStaleIpPermissionsEgress(java.util.Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
staleIpPermissionsEgress
- Information about the stale outbound rules in the security group.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)
or
withStaleIpPermissionsEgress(java.util.Collection)
if you want
to override the existing values.
staleIpPermissionsEgress
- Information about the stale outbound rules in the security group.public StaleSecurityGroup withStaleIpPermissionsEgress(java.util.Collection<StaleIpPermission> staleIpPermissionsEgress)
Information about the stale outbound rules in the security group.
staleIpPermissionsEgress
- Information about the stale outbound rules in the security group.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StaleSecurityGroup clone()
clone
in class java.lang.Object