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