Class SendCommandRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simplesystemsmanagement.model.SendCommandRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SendCommandRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SendCommandRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendCommandRequestaddParametersEntry(String key, List<String> value)SendCommandRequestclearParametersEntries()Removes all the entries added into Parameters.SendCommandRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetComment()User-specified information about the command, such as a brief description of what the command should do.StringgetDocumentHash()The Sha256 or Sha1 hash created by the system when the document was created.StringgetDocumentHashType()Sha256 or Sha1.StringgetDocumentName()Required.List<String>getInstanceIds()Required.StringgetOutputS3BucketName()The name of the S3 bucket where command execution responses should be stored.StringgetOutputS3KeyPrefix()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.IntegergetTimeoutSeconds()If this time is reached and the command has not already started executing, it will not execute.inthashCode()voidsetComment(String comment)User-specified information about the command, such as a brief description of what the command should do.voidsetDocumentHash(String documentHash)The Sha256 or Sha1 hash created by the system when the document was created.voidsetDocumentHashType(DocumentHashType documentHashType)Sha256 or Sha1.voidsetDocumentHashType(String documentHashType)Sha256 or Sha1.voidsetDocumentName(String documentName)Required.voidsetInstanceIds(Collection<String> instanceIds)Required.voidsetOutputS3BucketName(String outputS3BucketName)The name of the S3 bucket where command execution responses should be stored.voidsetOutputS3KeyPrefix(String outputS3KeyPrefix)The directory structure within the S3 bucket where the responses should be stored.voidsetParameters(Map<String,List<String>> parameters)The required and optional parameters specified in the SSM document being executed.voidsetTimeoutSeconds(Integer timeoutSeconds)If this time is reached and the command has not already started executing, it will not execute.StringtoString()Returns a string representation of this object; useful for testing and debugging.SendCommandRequestwithComment(String comment)User-specified information about the command, such as a brief description of what the command should do.SendCommandRequestwithDocumentHash(String documentHash)The Sha256 or Sha1 hash created by the system when the document was created.SendCommandRequestwithDocumentHashType(DocumentHashType documentHashType)Sha256 or Sha1.SendCommandRequestwithDocumentHashType(String documentHashType)Sha256 or Sha1.SendCommandRequestwithDocumentName(String documentName)Required.SendCommandRequestwithInstanceIds(String... instanceIds)Required.SendCommandRequestwithInstanceIds(Collection<String> instanceIds)Required.SendCommandRequestwithOutputS3BucketName(String outputS3BucketName)The name of the S3 bucket where command execution responses should be stored.SendCommandRequestwithOutputS3KeyPrefix(String outputS3KeyPrefix)The directory structure within the S3 bucket where the responses should be stored.SendCommandRequestwithParameters(Map<String,List<String>> parameters)The required and optional parameters specified in the SSM document being executed.SendCommandRequestwithTimeoutSeconds(Integer timeoutSeconds)If this time is reached and the command has not already started executing, it will not execute.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
getInstanceIds
public List<String> getInstanceIds()
Required. The instance IDs where the command should execute.
- Returns:
- Required. The instance IDs where the command should execute.
-
setInstanceIds
public void setInstanceIds(Collection<String> instanceIds)
Required. The instance IDs where the command should execute.
- Parameters:
instanceIds- Required. The instance IDs where the command should execute.
-
withInstanceIds
public SendCommandRequest withInstanceIds(String... instanceIds)
Required. The instance IDs where the command should execute.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)orwithInstanceIds(java.util.Collection)if you want to override the existing values.- Parameters:
instanceIds- Required. The instance IDs where the command should execute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceIds
public SendCommandRequest withInstanceIds(Collection<String> instanceIds)
Required. The instance IDs where the command should execute.
- Parameters:
instanceIds- Required. The instance IDs where the command should execute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDocumentName
public void setDocumentName(String documentName)
Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.
- Parameters:
documentName- Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.
-
getDocumentName
public String getDocumentName()
Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.
- Returns:
- Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.
-
withDocumentName
public SendCommandRequest withDocumentName(String documentName)
Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.
- Parameters:
documentName- Required. The name of the SSM document to execute. This can be an SSM public document or a custom document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDocumentHash
public void setDocumentHash(String documentHash)
The Sha256 or Sha1 hash created by the system when the document was created.
Sha1 hashes have been deprecated.
- Parameters:
documentHash- The Sha256 or Sha1 hash created by the system when the document was created.Sha1 hashes have been deprecated.
-
getDocumentHash
public String getDocumentHash()
The Sha256 or Sha1 hash created by the system when the document was created.
Sha1 hashes have been deprecated.
- Returns:
- The Sha256 or Sha1 hash created by the system when the document
was created.
Sha1 hashes have been deprecated.
-
withDocumentHash
public SendCommandRequest withDocumentHash(String documentHash)
The Sha256 or Sha1 hash created by the system when the document was created.
Sha1 hashes have been deprecated.
- Parameters:
documentHash- The Sha256 or Sha1 hash created by the system when the document was created.Sha1 hashes have been deprecated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDocumentHashType
public void setDocumentHashType(String documentHashType)
Sha256 or Sha1.
Sha1 hashes have been deprecated.
- Parameters:
documentHashType- Sha256 or Sha1.Sha1 hashes have been deprecated.
- See Also:
DocumentHashType
-
getDocumentHashType
public String getDocumentHashType()
Sha256 or Sha1.
Sha1 hashes have been deprecated.
- Returns:
- Sha256 or Sha1.
Sha1 hashes have been deprecated.
- See Also:
DocumentHashType
-
withDocumentHashType
public SendCommandRequest withDocumentHashType(String documentHashType)
Sha256 or Sha1.
Sha1 hashes have been deprecated.
- Parameters:
documentHashType- Sha256 or Sha1.Sha1 hashes have been deprecated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DocumentHashType
-
setDocumentHashType
public void setDocumentHashType(DocumentHashType documentHashType)
Sha256 or Sha1.
Sha1 hashes have been deprecated.
- Parameters:
documentHashType- Sha256 or Sha1.Sha1 hashes have been deprecated.
- See Also:
DocumentHashType
-
withDocumentHashType
public SendCommandRequest withDocumentHashType(DocumentHashType documentHashType)
Sha256 or Sha1.
Sha1 hashes have been deprecated.
- Parameters:
documentHashType- Sha256 or Sha1.Sha1 hashes have been deprecated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DocumentHashType
-
setTimeoutSeconds
public void setTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started executing, it will not execute.
- Parameters:
timeoutSeconds- If this time is reached and the command has not already started executing, it will not execute.
-
getTimeoutSeconds
public Integer getTimeoutSeconds()
If this time is reached and the command has not already started executing, it will not execute.
- Returns:
- If this time is reached and the command has not already started executing, it will not execute.
-
withTimeoutSeconds
public SendCommandRequest withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started executing, it will not execute.
- Parameters:
timeoutSeconds- If this time is reached and the command has not already started executing, it will not execute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComment
public void setComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
- Parameters:
comment- User-specified information about the command, such as a brief description of what the command should do.
-
getComment
public String getComment()
User-specified information about the command, such as a brief description of what the command should do.
- Returns:
- User-specified information about the command, such as a brief description of what the command should do.
-
withComment
public SendCommandRequest withComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
- Parameters:
comment- User-specified information about the command, such as a brief description of what the command should do.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getParameters
public Map<String,List<String>> getParameters()
The required and optional parameters specified in the SSM document being executed.
- Returns:
- The required and optional parameters specified in the SSM document being executed.
-
setParameters
public void setParameters(Map<String,List<String>> parameters)
The required and optional parameters specified in the SSM document being executed.
- Parameters:
parameters- The required and optional parameters specified in the SSM document being executed.
-
withParameters
public SendCommandRequest withParameters(Map<String,List<String>> parameters)
The required and optional parameters specified in the SSM document being executed.
- Parameters:
parameters- The required and optional parameters specified in the SSM document being executed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addParametersEntry
public SendCommandRequest addParametersEntry(String key, List<String> value)
-
clearParametersEntries
public SendCommandRequest clearParametersEntries()
Removes all the entries added into Parameters. <p> Returns a reference to this object so that method calls can be chained together.
-
setOutputS3BucketName
public void setOutputS3BucketName(String outputS3BucketName)
The name of the S3 bucket where command execution responses should be stored.
- Parameters:
outputS3BucketName- The name of the S3 bucket where command execution responses should be stored.
-
getOutputS3BucketName
public String getOutputS3BucketName()
The name of the S3 bucket where command execution responses should be stored.
- Returns:
- The name of the S3 bucket where command execution responses should be stored.
-
withOutputS3BucketName
public SendCommandRequest withOutputS3BucketName(String outputS3BucketName)
The name of the S3 bucket where command execution responses should be stored.
- Parameters:
outputS3BucketName- The name of the S3 bucket where command execution responses should be stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOutputS3KeyPrefix
public void setOutputS3KeyPrefix(String outputS3KeyPrefix)
The directory structure within the S3 bucket where the responses should be stored.
- Parameters:
outputS3KeyPrefix- The directory structure within the S3 bucket where the responses should be stored.
-
getOutputS3KeyPrefix
public String getOutputS3KeyPrefix()
The directory structure within the S3 bucket where the responses should be stored.
- Returns:
- The directory structure within the S3 bucket where the responses should be stored.
-
withOutputS3KeyPrefix
public SendCommandRequest withOutputS3KeyPrefix(String outputS3KeyPrefix)
The directory structure within the S3 bucket where the responses should be stored.
- Parameters:
outputS3KeyPrefix- The directory structure within the S3 bucket where the responses should be stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SendCommandRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-