Class AttachClassicLinkVpcRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AttachClassicLinkVpcRequest>
,Serializable
,Cloneable
Contains the parameters for AttachClassicLinkVpc.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This method is intended for internal use only.The ID of one or more of the VPC's security groups.The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.getVpcId()
The ID of a ClassicLink-enabled VPC.int
hashCode()
void
setGroups
(Collection<String> groups) The ID of one or more of the VPC's security groups.void
setInstanceId
(String instanceId) The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.void
The ID of a ClassicLink-enabled VPC.toString()
Returns a string representation of this object; useful for testing and debugging.withGroups
(String... groups) The ID of one or more of the VPC's security groups.withGroups
(Collection<String> groups) The ID of one or more of the VPC's security groups.withInstanceId
(String instanceId) The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.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
-
Constructor Details
-
AttachClassicLinkVpcRequest
public AttachClassicLinkVpcRequest()
-
-
Method Details
-
setInstanceId
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
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
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
The ID of a ClassicLink-enabled VPC.
- Parameters:
vpcId
- The ID of a ClassicLink-enabled VPC.
-
getVpcId
The ID of a ClassicLink-enabled VPC.
- Returns:
- The ID of a ClassicLink-enabled VPC.
-
withVpcId
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
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
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
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
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
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 interfaceDryRunSupportedRequest<AttachClassicLinkVpcRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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 classAmazonWebServiceRequest
- See Also:
-