Class AttachClassicLinkVpcRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.AttachClassicLinkVpcRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<AttachClassicLinkVpcRequest>, Serializable, Cloneable

public class AttachClassicLinkVpcRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AttachClassicLinkVpcRequest>

Contains the parameters for AttachClassicLinkVpc.

See Also:
  • Constructor Details

    • AttachClassicLinkVpcRequest

      public AttachClassicLinkVpcRequest()
  • Method Details

    • 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.
    • getDryRunRequest

      public Request<AttachClassicLinkVpcRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<AttachClassicLinkVpcRequest>
    • 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

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: