Class VpcPeeringConnectionVpcInfo

java.lang.Object
com.amazonaws.services.ec2.model.VpcPeeringConnectionVpcInfo
All Implemented Interfaces:
Serializable, Cloneable

public class VpcPeeringConnectionVpcInfo extends Object implements Serializable, Cloneable

Describes a VPC in a VPC peering connection.

See Also:
  • Constructor Details

    • VpcPeeringConnectionVpcInfo

      public VpcPeeringConnectionVpcInfo()
  • Method Details

    • setCidrBlock

      public void setCidrBlock(String cidrBlock)

      The CIDR block for the VPC.

      Parameters:
      cidrBlock - The CIDR block for the VPC.
    • getCidrBlock

      public String getCidrBlock()

      The CIDR block for the VPC.

      Returns:
      The CIDR block for the VPC.
    • withCidrBlock

      public VpcPeeringConnectionVpcInfo withCidrBlock(String cidrBlock)

      The CIDR block for the VPC.

      Parameters:
      cidrBlock - The CIDR block for the VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setOwnerId

      public void setOwnerId(String ownerId)

      The AWS account ID of the VPC owner.

      Parameters:
      ownerId - The AWS account ID of the VPC owner.
    • getOwnerId

      public String getOwnerId()

      The AWS account ID of the VPC owner.

      Returns:
      The AWS account ID of the VPC owner.
    • withOwnerId

      public VpcPeeringConnectionVpcInfo withOwnerId(String ownerId)

      The AWS account ID of the VPC owner.

      Parameters:
      ownerId - The AWS account ID of the VPC owner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVpcId

      public void setVpcId(String vpcId)

      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC.
    • getVpcId

      public String getVpcId()

      The ID of the VPC.

      Returns:
      The ID of the VPC.
    • withVpcId

      public VpcPeeringConnectionVpcInfo withVpcId(String vpcId)

      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPeeringOptions

      public void setPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)

      Information about the VPC peering connection options for the accepter or requester VPC.

      Parameters:
      peeringOptions - Information about the VPC peering connection options for the accepter or requester VPC.
    • getPeeringOptions

      public VpcPeeringConnectionOptionsDescription getPeeringOptions()

      Information about the VPC peering connection options for the accepter or requester VPC.

      Returns:
      Information about the VPC peering connection options for the accepter or requester VPC.
    • withPeeringOptions

      public VpcPeeringConnectionVpcInfo withPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)

      Information about the VPC peering connection options for the accepter or requester VPC.

      Parameters:
      peeringOptions - Information about the VPC peering connection options for the accepter or requester VPC.
      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

      Overrides:
      clone in class Object