Class CfnProjectMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devicefarm.CfnProjectMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProjectMixinProps>
- Enclosing interface:
CfnProjectMixinProps
@Stability(Stable)
public static final class CfnProjectMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProjectMixinProps>
A builder for
CfnProjectMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultJobTimeoutMinutes(Number defaultJobTimeoutMinutes) Sets the value ofCfnProjectMixinProps.getDefaultJobTimeoutMinutes()environmentVariables(List<? extends Object> environmentVariables) Sets the value ofCfnProjectMixinProps.getEnvironmentVariables()environmentVariables(IResolvable environmentVariables) Sets the value ofCfnProjectMixinProps.getEnvironmentVariables()executionRoleArn(String executionRoleArn) Sets the value ofCfnProjectMixinProps.getExecutionRoleArn()Sets the value ofCfnProjectMixinProps.getName()Sets the value ofCfnProjectMixinProps.getTags()vpcConfig(CfnProjectPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnProjectMixinProps.getVpcConfig()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnProjectMixinProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultJobTimeoutMinutes
@Stability(Stable) public CfnProjectMixinProps.Builder defaultJobTimeoutMinutes(Number defaultJobTimeoutMinutes) Sets the value ofCfnProjectMixinProps.getDefaultJobTimeoutMinutes()- Parameters:
defaultJobTimeoutMinutes- Sets the execution timeout value (in minutes) for a project. All test runs in this project use the specified execution timeout value unless overridden when scheduling a run.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnProjectMixinProps.Builder environmentVariables(IResolvable environmentVariables) Sets the value ofCfnProjectMixinProps.getEnvironmentVariables()- Parameters:
environmentVariables- the value to be set.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnProjectMixinProps.Builder environmentVariables(List<? extends Object> environmentVariables) Sets the value ofCfnProjectMixinProps.getEnvironmentVariables()- Parameters:
environmentVariables- the value to be set.- Returns:
this
-
executionRoleArn
Sets the value ofCfnProjectMixinProps.getExecutionRoleArn()- Parameters:
executionRoleArn- the value to be set.- Returns:
this
-
name
Sets the value ofCfnProjectMixinProps.getName()- Parameters:
name- The project's name.- Returns:
this
-
tags
Sets the value ofCfnProjectMixinProps.getTags()- Parameters:
tags- The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters. Tag values can have a maximum length of 256 characters.- Returns:
this
-
vpcConfig
Sets the value ofCfnProjectMixinProps.getVpcConfig()- Parameters:
vpcConfig- The VPC security groups and subnets that are attached to a project.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnProjectMixinProps.Builder vpcConfig(CfnProjectPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnProjectMixinProps.getVpcConfig()- Parameters:
vpcConfig- The VPC security groups and subnets that are attached to a project.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProjectMixinProps>- Returns:
- a new instance of
CfnProjectMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-