Class VpnGateway

    • Constructor Detail

      • VpnGateway

        public VpnGateway()
    • Method Detail

      • setVpnGatewayId

        public void setVpnGatewayId​(String vpnGatewayId)

        The ID of the virtual private gateway.

        Parameters:
        vpnGatewayId - The ID of the virtual private gateway.
      • getVpnGatewayId

        public String getVpnGatewayId()

        The ID of the virtual private gateway.

        Returns:
        The ID of the virtual private gateway.
      • withVpnGatewayId

        public VpnGateway withVpnGatewayId​(String vpnGatewayId)

        The ID of the virtual private gateway.

        Parameters:
        vpnGatewayId - The ID of the virtual private gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setState

        public void setState​(String state)

        The current state of the virtual private gateway.

        Parameters:
        state - The current state of the virtual private gateway.
        See Also:
        VpnState
      • getState

        public String getState()

        The current state of the virtual private gateway.

        Returns:
        The current state of the virtual private gateway.
        See Also:
        VpnState
      • withState

        public VpnGateway withState​(String state)

        The current state of the virtual private gateway.

        Parameters:
        state - The current state of the virtual private gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VpnState
      • setState

        public void setState​(VpnState state)

        The current state of the virtual private gateway.

        Parameters:
        state - The current state of the virtual private gateway.
        See Also:
        VpnState
      • withState

        public VpnGateway withState​(VpnState state)

        The current state of the virtual private gateway.

        Parameters:
        state - The current state of the virtual private gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VpnState
      • setType

        public void setType​(String type)

        The type of VPN connection the virtual private gateway supports.

        Parameters:
        type - The type of VPN connection the virtual private gateway supports.
        See Also:
        GatewayType
      • getType

        public String getType()

        The type of VPN connection the virtual private gateway supports.

        Returns:
        The type of VPN connection the virtual private gateway supports.
        See Also:
        GatewayType
      • withType

        public VpnGateway withType​(String type)

        The type of VPN connection the virtual private gateway supports.

        Parameters:
        type - The type of VPN connection the virtual private gateway supports.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GatewayType
      • setType

        public void setType​(GatewayType type)

        The type of VPN connection the virtual private gateway supports.

        Parameters:
        type - The type of VPN connection the virtual private gateway supports.
        See Also:
        GatewayType
      • withType

        public VpnGateway withType​(GatewayType type)

        The type of VPN connection the virtual private gateway supports.

        Parameters:
        type - The type of VPN connection the virtual private gateway supports.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GatewayType
      • setAvailabilityZone

        public void setAvailabilityZone​(String availabilityZone)

        The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

        Parameters:
        availabilityZone - The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
      • getAvailabilityZone

        public String getAvailabilityZone()

        The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

        Returns:
        The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
      • withAvailabilityZone

        public VpnGateway withAvailabilityZone​(String availabilityZone)

        The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

        Parameters:
        availabilityZone - The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getVpcAttachments

        public List<VpcAttachment> getVpcAttachments()

        Any VPCs attached to the virtual private gateway.

        Returns:
        Any VPCs attached to the virtual private gateway.
      • setVpcAttachments

        public void setVpcAttachments​(Collection<VpcAttachment> vpcAttachments)

        Any VPCs attached to the virtual private gateway.

        Parameters:
        vpcAttachments - Any VPCs attached to the virtual private gateway.
      • withVpcAttachments

        public VpnGateway withVpcAttachments​(VpcAttachment... vpcAttachments)

        Any VPCs attached to the virtual private gateway.

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

        Parameters:
        vpcAttachments - Any VPCs attached to the virtual private gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withVpcAttachments

        public VpnGateway withVpcAttachments​(Collection<VpcAttachment> vpcAttachments)

        Any VPCs attached to the virtual private gateway.

        Parameters:
        vpcAttachments - Any VPCs attached to the virtual private gateway.
        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 virtual private gateway.

        Returns:
        Any tags assigned to the virtual private gateway.
      • setTags

        public void setTags​(Collection<Tag> tags)

        Any tags assigned to the virtual private gateway.

        Parameters:
        tags - Any tags assigned to the virtual private gateway.
      • withTags

        public VpnGateway withTags​(Tag... tags)

        Any tags assigned to the virtual private gateway.

        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 virtual private gateway.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTags

        public VpnGateway withTags​(Collection<Tag> tags)

        Any tags assigned to the virtual private gateway.

        Parameters:
        tags - Any tags assigned to the virtual private gateway.
        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