@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachClassicLinkVpcRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AttachClassicLinkVpcRequest>
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 IDs of the security groups.
|
String |
getInstanceId()
The ID of the EC2-Classic instance.
|
String |
getVpcId()
The ID of the ClassicLink-enabled VPC.
|
int |
hashCode() |
void |
setGroups(Collection<String> groups)
The IDs of the security groups.
|
void |
setInstanceId(String instanceId)
The ID of the EC2-Classic instance.
|
void |
setVpcId(String vpcId)
The ID of the ClassicLink-enabled VPC.
|
String |
toString()
Returns a string representation of this object.
|
AttachClassicLinkVpcRequest |
withGroups(Collection<String> groups)
The IDs of the security groups.
|
AttachClassicLinkVpcRequest |
withGroups(String... groups)
The IDs of the security groups.
|
AttachClassicLinkVpcRequest |
withInstanceId(String instanceId)
The ID of the EC2-Classic instance.
|
AttachClassicLinkVpcRequest |
withVpcId(String vpcId)
The ID of the 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, withSdkRequestTimeoutpublic List<String> getGroups()
The IDs of the security groups. You cannot specify security groups from a different VPC.
public void setGroups(Collection<String> groups)
The IDs of the security groups. You cannot specify security groups from a different VPC.
groups - The IDs of the security groups. You cannot specify security groups from a different VPC.public AttachClassicLinkVpcRequest withGroups(String... groups)
The IDs of the 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 IDs of the security groups. You cannot specify security groups from a different VPC.public AttachClassicLinkVpcRequest withGroups(Collection<String> groups)
The IDs of the security groups. You cannot specify security groups from a different VPC.
groups - The IDs of the security groups. You cannot specify security groups from a different VPC.public void setInstanceId(String instanceId)
The ID of the EC2-Classic instance.
instanceId - The ID of the EC2-Classic instance.public String getInstanceId()
The ID of the EC2-Classic instance.
public AttachClassicLinkVpcRequest withInstanceId(String instanceId)
The ID of the EC2-Classic instance.
instanceId - The ID of the EC2-Classic instance.public void setVpcId(String vpcId)
The ID of the ClassicLink-enabled VPC.
vpcId - The ID of the ClassicLink-enabled VPC.public String getVpcId()
The ID of the ClassicLink-enabled VPC.
public AttachClassicLinkVpcRequest withVpcId(String vpcId)
The ID of the ClassicLink-enabled VPC.
vpcId - The ID of the ClassicLink-enabled VPC.public Request<AttachClassicLinkVpcRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<AttachClassicLinkVpcRequest>public String toString()
toString in class ObjectObject.toString()public AttachClassicLinkVpcRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()