Class CfnWorkerProps.Builder
java.lang.Object
software.amazon.awscdk.services.deadline.CfnWorkerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkerProps>
- Enclosing interface:
CfnWorkerProps
@Stability(Stable)
public static final class CfnWorkerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkerProps>
A builder for
CfnWorkerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnWorkerProps.getFarmId()Sets the value ofCfnWorkerProps.getFleetId()hostProperties(IResolvable hostProperties) Sets the value ofCfnWorkerProps.getHostProperties()hostProperties(CfnWorker.HostPropertiesRequestProperty hostProperties) Sets the value ofCfnWorkerProps.getHostProperties()tags(List<? extends CfnWorker.TagsItemsProperty> tags) Sets the value ofCfnWorkerProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
farmId
Sets the value ofCfnWorkerProps.getFarmId()- Parameters:
farmId- The farm ID. This parameter is required.- Returns:
this
-
fleetId
Sets the value ofCfnWorkerProps.getFleetId()- Parameters:
fleetId- The fleet ID. This parameter is required.- Returns:
this
-
hostProperties
Sets the value ofCfnWorkerProps.getHostProperties()- Parameters:
hostProperties- The host property details.- Returns:
this
-
hostProperties
@Stability(Stable) public CfnWorkerProps.Builder hostProperties(CfnWorker.HostPropertiesRequestProperty hostProperties) Sets the value ofCfnWorkerProps.getHostProperties()- Parameters:
hostProperties- The host property details.- Returns:
this
-
tags
@Stability(Stable) public CfnWorkerProps.Builder tags(List<? extends CfnWorker.TagsItemsProperty> tags) Sets the value ofCfnWorkerProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkerProps>- Returns:
- a new instance of
CfnWorkerProps - Throws:
NullPointerException- if any required attribute was not provided
-