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