Class CfnContextMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnContextMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContextMixinProps>
- Enclosing interface:
CfnContextMixinProps
@Stability(Stable)
public static final class CfnContextMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContextMixinProps>
A builder for
CfnContextMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contextName(String contextName) Sets the value ofCfnContextMixinProps.getContextName()contextType(String contextType) Sets the value ofCfnContextMixinProps.getContextType()description(String description) Sets the value ofCfnContextMixinProps.getDescription()properties(Map<String, String> properties) Sets the value ofCfnContextMixinProps.getProperties()properties(IResolvable properties) Sets the value ofCfnContextMixinProps.getProperties()Sets the value ofCfnContextMixinProps.getSource()source(IResolvable source) Sets the value ofCfnContextMixinProps.getSource()tags(List<? extends CfnContextPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnContextMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contextName
Sets the value ofCfnContextMixinProps.getContextName()- Parameters:
contextName- The name of the context. Must be unique to your account in an AWS Region.- Returns:
this
-
contextType
Sets the value ofCfnContextMixinProps.getContextType()- Parameters:
contextType- The context type.- Returns:
this
-
description
Sets the value ofCfnContextMixinProps.getDescription()- Parameters:
description- The description of the context.- Returns:
this
-
properties
Sets the value ofCfnContextMixinProps.getProperties()- Parameters:
properties- A list of properties to add to the context.- Returns:
this
-
properties
Sets the value ofCfnContextMixinProps.getProperties()- Parameters:
properties- A list of properties to add to the context.- Returns:
this
-
source
Sets the value ofCfnContextMixinProps.getSource()- Parameters:
source- The source type, ID, and URI.- Returns:
this
-
source
@Stability(Stable) public CfnContextMixinProps.Builder source(CfnContextPropsMixin.SourceProperty source) Sets the value ofCfnContextMixinProps.getSource()- Parameters:
source- The source type, ID, and URI.- Returns:
this
-
tags
@Stability(Stable) public CfnContextMixinProps.Builder tags(List<? extends CfnContextPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnContextMixinProps.getTags()- Parameters:
tags- A list of tags to apply to the context.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContextMixinProps>- Returns:
- a new instance of
CfnContextMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-