@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDefinition()
For responses, this returns true if the service returned a value for the Definition property.
|
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() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The self-service action name.
public final 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.ServiceActionDefinitionTypepublic final 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.ServiceActionDefinitionTypepublic final Map<ServiceActionDefinitionKey,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\"}].
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDefinition() method.
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 final boolean hasDefinition()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> definitionAsStrings()
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\"}].
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDefinition() method.
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 final String description()
The self-service action description.
public final String acceptLanguage()
The language code.
jp - Japanese
zh - Chinese
jp - Japanese
zh - Chinese
public final 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()
toBuilder in interface ToCopyableBuilder<CreateServiceActionRequest.Builder,CreateServiceActionRequest>toBuilder in class ServiceCatalogRequestpublic static CreateServiceActionRequest.Builder builder()
public static Class<? extends CreateServiceActionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.