Interface CreateCommandRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateCommandRequest.Builder,CreateCommandRequest>
,IotRequest.Builder
,SdkBuilder<CreateCommandRequest.Builder,CreateCommandRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateCommandRequest
public static interface CreateCommandRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateCommandRequest.Builder,CreateCommandRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateCommandRequest.Builder
commandId(String commandId)
A unique identifier for the command.CreateCommandRequest.Builder
description(String description)
A short text decription of the command.CreateCommandRequest.Builder
displayName(String displayName)
The user-friendly name in the console for the command.CreateCommandRequest.Builder
mandatoryParameters(Collection<CommandParameter> mandatoryParameters)
A list of parameters that are required by theStartCommandExecution
API.CreateCommandRequest.Builder
mandatoryParameters(Consumer<CommandParameter.Builder>... mandatoryParameters)
A list of parameters that are required by theStartCommandExecution
API.CreateCommandRequest.Builder
mandatoryParameters(CommandParameter... mandatoryParameters)
A list of parameters that are required by theStartCommandExecution
API.CreateCommandRequest.Builder
namespace(String namespace)
The namespace of the command.CreateCommandRequest.Builder
namespace(CommandNamespace namespace)
The namespace of the command.CreateCommandRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateCommandRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
default CreateCommandRequest.Builder
payload(Consumer<CommandPayload.Builder> payload)
The payload object for the command.CreateCommandRequest.Builder
payload(CommandPayload payload)
The payload object for the command.CreateCommandRequest.Builder
roleArn(String roleArn)
The IAM role that you must provide when using theAWS-IoT-FleetWise
namespace.CreateCommandRequest.Builder
tags(Collection<Tag> tags)
Name-value pairs that are used as metadata to manage a command.CreateCommandRequest.Builder
tags(Consumer<Tag.Builder>... tags)
Name-value pairs that are used as metadata to manage a command.CreateCommandRequest.Builder
tags(Tag... tags)
Name-value pairs that are used as metadata to manage a command.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
commandId
CreateCommandRequest.Builder commandId(String 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
CreateCommandRequest.Builder namespace(String 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:
CommandNamespace
,CommandNamespace
-
namespace
CreateCommandRequest.Builder namespace(CommandNamespace 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:
CommandNamespace
,CommandNamespace
-
displayName
CreateCommandRequest.Builder displayName(String 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
CreateCommandRequest.Builder description(String 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
CreateCommandRequest.Builder payload(CommandPayload payload)
The payload object for the command. You must specify this information when using the
AWS-IoT
namespace.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 command. You must specify this information when using theAWS-IoT
namespace.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
default CreateCommandRequest.Builder payload(Consumer<CommandPayload.Builder> payload)
The payload object for the command. You must specify this information when using the
AWS-IoT
namespace.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.Builder
avoiding the need to create one manually viaCommandPayload.builder()
.When the
Consumer
completes,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:
payload(CommandPayload)
-
mandatoryParameters
CreateCommandRequest.Builder mandatoryParameters(Collection<CommandParameter> mandatoryParameters)
A list of parameters that are required by the
StartCommandExecution
API. These parameters need to be specified only when using theAWS-IoT-FleetWise
namespace. You can either specify them here or when running the command using theStartCommandExecution
API.- Parameters:
mandatoryParameters
- A list of parameters that are required by theStartCommandExecution
API. These parameters need to be specified only when using theAWS-IoT-FleetWise
namespace. You can either specify them here or when running the command using theStartCommandExecution
API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mandatoryParameters
CreateCommandRequest.Builder mandatoryParameters(CommandParameter... mandatoryParameters)
A list of parameters that are required by the
StartCommandExecution
API. These parameters need to be specified only when using theAWS-IoT-FleetWise
namespace. You can either specify them here or when running the command using theStartCommandExecution
API.- Parameters:
mandatoryParameters
- A list of parameters that are required by theStartCommandExecution
API. These parameters need to be specified only when using theAWS-IoT-FleetWise
namespace. You can either specify them here or when running the command using theStartCommandExecution
API.- 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 required by the
This is a convenience method that creates an instance of theStartCommandExecution
API. These parameters need to be specified only when using theAWS-IoT-FleetWise
namespace. You can either specify them here or when running the command using theStartCommandExecution
API.CommandParameter.Builder
avoiding the need to create one manually viaCommandParameter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#mandatoryParameters(List
.) - 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:
#mandatoryParameters(java.util.Collection
)
-
roleArn
CreateCommandRequest.Builder roleArn(String roleArn)
The IAM role that you must provide when using the
AWS-IoT-FleetWise
namespace. The role grants IoT Device Management the permission to access IoT FleetWise resources for generating the payload for the command. This field is not required when you use theAWS-IoT
namespace.- Parameters:
roleArn
- The IAM role that you must provide when using theAWS-IoT-FleetWise
namespace. The role grants IoT Device Management the permission to access IoT FleetWise resources for generating the payload for the command. This field is not required when you use theAWS-IoT
namespace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateCommandRequest.Builder tags(Collection<Tag> 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
CreateCommandRequest.Builder tags(Tag... 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
CreateCommandRequest.Builder tags(Consumer<Tag.Builder>... tags)
Name-value pairs that are used as metadata to manage a command.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
overrideConfiguration
CreateCommandRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateCommandRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-