@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TerminateInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<TerminateInstancesRequest>
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()
The IDs of the instances.
|
int |
hashCode() |
void |
setInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
String |
toString()
Returns a string representation of this object.
|
TerminateInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
|
TerminateInstancesRequest |
withInstanceIds(String... instanceIds)
The IDs of the instances.
|
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
- The IDs of the instances.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public List<String> getInstanceIds()
The IDs of the instances.
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)
The IDs of the instances.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
instanceIds
- The IDs of the instances.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public TerminateInstancesRequest withInstanceIds(String... instanceIds)
The IDs of the instances.
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
- The IDs of the instances.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
public TerminateInstancesRequest withInstanceIds(Collection<String> instanceIds)
The IDs of the instances.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
instanceIds
- The IDs of the instances.
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()