@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Command extends Object implements Serializable, Cloneable, StructuredPojo
Describes a command request.
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
Command |
addParametersEntry(String key,
List<String> value) |
Command |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Command |
clone() |
boolean |
equals(Object obj) |
String |
getCommandId()
A unique identifier for this command.
|
String |
getComment()
User-specified information about the command, such as a brief description of what the command should do.
|
Integer |
getCompletedCount()
The number of targets for which the command invocation reached a terminal state.
|
String |
getDocumentName()
The name of the document requested for execution.
|
Integer |
getErrorCount()
The number of targets for which the status is Failed or Execution Timed Out.
|
Date |
getExpiresAfter()
If this time is reached and the command has not already started executing, it will not execute.
|
List<String> |
getInstanceIds()
The instance IDs against which this command was requested.
|
String |
getMaxConcurrency()
The maximum number of instances that are allowed to execute the command at the same time.
|
String |
getMaxErrors()
The maximum number of errors allowed before the system stops sending the command to additional targets.
|
NotificationConfig |
getNotificationConfig()
Configurations for sending notifications about command status changes.
|
String |
getOutputS3BucketName()
The S3 bucket where the responses to the command executions should be stored.
|
String |
getOutputS3KeyPrefix()
The S3 directory path inside the bucket where the responses to the command executions should be stored.
|
String |
getOutputS3Region()
(Deprecated) You can no longer specify this parameter.
|
Map<String,List<String>> |
getParameters()
The parameter values to be inserted in the document when executing the command.
|
Date |
getRequestedDateTime()
The date and time the command was requested.
|
String |
getServiceRole()
The IAM service role that Run Command uses to act on your behalf when sending notifications about command status
changes.
|
String |
getStatus()
The status of the command.
|
String |
getStatusDetails()
A detailed status of the command execution.
|
Integer |
getTargetCount()
The number of targets for the command.
|
List<Target> |
getTargets()
An array of search criteria that targets instances using a Key,Value combination that you specify.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommandId(String commandId)
A unique identifier for this command.
|
void |
setComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
|
void |
setCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state.
|
void |
setDocumentName(String documentName)
The name of the document requested for execution.
|
void |
setErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
|
void |
setExpiresAfter(Date expiresAfter)
If this time is reached and the command has not already started executing, it will not execute.
|
void |
setInstanceIds(Collection<String> instanceIds)
The instance IDs against which this command was requested.
|
void |
setMaxConcurrency(String maxConcurrency)
The maximum number of instances that are allowed to execute the command at the same time.
|
void |
setMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets.
|
void |
setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
|
void |
setOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored.
|
void |
setOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored.
|
void |
setOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter.
|
void |
setParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when executing the command.
|
void |
setRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
|
void |
setServiceRole(String serviceRole)
The IAM service role that Run Command uses to act on your behalf when sending notifications about command status
changes.
|
void |
setStatus(CommandStatus status)
The status of the command.
|
void |
setStatus(String status)
The status of the command.
|
void |
setStatusDetails(String statusDetails)
A detailed status of the command execution.
|
void |
setTargetCount(Integer targetCount)
The number of targets for the command.
|
void |
setTargets(Collection<Target> targets)
An array of search criteria that targets instances using a Key,Value combination that you specify.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Command |
withCommandId(String commandId)
A unique identifier for this command.
|
Command |
withComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
|
Command |
withCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state.
|
Command |
withDocumentName(String documentName)
The name of the document requested for execution.
|
Command |
withErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
|
Command |
withExpiresAfter(Date expiresAfter)
If this time is reached and the command has not already started executing, it will not execute.
|
Command |
withInstanceIds(Collection<String> instanceIds)
The instance IDs against which this command was requested.
|
Command |
withInstanceIds(String... instanceIds)
The instance IDs against which this command was requested.
|
Command |
withMaxConcurrency(String maxConcurrency)
The maximum number of instances that are allowed to execute the command at the same time.
|
Command |
withMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets.
|
Command |
withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
|
Command |
withOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored.
|
Command |
withOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored.
|
Command |
withOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter.
|
Command |
withParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when executing the command.
|
Command |
withRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
|
Command |
withServiceRole(String serviceRole)
The IAM service role that Run Command uses to act on your behalf when sending notifications about command status
changes.
|
Command |
withStatus(CommandStatus status)
The status of the command.
|
Command |
withStatus(String status)
The status of the command.
|
Command |
withStatusDetails(String statusDetails)
A detailed status of the command execution.
|
Command |
withTargetCount(Integer targetCount)
The number of targets for the command.
|
Command |
withTargets(Collection<Target> targets)
An array of search criteria that targets instances using a Key,Value combination that you specify.
|
Command |
withTargets(Target... targets)
An array of search criteria that targets instances using a Key,Value combination that you specify.
|
public void setCommandId(String commandId)
A unique identifier for this command.
commandId
- A unique identifier for this command.public String getCommandId()
A unique identifier for this command.
public Command withCommandId(String commandId)
A unique identifier for this command.
commandId
- A unique identifier for this command.public void setDocumentName(String documentName)
The name of the document requested for execution.
documentName
- The name of the document requested for execution.public String getDocumentName()
The name of the document requested for execution.
public Command withDocumentName(String documentName)
The name of the document requested for execution.
documentName
- The name of the document requested for execution.public void setComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
comment
- User-specified information about the command, such as a brief description of what the command should do.public String getComment()
User-specified information about the command, such as a brief description of what the command should do.
public Command withComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
comment
- User-specified information about the command, such as a brief description of what the command should do.public void setExpiresAfter(Date expiresAfter)
If this time is reached and the command has not already started executing, it will not execute. Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.
expiresAfter
- If this time is reached and the command has not already started executing, it will not execute. Calculated
based on the ExpiresAfter user input provided as part of the SendCommand API.public Date getExpiresAfter()
If this time is reached and the command has not already started executing, it will not execute. Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.
public Command withExpiresAfter(Date expiresAfter)
If this time is reached and the command has not already started executing, it will not execute. Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.
expiresAfter
- If this time is reached and the command has not already started executing, it will not execute. Calculated
based on the ExpiresAfter user input provided as part of the SendCommand API.public Map<String,List<String>> getParameters()
The parameter values to be inserted in the document when executing the command.
public void setParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when executing the command.
parameters
- The parameter values to be inserted in the document when executing the command.public Command withParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when executing the command.
parameters
- The parameter values to be inserted in the document when executing the command.public Command clearParametersEntries()
public List<String> getInstanceIds()
The instance IDs against which this command was requested.
public void setInstanceIds(Collection<String> instanceIds)
The instance IDs against which this command was requested.
instanceIds
- The instance IDs against which this command was requested.public Command withInstanceIds(String... instanceIds)
The instance IDs against which this command was requested.
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 instance IDs against which this command was requested.public Command withInstanceIds(Collection<String> instanceIds)
The instance IDs against which this command was requested.
instanceIds
- The instance IDs against which this command was requested.public List<Target> getTargets()
An array of search criteria that targets instances using a Key,Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.
public void setTargets(Collection<Target> targets)
An array of search criteria that targets instances using a Key,Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.
targets
- An array of search criteria that targets instances using a Key,Value combination that you specify. Targets
is required if you don't provide one or more instance IDs in the call.public Command withTargets(Target... targets)
An array of search criteria that targets instances using a Key,Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- An array of search criteria that targets instances using a Key,Value combination that you specify. Targets
is required if you don't provide one or more instance IDs in the call.public Command withTargets(Collection<Target> targets)
An array of search criteria that targets instances using a Key,Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.
targets
- An array of search criteria that targets instances using a Key,Value combination that you specify. Targets
is required if you don't provide one or more instance IDs in the call.public void setRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
requestedDateTime
- The date and time the command was requested.public Date getRequestedDateTime()
The date and time the command was requested.
public Command withRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
requestedDateTime
- The date and time the command was requested.public void setStatus(String status)
The status of the command.
status
- The status of the command.CommandStatus
public String getStatus()
The status of the command.
CommandStatus
public Command withStatus(String status)
The status of the command.
status
- The status of the command.CommandStatus
public void setStatus(CommandStatus status)
The status of the command.
status
- The status of the command.CommandStatus
public Command withStatus(CommandStatus status)
The status of the command.
status
- The status of the command.CommandStatus
public void setStatusDetails(String statusDetails)
A detailed status of the command execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Run Command Status. StatusDetails can be one of the following values:
Pending: The command has not been sent to any instances.
In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.
Success: The command successfully executed on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Canceled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.
statusDetails
- A detailed status of the command execution. StatusDetails includes more information than Status because it
includes states resulting from error and concurrency control parameters. StatusDetails can show different
results than Status. For more information about these statuses, see Run Command
Status. StatusDetails can be one of the following values:
Pending: The command has not been sent to any instances.
In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.
Success: The command successfully executed on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Canceled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.
public String getStatusDetails()
A detailed status of the command execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Run Command Status. StatusDetails can be one of the following values:
Pending: The command has not been sent to any instances.
In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.
Success: The command successfully executed on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Canceled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.
Pending: The command has not been sent to any instances.
In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.
Success: The command successfully executed on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Canceled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.
public Command withStatusDetails(String statusDetails)
A detailed status of the command execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Run Command Status. StatusDetails can be one of the following values:
Pending: The command has not been sent to any instances.
In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.
Success: The command successfully executed on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Canceled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.
statusDetails
- A detailed status of the command execution. StatusDetails includes more information than Status because it
includes states resulting from error and concurrency control parameters. StatusDetails can show different
results than Status. For more information about these statuses, see Run Command
Status. StatusDetails can be one of the following values:
Pending: The command has not been sent to any instances.
In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.
Success: The command successfully executed on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Canceled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of instances targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before executing it on any instance. This is a terminal state.
public void setOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon S3 bucket region.
outputS3Region
- (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager
automatically determines the Amazon S3 bucket region.public String getOutputS3Region()
(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon S3 bucket region.
public Command withOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon S3 bucket region.
outputS3Region
- (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager
automatically determines the Amazon S3 bucket region.public void setOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3BucketName
- The S3 bucket where the responses to the command executions should be stored. This was requested when
issuing the command.public String getOutputS3BucketName()
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
public Command withOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3BucketName
- The S3 bucket where the responses to the command executions should be stored. This was requested when
issuing the command.public void setOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3KeyPrefix
- The S3 directory path inside the bucket where the responses to the command executions should be stored.
This was requested when issuing the command.public String getOutputS3KeyPrefix()
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
public Command withOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3KeyPrefix
- The S3 directory path inside the bucket where the responses to the command executions should be stored.
This was requested when issuing the command.public void setMaxConcurrency(String maxConcurrency)
The maximum number of instances that are allowed to execute the command at the same time. You can specify a number of instances, such as 10, or a percentage of instances, such as 10%. The default value is 50. For more information about how to use MaxConcurrency, see Executing a Command Using Systems Manager Run Command.
maxConcurrency
- The maximum number of instances that are allowed to execute the command at the same time. You can specify
a number of instances, such as 10, or a percentage of instances, such as 10%. The default value is 50. For
more information about how to use MaxConcurrency, see Executing a Command
Using Systems Manager Run Command.public String getMaxConcurrency()
The maximum number of instances that are allowed to execute the command at the same time. You can specify a number of instances, such as 10, or a percentage of instances, such as 10%. The default value is 50. For more information about how to use MaxConcurrency, see Executing a Command Using Systems Manager Run Command.
public Command withMaxConcurrency(String maxConcurrency)
The maximum number of instances that are allowed to execute the command at the same time. You can specify a number of instances, such as 10, or a percentage of instances, such as 10%. The default value is 50. For more information about how to use MaxConcurrency, see Executing a Command Using Systems Manager Run Command.
maxConcurrency
- The maximum number of instances that are allowed to execute the command at the same time. You can specify
a number of instances, such as 10, or a percentage of instances, such as 10%. The default value is 50. For
more information about how to use MaxConcurrency, see Executing a Command
Using Systems Manager Run Command.public void setMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets. You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 50. For more information about how to use MaxErrors, see Executing a Command Using Systems Manager Run Command.
maxErrors
- The maximum number of errors allowed before the system stops sending the command to additional targets.
You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value
is 50. For more information about how to use MaxErrors, see Executing a Command
Using Systems Manager Run Command.public String getMaxErrors()
The maximum number of errors allowed before the system stops sending the command to additional targets. You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 50. For more information about how to use MaxErrors, see Executing a Command Using Systems Manager Run Command.
public Command withMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets. You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 50. For more information about how to use MaxErrors, see Executing a Command Using Systems Manager Run Command.
maxErrors
- The maximum number of errors allowed before the system stops sending the command to additional targets.
You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value
is 50. For more information about how to use MaxErrors, see Executing a Command
Using Systems Manager Run Command.public void setTargetCount(Integer targetCount)
The number of targets for the command.
targetCount
- The number of targets for the command.public Integer getTargetCount()
The number of targets for the command.
public Command withTargetCount(Integer targetCount)
The number of targets for the command.
targetCount
- The number of targets for the command.public void setCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, Terminated, or Undeliverable.
completedCount
- The number of targets for which the command invocation reached a terminal state. Terminal states include
the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, Terminated, or
Undeliverable.public Integer getCompletedCount()
The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, Terminated, or Undeliverable.
public Command withCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, Terminated, or Undeliverable.
completedCount
- The number of targets for which the command invocation reached a terminal state. Terminal states include
the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Canceled, Terminated, or
Undeliverable.public void setErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
errorCount
- The number of targets for which the status is Failed or Execution Timed Out.public Integer getErrorCount()
The number of targets for which the status is Failed or Execution Timed Out.
public Command withErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
errorCount
- The number of targets for which the status is Failed or Execution Timed Out.public void setServiceRole(String serviceRole)
The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes.
serviceRole
- The IAM service role that Run Command uses to act on your behalf when sending notifications about command
status changes.public String getServiceRole()
The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes.
public Command withServiceRole(String serviceRole)
The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes.
serviceRole
- The IAM service role that Run Command uses to act on your behalf when sending notifications about command
status changes.public void setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
notificationConfig
- Configurations for sending notifications about command status changes.public NotificationConfig getNotificationConfig()
Configurations for sending notifications about command status changes.
public Command withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
notificationConfig
- Configurations for sending notifications about command status changes.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.