Class CfnDaemonTaskDefinitionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnDaemonTaskDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinitionMixinProps>
- Enclosing interface:
CfnDaemonTaskDefinitionMixinProps
@Stability(Stable)
public static final class CfnDaemonTaskDefinitionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinitionMixinProps>
A builder for
CfnDaemonTaskDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerDefinitions(List<? extends Object> containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getContainerDefinitions()containerDefinitions(IResolvable containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getContainerDefinitions()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getCpu()executionRoleArn(String executionRoleArn) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getExecutionRoleArn()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getFamily()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getMemory()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTags()taskRoleArn(String taskRoleArn) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTaskRoleArn()Sets the value ofCfnDaemonTaskDefinitionMixinProps.getVolumes()volumes(IResolvable volumes) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getVolumes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder containerDefinitions(IResolvable containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getContainerDefinitions()- Parameters:
containerDefinitions- the value to be set.- Returns:
this
-
containerDefinitions
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder containerDefinitions(List<? extends Object> containerDefinitions) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getContainerDefinitions()- Parameters:
containerDefinitions- the value to be set.- Returns:
this
-
cpu
Sets the value ofCfnDaemonTaskDefinitionMixinProps.getCpu()- Parameters:
cpu- the value to be set.- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getExecutionRoleArn()- Parameters:
executionRoleArn- the value to be set.- Returns:
this
-
family
Sets the value ofCfnDaemonTaskDefinitionMixinProps.getFamily()- Parameters:
family- the value to be set.- Returns:
this
-
memory
Sets the value ofCfnDaemonTaskDefinitionMixinProps.getMemory()- Parameters:
memory- the value to be set.- Returns:
this
-
tags
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTags()- Parameters:
tags- the value to be set.- Returns:
this
-
taskRoleArn
Sets the value ofCfnDaemonTaskDefinitionMixinProps.getTaskRoleArn()- Parameters:
taskRoleArn- the value to be set.- Returns:
this
-
volumes
Sets the value ofCfnDaemonTaskDefinitionMixinProps.getVolumes()- Parameters:
volumes- the value to be set.- Returns:
this
-
volumes
@Stability(Stable) public CfnDaemonTaskDefinitionMixinProps.Builder volumes(List<? extends Object> volumes) Sets the value ofCfnDaemonTaskDefinitionMixinProps.getVolumes()- Parameters:
volumes- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinitionMixinProps>- Returns:
- a new instance of
CfnDaemonTaskDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-