@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TerminateInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<TerminateInstancesRequest>
Contains the parameters for TerminateInstances.
NOOP
Constructor and Description |
---|
TerminateInstancesRequest()
Default constructor for TerminateInstancesRequest object.
|
TerminateInstancesRequest(List<String> instanceIds)
Constructs a new TerminateInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
TerminateInstancesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<TerminateInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getInstanceIds()
One or more instance IDs.
|
int |
hashCode() |
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TerminateInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
TerminateInstancesRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
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 TerminateInstancesRequest()
public TerminateInstancesRequest(List<String> instanceIds)
instanceIds
- One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public List<String> getInstanceIds()
One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public void setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
instanceIds
- One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public TerminateInstancesRequest withInstanceIds(String... instanceIds)
One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to
override the existing values.
instanceIds
- One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public TerminateInstancesRequest withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
instanceIds
- One or more instance IDs.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public Request<TerminateInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<TerminateInstancesRequest>
public String toString()
toString
in class Object
Object.toString()
public TerminateInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.