Package com.amazonaws.services.ec2.model
Class SecurityGroupReference
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SecurityGroupReference
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SecurityGroupReference extends Object implements Serializable, Cloneable
Describes a VPC with a security group that references your security group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecurityGroupReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroupReferenceclone()booleanequals(Object obj)StringgetGroupId()The ID of your security group.StringgetReferencingVpcId()The ID of the VPC with the referencing security group.StringgetVpcPeeringConnectionId()The ID of the VPC peering connection.inthashCode()voidsetGroupId(String groupId)The ID of your security group.voidsetReferencingVpcId(String referencingVpcId)The ID of the VPC with the referencing security group.voidsetVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of the VPC peering connection.StringtoString()Returns a string representation of this object; useful for testing and debugging.SecurityGroupReferencewithGroupId(String groupId)The ID of your security group.SecurityGroupReferencewithReferencingVpcId(String referencingVpcId)The ID of the VPC with the referencing security group.SecurityGroupReferencewithVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of the VPC peering connection.
-
-
-
Method Detail
-
setGroupId
public void setGroupId(String groupId)
The ID of your security group.
- Parameters:
groupId- The ID of your security group.
-
getGroupId
public String getGroupId()
The ID of your security group.
- Returns:
- The ID of your security group.
-
withGroupId
public SecurityGroupReference withGroupId(String groupId)
The ID of your security group.
- Parameters:
groupId- The ID of your security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReferencingVpcId
public void setReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.
- Parameters:
referencingVpcId- The ID of the VPC with the referencing security group.
-
getReferencingVpcId
public String getReferencingVpcId()
The ID of the VPC with the referencing security group.
- Returns:
- The ID of the VPC with the referencing security group.
-
withReferencingVpcId
public SecurityGroupReference withReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.
- Parameters:
referencingVpcId- The ID of the VPC with the referencing security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcPeeringConnectionId
public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId- The ID of the VPC peering connection.
-
getVpcPeeringConnectionId
public String getVpcPeeringConnectionId()
The ID of the VPC peering connection.
- Returns:
- The ID of the VPC peering connection.
-
withVpcPeeringConnectionId
public SecurityGroupReference withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId- The ID of the VPC peering connection.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SecurityGroupReference clone()
-
-