Interface CreateTaskRequest.Builder

    • Method Detail

      • clientToken

        CreateTaskRequest.Builder clientToken​(String clientToken)

        A token ensuring that the action is called only once with the specified details.

        Parameters:
        clientToken - A token ensuring that the action is called only once with the specified details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • command

        CreateTaskRequest.Builder command​(Command command)

        The task to be performed. Only one task is executed on a device at a time.

        Parameters:
        command - The task to be performed. Only one task is executed on a device at a time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateTaskRequest.Builder description​(String description)

        A description of the task and its targets.

        Parameters:
        description - A description of the task and its targets.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateTaskRequest.Builder tags​(Map<String,​String> tags)

        Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.

        Parameters:
        tags - Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        CreateTaskRequest.Builder targets​(Collection<String> targets)

        A list of managed device IDs.

        Parameters:
        targets - A list of managed device IDs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targets

        CreateTaskRequest.Builder targets​(String... targets)

        A list of managed device IDs.

        Parameters:
        targets - A list of managed device IDs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.