Class AttachClassicLinkVpcRequest

    • Constructor Detail

      • AttachClassicLinkVpcRequest

        public AttachClassicLinkVpcRequest()
    • Method Detail

      • setInstanceId

        public void setInstanceId​(String instanceId)

        The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

        Parameters:
        instanceId - The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
      • getInstanceId

        public String getInstanceId()

        The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

        Returns:
        The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
      • withInstanceId

        public AttachClassicLinkVpcRequest withInstanceId​(String instanceId)

        The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

        Parameters:
        instanceId - The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVpcId

        public void setVpcId​(String vpcId)

        The ID of a ClassicLink-enabled VPC.

        Parameters:
        vpcId - The ID of a ClassicLink-enabled VPC.
      • getVpcId

        public String getVpcId()

        The ID of a ClassicLink-enabled VPC.

        Returns:
        The ID of a ClassicLink-enabled VPC.
      • withVpcId

        public AttachClassicLinkVpcRequest withVpcId​(String vpcId)

        The ID of a ClassicLink-enabled VPC.

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

        public List<String> getGroups()

        The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

        Returns:
        The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.
      • setGroups

        public void setGroups​(Collection<String> groups)

        The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

        Parameters:
        groups - The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.
      • withGroups

        public AttachClassicLinkVpcRequest withGroups​(String... groups)

        The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

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

        Parameters:
        groups - The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withGroups

        public AttachClassicLinkVpcRequest withGroups​(Collection<String> groups)

        The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

        Parameters:
        groups - The ID of one or more of the VPC's security groups. You cannot specify security groups from a different 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object