@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateServiceActionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateServiceActionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateServiceActionRequest |
addDefinitionEntry(String key,
String value)
Add a single Definition entry
|
CreateServiceActionRequest |
clearDefinitionEntries()
Removes all the entries added into Definition.
|
CreateServiceActionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAcceptLanguage()
The language code.
|
Map<String,String> |
getDefinition()
The self-service action definition.
|
String |
getDefinitionType()
The service action definition type.
|
String |
getDescription()
The self-service action description.
|
String |
getIdempotencyToken()
A unique identifier that you provide to ensure idempotency.
|
String |
getName()
The self-service action name.
|
int |
hashCode() |
void |
setAcceptLanguage(String acceptLanguage)
The language code.
|
void |
setDefinition(Map<String,String> definition)
The self-service action definition.
|
void |
setDefinitionType(String definitionType)
The service action definition type.
|
void |
setDescription(String description)
The self-service action description.
|
void |
setIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency.
|
void |
setName(String name)
The self-service action name.
|
String |
toString()
Returns a string representation of this object.
|
CreateServiceActionRequest |
withAcceptLanguage(String acceptLanguage)
The language code.
|
CreateServiceActionRequest |
withDefinition(Map<String,String> definition)
The self-service action definition.
|
CreateServiceActionRequest |
withDefinitionType(ServiceActionDefinitionType definitionType)
The service action definition type.
|
CreateServiceActionRequest |
withDefinitionType(String definitionType)
The service action definition type.
|
CreateServiceActionRequest |
withDescription(String description)
The self-service action description.
|
CreateServiceActionRequest |
withIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency.
|
CreateServiceActionRequest |
withName(String name)
The self-service action name.
|
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 void setName(String name)
The self-service action name.
name
- The self-service action name.public String getName()
The self-service action name.
public CreateServiceActionRequest withName(String name)
The self-service action name.
name
- The self-service action name.public void setDefinitionType(String definitionType)
The service action definition type. For example, SSM_AUTOMATION
.
definitionType
- The service action definition type. For example, SSM_AUTOMATION
.ServiceActionDefinitionType
public String getDefinitionType()
The service action definition type. For example, SSM_AUTOMATION
.
SSM_AUTOMATION
.ServiceActionDefinitionType
public CreateServiceActionRequest withDefinitionType(String definitionType)
The service action definition type. For example, SSM_AUTOMATION
.
definitionType
- The service action definition type. For example, SSM_AUTOMATION
.ServiceActionDefinitionType
public CreateServiceActionRequest withDefinitionType(ServiceActionDefinitionType definitionType)
The service action definition type. For example, SSM_AUTOMATION
.
definitionType
- The service action definition type. For example, SSM_AUTOMATION
.ServiceActionDefinitionType
public Map<String,String> getDefinition()
The self-service action definition. Can be one of the following:
The name of the Amazon Web Services Systems Manager document (SSM document). For example,
AWS-RestartEC2Instance
.
If you are using a shared SSM document, you must provide the ARN instead of the name.
The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"
The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example,
"AssumeRole": "arn:aws:iam::12345678910:role/ActionRole"
.
To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE"
.
The list of parameters in JSON format.
For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]
or
[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]
.
The name of the Amazon Web Services Systems Manager document (SSM document). For example,
AWS-RestartEC2Instance
.
If you are using a shared SSM document, you must provide the ARN instead of the name.
The Amazon Web Services Systems Manager automation document version. For example,
"Version": "1"
The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For
example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole"
.
To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE"
.
The list of parameters in JSON format.
For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]
or
[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]
.
public void setDefinition(Map<String,String> definition)
The self-service action definition. Can be one of the following:
The name of the Amazon Web Services Systems Manager document (SSM document). For example,
AWS-RestartEC2Instance
.
If you are using a shared SSM document, you must provide the ARN instead of the name.
The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"
The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example,
"AssumeRole": "arn:aws:iam::12345678910:role/ActionRole"
.
To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE"
.
The list of parameters in JSON format.
For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]
or
[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]
.
definition
- The self-service action definition. Can be one of the following:
The name of the Amazon Web Services Systems Manager document (SSM document). For example,
AWS-RestartEC2Instance
.
If you are using a shared SSM document, you must provide the ARN instead of the name.
The Amazon Web Services Systems Manager automation document version. For example,
"Version": "1"
The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For
example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole"
.
To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE"
.
The list of parameters in JSON format.
For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]
or
[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]
.
public CreateServiceActionRequest withDefinition(Map<String,String> definition)
The self-service action definition. Can be one of the following:
The name of the Amazon Web Services Systems Manager document (SSM document). For example,
AWS-RestartEC2Instance
.
If you are using a shared SSM document, you must provide the ARN instead of the name.
The Amazon Web Services Systems Manager automation document version. For example, "Version": "1"
The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example,
"AssumeRole": "arn:aws:iam::12345678910:role/ActionRole"
.
To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE"
.
The list of parameters in JSON format.
For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]
or
[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]
.
definition
- The self-service action definition. Can be one of the following:
The name of the Amazon Web Services Systems Manager document (SSM document). For example,
AWS-RestartEC2Instance
.
If you are using a shared SSM document, you must provide the ARN instead of the name.
The Amazon Web Services Systems Manager automation document version. For example,
"Version": "1"
The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For
example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole"
.
To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE"
.
The list of parameters in JSON format.
For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]
or
[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]
.
public CreateServiceActionRequest addDefinitionEntry(String key, String value)
public CreateServiceActionRequest clearDefinitionEntries()
public void setDescription(String description)
The self-service action description.
description
- The self-service action description.public String getDescription()
The self-service action description.
public CreateServiceActionRequest withDescription(String description)
The self-service action description.
description
- The self-service action description.public void setAcceptLanguage(String acceptLanguage)
The language code.
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
jp
- Japanese
zh
- Chinese
public String getAcceptLanguage()
The language code.
jp
- Japanese
zh
- Chinese
jp
- Japanese
zh
- Chinese
public CreateServiceActionRequest withAcceptLanguage(String acceptLanguage)
The language code.
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
jp
- Japanese
zh
- Chinese
public void setIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
idempotencyToken
- A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
idempotency token, the same response is returned for each repeated request.public String getIdempotencyToken()
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
public CreateServiceActionRequest withIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
idempotencyToken
- A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
idempotency token, the same response is returned for each repeated request.public String toString()
toString
in class Object
Object.toString()
public CreateServiceActionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()