Interface DaemonTaskDefinition.Builder

  • Method Details

    • daemonTaskDefinitionArn

      DaemonTaskDefinition.Builder daemonTaskDefinitionArn(String daemonTaskDefinitionArn)

      The full Amazon Resource Name (ARN) of the daemon task definition.

      Parameters:
      daemonTaskDefinitionArn - The full Amazon Resource Name (ARN) of the daemon task definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • family

      The name of a family that this daemon task definition is registered to.

      Parameters:
      family - The name of a family that this daemon task definition is registered to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revision

      The revision of the daemon task in a particular family. The revision is a version number of a daemon task definition in a family. When you register a daemon task definition for the first time, the revision is 1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.

      Parameters:
      revision - The revision of the daemon task in a particular family. The revision is a version number of a daemon task definition in a family. When you register a daemon task definition for the first time, the revision is 1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taskRoleArn

      DaemonTaskDefinition.Builder taskRoleArn(String taskRoleArn)

      The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.

      Parameters:
      taskRoleArn - The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionRoleArn

      DaemonTaskDefinition.Builder executionRoleArn(String executionRoleArn)

      The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.

      Parameters:
      executionRoleArn - The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerDefinitions

      DaemonTaskDefinition.Builder containerDefinitions(Collection<DaemonContainerDefinition> containerDefinitions)

      A list of container definitions in JSON format that describe the containers that make up the daemon task.

      Parameters:
      containerDefinitions - A list of container definitions in JSON format that describe the containers that make up the daemon task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerDefinitions

      DaemonTaskDefinition.Builder containerDefinitions(DaemonContainerDefinition... containerDefinitions)

      A list of container definitions in JSON format that describe the containers that make up the daemon task.

      Parameters:
      containerDefinitions - A list of container definitions in JSON format that describe the containers that make up the daemon task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • containerDefinitions

      DaemonTaskDefinition.Builder containerDefinitions(Consumer<DaemonContainerDefinition.Builder>... containerDefinitions)

      A list of container definitions in JSON format that describe the containers that make up the daemon task.

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

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

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

      The list of data volume definitions for the daemon task.

      Parameters:
      volumes - The list of data volume definitions for the daemon task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumes

      The list of data volume definitions for the daemon task.

      Parameters:
      volumes - The list of data volume definitions for the daemon task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • volumes

      The list of data volume definitions for the daemon task.

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

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

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

      The number of CPU units used by the daemon task.

      Parameters:
      cpu - The number of CPU units used by the daemon task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memory

      The amount of memory (in MiB) used by the daemon task.

      Parameters:
      memory - The amount of memory (in MiB) used by the daemon task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.

      Parameters:
      status - The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.

      Parameters:
      status - The status of the daemon task definition. The valid values are ACTIVE, DELETE_IN_PROGRESS, and DELETED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • registeredAt

      DaemonTaskDefinition.Builder registeredAt(Instant registeredAt)

      The Unix timestamp for the time when the daemon task definition was registered.

      Parameters:
      registeredAt - The Unix timestamp for the time when the daemon task definition was registered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deleteRequestedAt

      DaemonTaskDefinition.Builder deleteRequestedAt(Instant deleteRequestedAt)

      The Unix timestamp for the time when the daemon task definition delete was requested.

      Parameters:
      deleteRequestedAt - The Unix timestamp for the time when the daemon task definition delete was requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • registeredBy

      DaemonTaskDefinition.Builder registeredBy(String registeredBy)

      The principal that registered the daemon task definition.

      Parameters:
      registeredBy - The principal that registered the daemon task definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.