@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachClassicLinkVpcRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AttachClassicLinkVpcRequest>
Contains the parameters for AttachClassicLinkVpc.
NOOP
Constructor and Description |
---|
AttachClassicLinkVpcRequest() |
Modifier and Type | Method and Description |
---|---|
AttachClassicLinkVpcRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(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.
|
String |
getInstanceId()
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
|
String |
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 |
setVpcId(String vpcId)
The ID of a ClassicLink-enabled VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AttachClassicLinkVpcRequest |
withGroups(Collection<String> groups)
The ID of one or more of the VPC's security groups.
|
AttachClassicLinkVpcRequest |
withGroups(String... groups)
The ID of one or more of the VPC's security groups.
|
AttachClassicLinkVpcRequest |
withInstanceId(String instanceId)
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
|
AttachClassicLinkVpcRequest |
withVpcId(String vpcId)
The ID of a ClassicLink-enabled VPC.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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.
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.
groups
- The ID of one or more of the VPC's security groups. You cannot specify security groups from a different
VPC.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.
groups
- The ID of one or more of the VPC's security groups. You cannot specify security groups from a different
VPC.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.
groups
- The ID of one or more of the VPC's security groups. You cannot specify security groups from a different
VPC.public void setInstanceId(String instanceId)
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
instanceId
- The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.public String getInstanceId()
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
public AttachClassicLinkVpcRequest withInstanceId(String instanceId)
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
instanceId
- The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.public void setVpcId(String vpcId)
The ID of a ClassicLink-enabled VPC.
vpcId
- The ID of a ClassicLink-enabled VPC.public String getVpcId()
The ID of a ClassicLink-enabled VPC.
public AttachClassicLinkVpcRequest withVpcId(String vpcId)
The ID of a ClassicLink-enabled VPC.
vpcId
- The ID of a ClassicLink-enabled VPC.public Request<AttachClassicLinkVpcRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachClassicLinkVpcRequest>
public String toString()
toString
in class Object
Object.toString()
public AttachClassicLinkVpcRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.