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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AttachClassicLinkVpcRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachClassicLinkVpcRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)Request<AttachClassicLinkVpcRequest>getDryRunRequest()This method is intended for internal use only.List<String>getGroups()The ID of one or more of the VPC's security groups.StringgetInstanceId()The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.StringgetVpcId()The ID of a ClassicLink-enabled VPC.inthashCode()voidsetGroups(Collection<String> groups)The ID of one or more of the VPC's security groups.voidsetInstanceId(String instanceId)The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.voidsetVpcId(String vpcId)The ID of a ClassicLink-enabled VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.AttachClassicLinkVpcRequestwithGroups(String... groups)The ID of one or more of the VPC's security groups.AttachClassicLinkVpcRequestwithGroups(Collection<String> groups)The ID of one or more of the VPC's security groups.AttachClassicLinkVpcRequestwithInstanceId(String instanceId)The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.AttachClassicLinkVpcRequestwithVpcId(String vpcId)The ID of a ClassicLink-enabled VPC.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
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)orwithGroups(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:
getDryRunRequestin interfaceDryRunSupportedRequest<AttachClassicLinkVpcRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AttachClassicLinkVpcRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-