Class BaseDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.BaseDataSourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseDataSourceProps>
- Enclosing interface:
BaseDataSourceProps
@Stability(Stable)
public static final class BaseDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseDataSourceProps>
A builder for
BaseDataSourceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapi
(IGraphqlApi api) Sets the value ofBaseDataSourceProps.getApi()
build()
Builds the configured instance.description
(String description) Sets the value ofBaseDataSourceProps.getDescription()
Sets the value ofBaseDataSourceProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofBaseDataSourceProps.getApi()
- Parameters:
api
- The API to attach this data source to. This parameter is required.- Returns:
this
-
description
Sets the value ofBaseDataSourceProps.getDescription()
- Parameters:
description
- the description of the data source.- Returns:
this
-
name
Sets the value ofBaseDataSourceProps.getName()
- Parameters:
name
- The name of the data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BaseDataSourceProps>
- Returns:
- a new instance of
BaseDataSourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-