Interface CreateCommandRequest.Builder

  • Method Details

    • 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:
    • 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

      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

      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 the CommandPayload.Builder avoiding the need to create one manually via CommandPayload.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to payload(CommandPayload).

      Parameters:
      payload - a consumer that will call methods on CommandPayload.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • payloadTemplate

      CreateCommandRequest.Builder payloadTemplate(String payloadTemplate)

      The payload template for the dynamic command.

      This parameter is required for dynamic commands where the command execution placeholders are supplied either from mandatoryParameters or when StartCommandExecution is 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 mandatoryParameters or when StartCommandExecution is invoked.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • preprocessor

      Configuration that determines how payloadTemplate is processed to generate command execution payload.

      This parameter is required for dynamic commands, along with payloadTemplate, and mandatoryParameters.

      Parameters:
      preprocessor - Configuration that determines how payloadTemplate is processed to generate command execution payload.

      This parameter is required for dynamic commands, along with payloadTemplate, and mandatoryParameters.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • preprocessor

      Configuration that determines how payloadTemplate is processed to generate command execution payload.

      This parameter is required for dynamic commands, along with payloadTemplate, and mandatoryParameters.

      This is a convenience method that creates an instance of the CommandPreprocessor.Builder avoiding the need to create one manually via CommandPreprocessor.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to preprocessor(CommandPreprocessor).

      Parameters:
      preprocessor - a consumer that will call methods on CommandPreprocessor.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mandatoryParameters

      CreateCommandRequest.Builder mandatoryParameters(Collection<CommandParameter> mandatoryParameters)

      A list of parameters that are used by StartCommandExecution API for execution payload generation.

      Parameters:
      mandatoryParameters - A list of parameters that are used by StartCommandExecution API for execution payload generation.
      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 used by StartCommandExecution API for execution payload generation.

      Parameters:
      mandatoryParameters - A list of parameters that are used by StartCommandExecution API 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 StartCommandExecution API for execution payload generation.

      This is a convenience method that creates an instance of the CommandParameter.Builder avoiding the need to create one manually via CommandParameter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to mandatoryParameters(List<CommandParameter>).

      Parameters:
      mandatoryParameters - a consumer that will call methods on CommandParameter.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-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 supported when you use the AWS-IoT namespace.

      Parameters:
      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 supported when you use the AWS-IoT namespace.
      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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.