Class VpcPeeringConnection

    • Constructor Detail

      • VpcPeeringConnection

        public VpcPeeringConnection()
    • Method Detail

      • setAccepterVpcInfo

        public void setAccepterVpcInfo​(VpcPeeringConnectionVpcInfo accepterVpcInfo)

        Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.

        Parameters:
        accepterVpcInfo - Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.
      • getAccepterVpcInfo

        public VpcPeeringConnectionVpcInfo getAccepterVpcInfo()

        Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.

        Returns:
        Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.
      • withAccepterVpcInfo

        public VpcPeeringConnection withAccepterVpcInfo​(VpcPeeringConnectionVpcInfo accepterVpcInfo)

        Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.

        Parameters:
        accepterVpcInfo - Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the initiating-request or pending-acceptance state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setExpirationTime

        public void setExpirationTime​(Date expirationTime)

        The time that an unaccepted VPC peering connection will expire.

        Parameters:
        expirationTime - The time that an unaccepted VPC peering connection will expire.
      • getExpirationTime

        public Date getExpirationTime()

        The time that an unaccepted VPC peering connection will expire.

        Returns:
        The time that an unaccepted VPC peering connection will expire.
      • withExpirationTime

        public VpcPeeringConnection withExpirationTime​(Date expirationTime)

        The time that an unaccepted VPC peering connection will expire.

        Parameters:
        expirationTime - The time that an unaccepted VPC peering connection will expire.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRequesterVpcInfo

        public void setRequesterVpcInfo​(VpcPeeringConnectionVpcInfo requesterVpcInfo)

        Information about the requester VPC.

        Parameters:
        requesterVpcInfo - Information about the requester VPC.
      • getRequesterVpcInfo

        public VpcPeeringConnectionVpcInfo getRequesterVpcInfo()

        Information about the requester VPC.

        Returns:
        Information about the requester VPC.
      • withRequesterVpcInfo

        public VpcPeeringConnection withRequesterVpcInfo​(VpcPeeringConnectionVpcInfo requesterVpcInfo)

        Information about the requester VPC.

        Parameters:
        requesterVpcInfo - Information about the requester VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus

        public void setStatus​(VpcPeeringConnectionStateReason status)

        The status of the VPC peering connection.

        Parameters:
        status - The status of the VPC peering connection.
      • getStatus

        public VpcPeeringConnectionStateReason getStatus()

        The status of the VPC peering connection.

        Returns:
        The status of the VPC peering connection.
      • withStatus

        public VpcPeeringConnection withStatus​(VpcPeeringConnectionStateReason status)

        The status of the VPC peering connection.

        Parameters:
        status - The status of the VPC peering connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public List<Tag> getTags()

        Any tags assigned to the resource.

        Returns:
        Any tags assigned to the resource.
      • setTags

        public void setTags​(Collection<Tag> tags)

        Any tags assigned to the resource.

        Parameters:
        tags - Any tags assigned to the resource.
      • withTags

        public VpcPeeringConnection withTags​(Tag... tags)

        Any tags assigned to the resource.

        NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

        Parameters:
        tags - Any tags assigned to the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTags

        public VpcPeeringConnection withTags​(Collection<Tag> tags)

        Any tags assigned to the resource.

        Parameters:
        tags - Any tags assigned to the resource.
        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 VpcPeeringConnection 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object