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:
  • Constructor Details

    • SecurityGroupReference

      public SecurityGroupReference()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SecurityGroupReference clone()
      Overrides:
      clone in class Object