@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SsmAutomation extends Object implements Serializable, Cloneable, StructuredPojo
Details about the Systems Manager automation document that will be used as a runbook during an incident.
Constructor and Description |
---|
SsmAutomation() |
Modifier and Type | Method and Description |
---|---|
SsmAutomation |
addDynamicParametersEntry(String key,
DynamicSsmParameterValue value)
Add a single DynamicParameters entry
|
SsmAutomation |
addParametersEntry(String key,
List<String> value)
Add a single Parameters entry
|
SsmAutomation |
clearDynamicParametersEntries()
Removes all the entries added into DynamicParameters.
|
SsmAutomation |
clearParametersEntries()
Removes all the entries added into Parameters.
|
SsmAutomation |
clone() |
boolean |
equals(Object obj) |
String |
getDocumentName()
The automation document's name.
|
String |
getDocumentVersion()
The automation document's version to use when running.
|
Map<String,DynamicSsmParameterValue> |
getDynamicParameters()
The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.
|
Map<String,List<String>> |
getParameters()
The key-value pair parameters to use when running the automation document.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.
|
String |
getTargetAccount()
The account that the automation document will be run in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentName(String documentName)
The automation document's name.
|
void |
setDocumentVersion(String documentVersion)
The automation document's version to use when running.
|
void |
setDynamicParameters(Map<String,DynamicSsmParameterValue> dynamicParameters)
The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.
|
void |
setParameters(Map<String,List<String>> parameters)
The key-value pair parameters to use when running the automation document.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.
|
void |
setTargetAccount(String targetAccount)
The account that the automation document will be run in.
|
String |
toString()
Returns a string representation of this object.
|
SsmAutomation |
withDocumentName(String documentName)
The automation document's name.
|
SsmAutomation |
withDocumentVersion(String documentVersion)
The automation document's version to use when running.
|
SsmAutomation |
withDynamicParameters(Map<String,DynamicSsmParameterValue> dynamicParameters)
The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.
|
SsmAutomation |
withParameters(Map<String,List<String>> parameters)
The key-value pair parameters to use when running the automation document.
|
SsmAutomation |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.
|
SsmAutomation |
withTargetAccount(SsmTargetAccount targetAccount)
The account that the automation document will be run in.
|
SsmAutomation |
withTargetAccount(String targetAccount)
The account that the automation document will be run in.
|
public void setDocumentName(String documentName)
The automation document's name.
documentName
- The automation document's name.public String getDocumentName()
The automation document's name.
public SsmAutomation withDocumentName(String documentName)
The automation document's name.
documentName
- The automation document's name.public void setDocumentVersion(String documentVersion)
The automation document's version to use when running.
documentVersion
- The automation document's version to use when running.public String getDocumentVersion()
The automation document's version to use when running.
public SsmAutomation withDocumentVersion(String documentVersion)
The automation document's version to use when running.
documentVersion
- The automation document's version to use when running.public Map<String,DynamicSsmParameterValue> getDynamicParameters()
The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.
public void setDynamicParameters(Map<String,DynamicSsmParameterValue> dynamicParameters)
The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.
dynamicParameters
- The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation
runbook.public SsmAutomation withDynamicParameters(Map<String,DynamicSsmParameterValue> dynamicParameters)
The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.
dynamicParameters
- The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation
runbook.public SsmAutomation addDynamicParametersEntry(String key, DynamicSsmParameterValue value)
public SsmAutomation clearDynamicParametersEntries()
public Map<String,List<String>> getParameters()
The key-value pair parameters to use when running the automation document.
public void setParameters(Map<String,List<String>> parameters)
The key-value pair parameters to use when running the automation document.
parameters
- The key-value pair parameters to use when running the automation document.public SsmAutomation withParameters(Map<String,List<String>> parameters)
The key-value pair parameters to use when running the automation document.
parameters
- The key-value pair parameters to use when running the automation document.public SsmAutomation addParametersEntry(String key, List<String> value)
public SsmAutomation clearParametersEntries()
public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.
roleArn
- The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.public String getRoleArn()
The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.
public SsmAutomation withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.
roleArn
- The Amazon Resource Name (ARN) of the role that the automation document will assume when running commands.public void setTargetAccount(String targetAccount)
The account that the automation document will be run in. This can be in either the management account or an application account.
targetAccount
- The account that the automation document will be run in. This can be in either the management account or
an application account.SsmTargetAccount
public String getTargetAccount()
The account that the automation document will be run in. This can be in either the management account or an application account.
SsmTargetAccount
public SsmAutomation withTargetAccount(String targetAccount)
The account that the automation document will be run in. This can be in either the management account or an application account.
targetAccount
- The account that the automation document will be run in. This can be in either the management account or
an application account.SsmTargetAccount
public SsmAutomation withTargetAccount(SsmTargetAccount targetAccount)
The account that the automation document will be run in. This can be in either the management account or an application account.
targetAccount
- The account that the automation document will be run in. This can be in either the management account or
an application account.SsmTargetAccount
public String toString()
toString
in class Object
Object.toString()
public SsmAutomation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.