public class AttachClassicLinkVpcRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<AttachClassicLinkVpcRequest>
Contains the parameters for AttachClassicLinkVpc.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
groups
The ID of one or more of the VPC's security groups.
|
private java.lang.String |
instanceId
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
|
private java.lang.String |
vpcId
The ID of a ClassicLink-enabled VPC.
|
NOOP
Constructor and Description |
---|
AttachClassicLinkVpcRequest() |
Modifier and Type | Method and Description |
---|---|
AttachClassicLinkVpcRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<AttachClassicLinkVpcRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getGroups()
The ID of one or more of the VPC's security groups.
|
java.lang.String |
getInstanceId()
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
|
java.lang.String |
getVpcId()
The ID of a ClassicLink-enabled VPC.
|
int |
hashCode() |
void |
setGroups(java.util.Collection<java.lang.String> groups)
The ID of one or more of the VPC's security groups.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
|
void |
setVpcId(java.lang.String vpcId)
The ID of a ClassicLink-enabled VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachClassicLinkVpcRequest |
withGroups(java.util.Collection<java.lang.String> groups)
The ID of one or more of the VPC's security groups.
|
AttachClassicLinkVpcRequest |
withGroups(java.lang.String... groups)
The ID of one or more of the VPC's security groups.
|
AttachClassicLinkVpcRequest |
withInstanceId(java.lang.String instanceId)
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
|
AttachClassicLinkVpcRequest |
withVpcId(java.lang.String vpcId)
The ID of a ClassicLink-enabled VPC.
|
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
private java.lang.String instanceId
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
private java.lang.String vpcId
The ID of a ClassicLink-enabled VPC.
private SdkInternalList<java.lang.String> 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(java.lang.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 java.lang.String getInstanceId()
The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
public AttachClassicLinkVpcRequest withInstanceId(java.lang.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(java.lang.String vpcId)
The ID of a ClassicLink-enabled VPC.
vpcId
- The ID of a ClassicLink-enabled VPC.public java.lang.String getVpcId()
The ID of a ClassicLink-enabled VPC.
public AttachClassicLinkVpcRequest withVpcId(java.lang.String vpcId)
The ID of a ClassicLink-enabled VPC.
vpcId
- The ID of a ClassicLink-enabled VPC.public java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 Request<AttachClassicLinkVpcRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachClassicLinkVpcRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AttachClassicLinkVpcRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()