Class CfnSessionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.glue.CfnSessionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSessionMixinProps>
- Enclosing interface:
CfnSessionMixinProps
@Stability(Stable)
public static final class CfnSessionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSessionMixinProps>
A builder for
CfnSessionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSessionMixinProps.getCommand()command(IResolvable command) Sets the value ofCfnSessionMixinProps.getCommand()connections(CfnSessionPropsMixin.ConnectionsListProperty connections) Sets the value ofCfnSessionMixinProps.getConnections()connections(IResolvable connections) Sets the value ofCfnSessionMixinProps.getConnections()defaultArguments(Map<String, String> defaultArguments) Sets the value ofCfnSessionMixinProps.getDefaultArguments()defaultArguments(IResolvable defaultArguments) Sets the value ofCfnSessionMixinProps.getDefaultArguments()description(String description) Sets the value ofCfnSessionMixinProps.getDescription()glueVersion(String glueVersion) Sets the value ofCfnSessionMixinProps.getGlueVersion()Sets the value ofCfnSessionMixinProps.getId()idleTimeout(Number idleTimeout) Sets the value ofCfnSessionMixinProps.getIdleTimeout()maxCapacity(Number maxCapacity) Sets the value ofCfnSessionMixinProps.getMaxCapacity()numberOfWorkers(Number numberOfWorkers) Sets the value ofCfnSessionMixinProps.getNumberOfWorkers()requestOrigin(String requestOrigin) Sets the value ofCfnSessionMixinProps.getRequestOrigin()Sets the value ofCfnSessionMixinProps.getRole()securityConfiguration(String securityConfiguration) Sets the value ofCfnSessionMixinProps.getSecurityConfiguration()Sets the value ofCfnSessionMixinProps.getTags()Sets the value ofCfnSessionMixinProps.getTimeout()workerType(String workerType) Sets the value ofCfnSessionMixinProps.getWorkerType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
Sets the value ofCfnSessionMixinProps.getCommand()- Parameters:
command- The SessionCommand that runs the job.- Returns:
this
-
command
@Stability(Stable) public CfnSessionMixinProps.Builder command(CfnSessionPropsMixin.SessionCommandProperty command) Sets the value ofCfnSessionMixinProps.getCommand()- Parameters:
command- The SessionCommand that runs the job.- Returns:
this
-
connections
Sets the value ofCfnSessionMixinProps.getConnections()- Parameters:
connections- Specifies the connections used by the session.- Returns:
this
-
connections
@Stability(Stable) public CfnSessionMixinProps.Builder connections(CfnSessionPropsMixin.ConnectionsListProperty connections) Sets the value ofCfnSessionMixinProps.getConnections()- Parameters:
connections- Specifies the connections used by the session.- Returns:
this
-
defaultArguments
@Stability(Stable) public CfnSessionMixinProps.Builder defaultArguments(IResolvable defaultArguments) Sets the value ofCfnSessionMixinProps.getDefaultArguments()- Parameters:
defaultArguments- A map array of key-value pairs. Max is 75 pairs.- Returns:
this
-
defaultArguments
@Stability(Stable) public CfnSessionMixinProps.Builder defaultArguments(Map<String, String> defaultArguments) Sets the value ofCfnSessionMixinProps.getDefaultArguments()- Parameters:
defaultArguments- A map array of key-value pairs. Max is 75 pairs.- Returns:
this
-
description
Sets the value ofCfnSessionMixinProps.getDescription()- Parameters:
description- The description of the session.- Returns:
this
-
glueVersion
Sets the value ofCfnSessionMixinProps.getGlueVersion()- Parameters:
glueVersion- The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.- Returns:
this
-
id
Sets the value ofCfnSessionMixinProps.getId()- Parameters:
id- The ID of the session.- Returns:
this
-
idleTimeout
Sets the value ofCfnSessionMixinProps.getIdleTimeout()- Parameters:
idleTimeout- The number of minutes when idle before session times out. Default is the value of Timeout.- Returns:
this
-
maxCapacity
Sets the value ofCfnSessionMixinProps.getMaxCapacity()- Parameters:
maxCapacity- The number of Glue data processing units (DPUs) that can be allocated when the job runs.- Returns:
this
-
numberOfWorkers
Sets the value ofCfnSessionMixinProps.getNumberOfWorkers()- Parameters:
numberOfWorkers- The number of workers of a defined WorkerType to use for the session.- Returns:
this
-
requestOrigin
Sets the value ofCfnSessionMixinProps.getRequestOrigin()- Parameters:
requestOrigin- The origin of the request.- Returns:
this
-
role
Sets the value ofCfnSessionMixinProps.getRole()- Parameters:
role- The IAM Role ARN.- Returns:
this
-
securityConfiguration
@Stability(Stable) public CfnSessionMixinProps.Builder securityConfiguration(String securityConfiguration) Sets the value ofCfnSessionMixinProps.getSecurityConfiguration()- Parameters:
securityConfiguration- The name of the SecurityConfiguration structure to be used with the session.- Returns:
this
-
tags
Sets the value ofCfnSessionMixinProps.getTags()- Parameters:
tags- The tags belonging to the session.- Returns:
this
-
timeout
Sets the value ofCfnSessionMixinProps.getTimeout()- Parameters:
timeout- The number of minutes before session times out.- Returns:
this
-
workerType
Sets the value ofCfnSessionMixinProps.getWorkerType()- Parameters:
workerType- The type of predefined worker that is allocated when a session runs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSessionMixinProps>- Returns:
- a new instance of
CfnSessionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-