public class SendCommandRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SendCommandRequest() |
Modifier and Type | Method and Description |
---|---|
SendCommandRequest |
addParametersEntry(String key,
List<String> value) |
SendCommandRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
SendCommandRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getComment()
User-specified information about the command, such as a brief description
of what the command should do.
|
String |
getDocumentName()
Required.
|
List<String> |
getInstanceIds()
Required.
|
String |
getOutputS3BucketName()
The name of the S3 bucket where command execution responses should be
stored.
|
String |
getOutputS3KeyPrefix()
The directory structure within the S3 bucket where the responses should
be stored.
|
Map<String,List<String>> |
getParameters()
The required and optional parameters specified in the SSM document being
executed.
|
Integer |
getTimeoutSeconds()
If this time is reached and the command has not already started
executing, it will not execute.
|
int |
hashCode() |
void |
setComment(String comment)
User-specified information about the command, such as a brief description
of what the command should do.
|
void |
setDocumentName(String documentName)
Required.
|
void |
setInstanceIds(Collection<String> instanceIds)
Required.
|
void |
setOutputS3BucketName(String outputS3BucketName)
The name of the S3 bucket where command execution responses should be
stored.
|
void |
setOutputS3KeyPrefix(String outputS3KeyPrefix)
The directory structure within the S3 bucket where the responses should
be stored.
|
void |
setParameters(Map<String,List<String>> parameters)
The required and optional parameters specified in the SSM document being
executed.
|
void |
setTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started
executing, it will not execute.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SendCommandRequest |
withComment(String comment)
User-specified information about the command, such as a brief description
of what the command should do.
|
SendCommandRequest |
withDocumentName(String documentName)
Required.
|
SendCommandRequest |
withInstanceIds(Collection<String> instanceIds)
Required.
|
SendCommandRequest |
withInstanceIds(String... instanceIds)
Required.
|
SendCommandRequest |
withOutputS3BucketName(String outputS3BucketName)
The name of the S3 bucket where command execution responses should be
stored.
|
SendCommandRequest |
withOutputS3KeyPrefix(String outputS3KeyPrefix)
The directory structure within the S3 bucket where the responses should
be stored.
|
SendCommandRequest |
withParameters(Map<String,List<String>> parameters)
The required and optional parameters specified in the SSM document being
executed.
|
SendCommandRequest |
withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started
executing, it will not execute.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- Required. The instance IDs where the command should execute.public SendCommandRequest withInstanceIds(String... instanceIds)
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
- Required. The instance IDs where the command should execute.public SendCommandRequest withInstanceIds(Collection<String> instanceIds)
instanceIds
- Required. The instance IDs where the command should execute.public void setDocumentName(String documentName)
documentName
- Required. The name of the SSM document to execute. This can be an
SSM public document or a custom document.public String getDocumentName()
public SendCommandRequest withDocumentName(String documentName)
documentName
- Required. The name of the SSM document to execute. This can be an
SSM public document or a custom document.public void setTimeoutSeconds(Integer timeoutSeconds)
timeoutSeconds
- If this time is reached and the command has not already started
executing, it will not execute.public Integer getTimeoutSeconds()
public SendCommandRequest withTimeoutSeconds(Integer timeoutSeconds)
timeoutSeconds
- If this time is reached and the command has not already started
executing, it will not execute.public void setComment(String comment)
comment
- User-specified information about the command, such as a brief
description of what the command should do.public String getComment()
public SendCommandRequest withComment(String comment)
comment
- User-specified information about the command, such as a brief
description of what the command should do.public Map<String,List<String>> getParameters()
public void setParameters(Map<String,List<String>> parameters)
parameters
- The required and optional parameters specified in the SSM document
being executed.public SendCommandRequest withParameters(Map<String,List<String>> parameters)
parameters
- The required and optional parameters specified in the SSM document
being executed.public SendCommandRequest addParametersEntry(String key, List<String> value)
public SendCommandRequest clearParametersEntries()
public void setOutputS3BucketName(String outputS3BucketName)
outputS3BucketName
- The name of the S3 bucket where command execution responses should
be stored.public String getOutputS3BucketName()
public SendCommandRequest withOutputS3BucketName(String outputS3BucketName)
outputS3BucketName
- The name of the S3 bucket where command execution responses should
be stored.public void setOutputS3KeyPrefix(String outputS3KeyPrefix)
outputS3KeyPrefix
- The directory structure within the S3 bucket where the responses
should be stored.public String getOutputS3KeyPrefix()
public SendCommandRequest withOutputS3KeyPrefix(String outputS3KeyPrefix)
outputS3KeyPrefix
- The directory structure within the S3 bucket where the responses
should be stored.public String toString()
toString
in class Object
Object.toString()
public SendCommandRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.