Class CfnSession.SessionCommandProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnSession.SessionCommandProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSession.SessionCommandProperty>
- Enclosing interface:
CfnSession.SessionCommandProperty
@Stability(Stable)
public static final class CfnSession.SessionCommandProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSession.SessionCommandProperty>
A builder for
CfnSession.SessionCommandProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSession.SessionCommandProperty.getName()pythonVersion(String pythonVersion) Sets the value ofCfnSession.SessionCommandProperty.getPythonVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSession.SessionCommandProperty.getName()- Parameters:
name- Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.- Returns:
this
-
pythonVersion
@Stability(Stable) public CfnSession.SessionCommandProperty.Builder pythonVersion(String pythonVersion) Sets the value ofCfnSession.SessionCommandProperty.getPythonVersion()- Parameters:
pythonVersion- Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSession.SessionCommandProperty>- Returns:
- a new instance of
CfnSession.SessionCommandProperty - Throws:
NullPointerException- if any required attribute was not provided
-