Interface CreateCommandRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateCommandRequest.Builder,,CreateCommandRequest> IotRequest.Builder,SdkBuilder<CreateCommandRequest.Builder,,CreateCommandRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateCommandRequest
-
Method Summary
Modifier and TypeMethodDescriptionA unique identifier for the command.description(String description) A short text decription of the command.displayName(String displayName) The user-friendly name in the console for the command.mandatoryParameters(Collection<CommandParameter> mandatoryParameters) A list of parameters that are used byStartCommandExecutionAPI for execution payload generation.mandatoryParameters(Consumer<CommandParameter.Builder>... mandatoryParameters) A list of parameters that are used byStartCommandExecutionAPI for execution payload generation.mandatoryParameters(CommandParameter... mandatoryParameters) A list of parameters that are used byStartCommandExecutionAPI for execution payload generation.The namespace of the command.namespace(CommandNamespace namespace) The namespace of the command.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateCommandRequest.Builderpayload(Consumer<CommandPayload.Builder> payload) The payload object for the static command.payload(CommandPayload payload) The payload object for the static command.payloadTemplate(String payloadTemplate) The payload template for the dynamic command.default CreateCommandRequest.Builderpreprocessor(Consumer<CommandPreprocessor.Builder> preprocessor) Configuration that determines howpayloadTemplateis processed to generate command execution payload.preprocessor(CommandPreprocessor preprocessor) Configuration that determines howpayloadTemplateis processed to generate command execution payload.The IAM role that you must provide when using theAWS-IoT-FleetWisenamespace.tags(Collection<Tag> tags) Name-value pairs that are used as metadata to manage a command.tags(Consumer<Tag.Builder>... tags) Name-value pairs that are used as metadata to manage a command.Name-value pairs that are used as metadata to manage a command.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
commandId
A unique identifier for the command. We recommend using UUID. Alpha-numeric characters, hyphens, and underscores are valid for use here.
- Parameters:
commandId- A unique identifier for the command. We recommend using UUID. Alpha-numeric characters, hyphens, and underscores are valid for use here.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace of the command. The MQTT reserved topics and validations will be used for command executions according to the namespace setting.
- Parameters:
namespace- The namespace of the command. The MQTT reserved topics and validations will be used for command executions according to the namespace setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespace
The namespace of the command. The MQTT reserved topics and validations will be used for command executions according to the namespace setting.
- Parameters:
namespace- The namespace of the command. The MQTT reserved topics and validations will be used for command executions according to the namespace setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
displayName
The user-friendly name in the console for the command. This name doesn't have to be unique. You can update the user-friendly name after you define it.
- Parameters:
displayName- The user-friendly name in the console for the command. This name doesn't have to be unique. You can update the user-friendly name after you define it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A short text decription of the command.
- Parameters:
description- A short text decription of the command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The payload object for the static command.
You can upload a static payload file from your local storage that contains the instructions for the device to process. The payload file can use any format. To make sure that the device correctly interprets the payload, we recommend you to specify the payload content type.
- Parameters:
payload- The payload object for the static command.You can upload a static payload file from your local storage that contains the instructions for the device to process. The payload file can use any format. To make sure that the device correctly interprets the payload, we recommend you to specify the payload content type.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The payload object for the static command.
You can upload a static payload file from your local storage that contains the instructions for the device to process. The payload file can use any format. To make sure that the device correctly interprets the payload, we recommend you to specify the payload content type.
This is a convenience method that creates an instance of theCommandPayload.Builderavoiding the need to create one manually viaCommandPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topayload(CommandPayload).- Parameters:
payload- a consumer that will call methods onCommandPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
payloadTemplate
The payload template for the dynamic command.
This parameter is required for dynamic commands where the command execution placeholders are supplied either from
mandatoryParametersor whenStartCommandExecutionis invoked.- Parameters:
payloadTemplate- The payload template for the dynamic command.This parameter is required for dynamic commands where the command execution placeholders are supplied either from
mandatoryParametersor whenStartCommandExecutionis invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preprocessor
Configuration that determines how
payloadTemplateis processed to generate command execution payload.This parameter is required for dynamic commands, along with
payloadTemplate, andmandatoryParameters.- Parameters:
preprocessor- Configuration that determines howpayloadTemplateis processed to generate command execution payload.This parameter is required for dynamic commands, along with
payloadTemplate, andmandatoryParameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preprocessor
default CreateCommandRequest.Builder preprocessor(Consumer<CommandPreprocessor.Builder> preprocessor) Configuration that determines how
payloadTemplateis processed to generate command execution payload. This is a convenience method that creates an instance of theThis parameter is required for dynamic commands, along with
payloadTemplate, andmandatoryParameters.CommandPreprocessor.Builderavoiding the need to create one manually viaCommandPreprocessor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreprocessor(CommandPreprocessor).- Parameters:
preprocessor- a consumer that will call methods onCommandPreprocessor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mandatoryParameters
A list of parameters that are used by
StartCommandExecutionAPI for execution payload generation.- Parameters:
mandatoryParameters- A list of parameters that are used byStartCommandExecutionAPI for execution payload generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mandatoryParameters
A list of parameters that are used by
StartCommandExecutionAPI for execution payload generation.- Parameters:
mandatoryParameters- A list of parameters that are used byStartCommandExecutionAPI for execution payload generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mandatoryParameters
CreateCommandRequest.Builder mandatoryParameters(Consumer<CommandParameter.Builder>... mandatoryParameters) A list of parameters that are used by
This is a convenience method that creates an instance of theStartCommandExecutionAPI for execution payload generation.CommandParameter.Builderavoiding the need to create one manually viaCommandParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomandatoryParameters(List<CommandParameter>).- Parameters:
mandatoryParameters- a consumer that will call methods onCommandParameter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The IAM role that you must provide when using the
AWS-IoT-FleetWisenamespace. The role grants IoT Device Management the permission to access IoT FleetWise resources for generating the payload for the command. This field is not supported when you use theAWS-IoTnamespace.- Parameters:
roleArn- The IAM role that you must provide when using theAWS-IoT-FleetWisenamespace. The role grants IoT Device Management the permission to access IoT FleetWise resources for generating the payload for the command. This field is not supported when you use theAWS-IoTnamespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Name-value pairs that are used as metadata to manage a command.
- Parameters:
tags- Name-value pairs that are used as metadata to manage a command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Name-value pairs that are used as metadata to manage a command.
- Parameters:
tags- Name-value pairs that are used as metadata to manage a command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Name-value pairs that are used as metadata to manage a command.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateCommandRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCommandRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-