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 SecurityGroupReference
clone()
boolean
equals(Object obj)
String
getGroupId()
The ID of your security group.String
getReferencingVpcId()
The ID of the VPC with the referencing security group.String
getVpcPeeringConnectionId()
The ID of the VPC peering connection.int
hashCode()
void
setGroupId(String groupId)
The ID of your security group.void
setReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.void
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.String
toString()
Returns a string representation of this object; useful for testing and debugging.SecurityGroupReference
withGroupId(String groupId)
The ID of your security group.SecurityGroupReference
withReferencingVpcId(String referencingVpcId)
The ID of the VPC with the referencing security group.SecurityGroupReference
withVpcPeeringConnectionId(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SecurityGroupReference clone()
-
-