@Generated(value="software.amazon.awssdk:codegen") public final class CreateServiceActionRequest extends ServiceCatalogRequest implements ToCopyableBuilder<CreateServiceActionRequest.Builder,CreateServiceActionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateServiceActionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
acceptLanguage()
The language code.
|
static CreateServiceActionRequest.Builder |
builder() |
Map<ServiceActionDefinitionKey,String> |
definition()
The self-service action definition.
|
Map<String,String> |
definitionAsStrings()
The self-service action definition.
|
ServiceActionDefinitionType |
definitionType()
The service action definition type.
|
String |
definitionTypeAsString()
The service action definition type.
|
String |
description()
The self-service action description.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
idempotencyToken()
A unique identifier that you provide to ensure idempotency.
|
String |
name()
The self-service action name.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateServiceActionRequest.Builder> |
serializableBuilderClass() |
CreateServiceActionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String name()
The self-service action name.
public ServiceActionDefinitionType definitionType()
The service action definition type. For example, SSM_AUTOMATION
.
If the service returns an enum value that is not available in the current SDK version, definitionType
will return ServiceActionDefinitionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from definitionTypeAsString()
.
SSM_AUTOMATION
.ServiceActionDefinitionType
public String definitionTypeAsString()
The service action definition type. For example, SSM_AUTOMATION
.
If the service returns an enum value that is not available in the current SDK version, definitionType
will return ServiceActionDefinitionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from definitionTypeAsString()
.
SSM_AUTOMATION
.ServiceActionDefinitionType
public Map<ServiceActionDefinitionKey,String> definition()
The self-service action definition. Can be one of the following:
The name of the AWS Systems Manager Document. For example, AWS-RestartEC2Instance
.
The AWS 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\"}]
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
The name of the AWS Systems Manager Document. For example, AWS-RestartEC2Instance
.
The AWS 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\"}]
.
public Map<String,String> definitionAsStrings()
The self-service action definition. Can be one of the following:
The name of the AWS Systems Manager Document. For example, AWS-RestartEC2Instance
.
The AWS 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\"}]
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
The name of the AWS Systems Manager Document. For example, AWS-RestartEC2Instance
.
The AWS 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\"}]
.
public String description()
The self-service action description.
public String acceptLanguage()
The language code.
en
- English (default)
jp
- Japanese
zh
- Chinese
en
- English (default)
jp
- Japanese
zh
- Chinese
public 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.
public CreateServiceActionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateServiceActionRequest.Builder,CreateServiceActionRequest>
toBuilder
in class ServiceCatalogRequest
public static CreateServiceActionRequest.Builder builder()
public static Class<? extends CreateServiceActionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.