Interface DaemonTaskDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DaemonTaskDefinition.Builder,,DaemonTaskDefinition> SdkBuilder<DaemonTaskDefinition.Builder,,DaemonTaskDefinition> SdkPojo
- Enclosing class:
DaemonTaskDefinition
-
Method Summary
Modifier and TypeMethodDescriptioncontainerDefinitions(Collection<DaemonContainerDefinition> containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.containerDefinitions(Consumer<DaemonContainerDefinition.Builder>... containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.containerDefinitions(DaemonContainerDefinition... containerDefinitions) A list of container definitions in JSON format that describe the containers that make up the daemon task.The number of CPU units used by the daemon task.daemonTaskDefinitionArn(String daemonTaskDefinitionArn) The full Amazon Resource Name (ARN) of the daemon task definition.deleteRequestedAt(Instant deleteRequestedAt) The Unix timestamp for the time when the daemon task definition delete was requested.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.The name of a family that this daemon task definition is registered to.The IPC namespace mode for the daemon.ipcMode(DaemonIpcMode ipcMode) The IPC namespace mode for the daemon.The amount of memory (in MiB) used by the daemon task.The PID namespace mode for the daemon.pidMode(DaemonPidMode pidMode) The PID namespace mode for the daemon.registeredAt(Instant registeredAt) The Unix timestamp for the time when the daemon task definition was registered.registeredBy(String registeredBy) The principal that registered the daemon task definition.The revision of the daemon task in a particular family.The status of the daemon task definition.status(DaemonTaskDefinitionStatus status) The status of the daemon task definition.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.volumes(Collection<DaemonVolume> volumes) The list of data volume definitions for the daemon task.volumes(Consumer<DaemonVolume.Builder>... volumes) The list of data volume definitions for the daemon task.volumes(DaemonVolume... volumes) The list of data volume definitions for the daemon task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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 is1. 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
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
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 theDaemonContainerDefinition.Builderavoiding the need to create one manually viaDaemonContainerDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerDefinitions(List<DaemonContainerDefinition>).- Parameters:
containerDefinitions- a consumer that will call methods onDaemonContainerDefinition.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 theDaemonVolume.Builderavoiding the need to create one manually viaDaemonVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovolumes(List<DaemonVolume>).- Parameters:
volumes- a consumer that will call methods onDaemonVolume.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, andDELETED.- Parameters:
status- The status of the daemon task definition. The valid values areACTIVE,DELETE_IN_PROGRESS, andDELETED.- 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, andDELETED.- Parameters:
status- The status of the daemon task definition. The valid values areACTIVE,DELETE_IN_PROGRESS, andDELETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-
pidMode
The PID namespace mode for the daemon. The valid values are
noneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".- Parameters:
pidMode- The PID namespace mode for the daemon. The valid values arenoneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pidMode
The PID namespace mode for the daemon. The valid values are
noneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".- Parameters:
pidMode- The PID namespace mode for the daemon. The valid values arenoneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipcMode
The IPC namespace mode for the daemon. The valid values are
noneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".- Parameters:
ipcMode- The IPC namespace mode for the daemon. The valid values arenoneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipcMode
The IPC namespace mode for the daemon. The valid values are
noneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".- Parameters:
ipcMode- The IPC namespace mode for the daemon. The valid values arenoneandshared. The default isnone.If
noneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-