Class CfnAppProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnAppProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppProps>
- Enclosing interface:
CfnAppProps
@Stability(Stable)
public static final class CfnAppProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppProps>
A builder for
CfnAppProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAppProps.getAppName()Sets the value ofCfnAppProps.getAppType()build()Builds the configured instance.Sets the value ofCfnAppProps.getDomainId()recoveryMode(Boolean recoveryMode) Sets the value ofCfnAppProps.getRecoveryMode()recoveryMode(IResolvable recoveryMode) Sets the value ofCfnAppProps.getRecoveryMode()resourceSpec(IResolvable resourceSpec) Sets the value ofCfnAppProps.getResourceSpec()resourceSpec(CfnApp.ResourceSpecProperty resourceSpec) Sets the value ofCfnAppProps.getResourceSpec()Sets the value ofCfnAppProps.getTags()userProfileName(String userProfileName) Sets the value ofCfnAppProps.getUserProfileName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appName
Sets the value ofCfnAppProps.getAppName()- Parameters:
appName- The name of the app. This parameter is required.- Returns:
this
-
appType
Sets the value ofCfnAppProps.getAppType()- Parameters:
appType- The type of app. This parameter is required.- Returns:
this
-
domainId
Sets the value ofCfnAppProps.getDomainId()- Parameters:
domainId- The domain ID. This parameter is required.- Returns:
this
-
userProfileName
Sets the value ofCfnAppProps.getUserProfileName()- Parameters:
userProfileName- The user profile name. This parameter is required.- Returns:
this
-
recoveryMode
Sets the value ofCfnAppProps.getRecoveryMode()- Parameters:
recoveryMode- Indicates whether the application is launched in recovery mode.- Returns:
this
-
recoveryMode
Sets the value ofCfnAppProps.getRecoveryMode()- Parameters:
recoveryMode- Indicates whether the application is launched in recovery mode.- Returns:
this
-
resourceSpec
Sets the value ofCfnAppProps.getResourceSpec()- Parameters:
resourceSpec- Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.- Returns:
this
-
resourceSpec
@Stability(Stable) public CfnAppProps.Builder resourceSpec(CfnApp.ResourceSpecProperty resourceSpec) Sets the value ofCfnAppProps.getResourceSpec()- Parameters:
resourceSpec- Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.- Returns:
this
-
tags
Sets the value ofCfnAppProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppProps>- Returns:
- a new instance of
CfnAppProps - Throws:
NullPointerException- if any required attribute was not provided
-