Class CfnModelCard.UserContextProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.UserContextProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.UserContextProperty>
- Enclosing interface:
CfnModelCard.UserContextProperty
@Stability(Stable)
public static final class CfnModelCard.UserContextProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.UserContextProperty>
A builder for
CfnModelCard.UserContextProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnModelCard.UserContextProperty.getDomainId()
userProfileArn
(String userProfileArn) Sets the value ofCfnModelCard.UserContextProperty.getUserProfileArn()
userProfileName
(String userProfileName) Sets the value ofCfnModelCard.UserContextProperty.getUserProfileName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainId
Sets the value ofCfnModelCard.UserContextProperty.getDomainId()
- Parameters:
domainId
- The domain associated with the user.- Returns:
this
-
userProfileArn
@Stability(Stable) public CfnModelCard.UserContextProperty.Builder userProfileArn(String userProfileArn) Sets the value ofCfnModelCard.UserContextProperty.getUserProfileArn()
- Parameters:
userProfileArn
- The Amazon Resource Name (ARN) of the user's profile.- Returns:
this
-
userProfileName
@Stability(Stable) public CfnModelCard.UserContextProperty.Builder userProfileName(String userProfileName) Sets the value ofCfnModelCard.UserContextProperty.getUserProfileName()
- Parameters:
userProfileName
- The name of the user's profile.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.UserContextProperty>
- Returns:
- a new instance of
CfnModelCard.UserContextProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-