Class CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterAccountingDatabaseProperty>
- Enclosing interface:
CfnClusterPropsMixin.ClusterAccountingDatabaseProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterAccountingDatabaseProperty>
A builder for
CfnClusterPropsMixin.ClusterAccountingDatabaseProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getEndpoint()Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getName()Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getPort()Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
@Stability(Stable) public CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder endpoint(String endpoint) Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getEndpoint()- Parameters:
endpoint- Hostname or endpoint of the accounting database, such as an RDS endpoint.- Returns:
this
-
name
@Stability(Stable) public CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder name(String name) Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getName()- Parameters:
name- Name of the accounting database schema. Defaults to slurm_acct_db when omitted.- Returns:
this
-
port
@Stability(Stable) public CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder port(Number port) Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getPort()- Parameters:
port- TCP port of the accounting database. Defaults to 3306 when omitted.- Returns:
this
-
secretArn
@Stability(Stable) public CfnClusterPropsMixin.ClusterAccountingDatabaseProperty.Builder secretArn(String secretArn) Sets the value ofCfnClusterPropsMixin.ClusterAccountingDatabaseProperty.getSecretArn()- Parameters:
secretArn- ARN of the Secrets Manager secret holding the database credentials.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterAccountingDatabaseProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ClusterAccountingDatabaseProperty - Throws:
NullPointerException- if any required attribute was not provided
-