Class CfnFleetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.deadline.CfnFleetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetMixinProps>
- Enclosing interface:
CfnFleetMixinProps
@Stability(Stable)
public static final class CfnFleetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetMixinProps>
A builder for
CfnFleetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.configuration(CfnFleetPropsMixin.FleetConfigurationProperty configuration) Sets the value ofCfnFleetMixinProps.getConfiguration()configuration(IResolvable configuration) Sets the value ofCfnFleetMixinProps.getConfiguration()description(String description) Sets the value ofCfnFleetMixinProps.getDescription()displayName(String displayName) Sets the value ofCfnFleetMixinProps.getDisplayName()Sets the value ofCfnFleetMixinProps.getFarmId()hostConfiguration(CfnFleetPropsMixin.HostConfigurationProperty hostConfiguration) Sets the value ofCfnFleetMixinProps.getHostConfiguration()hostConfiguration(IResolvable hostConfiguration) Sets the value ofCfnFleetMixinProps.getHostConfiguration()maxWorkerCount(Number maxWorkerCount) Sets the value ofCfnFleetMixinProps.getMaxWorkerCount()minWorkerCount(Number minWorkerCount) Sets the value ofCfnFleetMixinProps.getMinWorkerCount()Sets the value ofCfnFleetMixinProps.getRoleArn()Sets the value ofCfnFleetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
Sets the value ofCfnFleetMixinProps.getConfiguration()- Parameters:
configuration- The configuration details for the fleet.- Returns:
this
-
configuration
@Stability(Stable) public CfnFleetMixinProps.Builder configuration(CfnFleetPropsMixin.FleetConfigurationProperty configuration) Sets the value ofCfnFleetMixinProps.getConfiguration()- Parameters:
configuration- The configuration details for the fleet.- Returns:
this
-
description
Sets the value ofCfnFleetMixinProps.getDescription()- Parameters:
description- A description that helps identify what the fleet is used for.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Returns:
this
-
displayName
Sets the value ofCfnFleetMixinProps.getDisplayName()- Parameters:
displayName- The display name of the fleet summary to update.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Returns:
this
-
farmId
Sets the value ofCfnFleetMixinProps.getFarmId()- Parameters:
farmId- The farm ID.- Returns:
this
-
hostConfiguration
@Stability(Stable) public CfnFleetMixinProps.Builder hostConfiguration(IResolvable hostConfiguration) Sets the value ofCfnFleetMixinProps.getHostConfiguration()- Parameters:
hostConfiguration- Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet. To remove a script from a fleet, use the UpdateFleet operation with thehostConfigurationscriptBodyparameter set to an empty string ("").- Returns:
this
-
hostConfiguration
@Stability(Stable) public CfnFleetMixinProps.Builder hostConfiguration(CfnFleetPropsMixin.HostConfigurationProperty hostConfiguration) Sets the value ofCfnFleetMixinProps.getHostConfiguration()- Parameters:
hostConfiguration- Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet. To remove a script from a fleet, use the UpdateFleet operation with thehostConfigurationscriptBodyparameter set to an empty string ("").- Returns:
this
-
maxWorkerCount
Sets the value ofCfnFleetMixinProps.getMaxWorkerCount()- Parameters:
maxWorkerCount- The maximum number of workers specified in the fleet.- Returns:
this
-
minWorkerCount
Sets the value ofCfnFleetMixinProps.getMinWorkerCount()- Parameters:
minWorkerCount- The minimum number of workers in the fleet.- Returns:
this
-
roleArn
Sets the value ofCfnFleetMixinProps.getRoleArn()- Parameters:
roleArn- The IAM role that workers in the fleet use when processing jobs.- Returns:
this
-
tags
Sets the value ofCfnFleetMixinProps.getTags()- Parameters:
tags- The tags to add to your fleet. Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetMixinProps>- Returns:
- a new instance of
CfnFleetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-