@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReferencedSecurityGroup extends Object implements Serializable, Cloneable
Describes the security group that is referenced in the security group rule.
Constructor and Description |
---|
ReferencedSecurityGroup() |
Modifier and Type | Method and Description |
---|---|
ReferencedSecurityGroup |
clone() |
boolean |
equals(Object obj) |
String |
getGroupId()
The ID of the security group.
|
String |
getPeeringStatus()
The status of a VPC peering connection, if applicable.
|
String |
getUserId()
The Amazon Web Services account ID.
|
String |
getVpcId()
The ID of the VPC.
|
String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection (if applicable).
|
int |
hashCode() |
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
|
void |
setUserId(String userId)
The Amazon Web Services account ID.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
void |
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable).
|
String |
toString()
Returns a string representation of this object.
|
ReferencedSecurityGroup |
withGroupId(String groupId)
The ID of the security group.
|
ReferencedSecurityGroup |
withPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
|
ReferencedSecurityGroup |
withUserId(String userId)
The Amazon Web Services account ID.
|
ReferencedSecurityGroup |
withVpcId(String vpcId)
The ID of the VPC.
|
ReferencedSecurityGroup |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable).
|
public void setGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public String getGroupId()
The ID of the security group.
public ReferencedSecurityGroup withGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public void setPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
peeringStatus
- The status of a VPC peering connection, if applicable.public String getPeeringStatus()
The status of a VPC peering connection, if applicable.
public ReferencedSecurityGroup withPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
peeringStatus
- The status of a VPC peering connection, if applicable.public void setUserId(String userId)
The Amazon Web Services account ID.
userId
- The Amazon Web Services account ID.public String getUserId()
The Amazon Web Services account ID.
public ReferencedSecurityGroup withUserId(String userId)
The Amazon Web Services account ID.
userId
- The Amazon Web Services account ID.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public ReferencedSecurityGroup withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable).
vpcPeeringConnectionId
- The ID of the VPC peering connection (if applicable).public String getVpcPeeringConnectionId()
The ID of the VPC peering connection (if applicable).
public ReferencedSecurityGroup withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection (if applicable).
vpcPeeringConnectionId
- The ID of the VPC peering connection (if applicable).public String toString()
toString
in class Object
Object.toString()
public ReferencedSecurityGroup clone()