Class DataSourceOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.DataSourceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataSourceOptions>
- Enclosing interface:
DataSourceOptions
@Stability(Stable)
public static final class DataSourceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DataSourceOptions>
A builder for
DataSourceOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofDataSourceOptions.getDescription()metricsConfig(DataSourceMetricsConfig metricsConfig) Sets the value ofDataSourceOptions.getMetricsConfig()Sets the value ofDataSourceOptions.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofDataSourceOptions.getDescription()- Parameters:
description- The description of the data source.- Returns:
this
-
metricsConfig
@Stability(Stable) public DataSourceOptions.Builder metricsConfig(DataSourceMetricsConfig metricsConfig) Sets the value ofDataSourceOptions.getMetricsConfig()- Parameters:
metricsConfig- Whether to enable enhanced metrics of the data source Value will be ignored, ifenhancedMetricsConfig.dataSourceLevelMetricsBehavioron AppSync GraphqlApi construct is set toFULL_REQUEST_DATA_SOURCE_METRICS.- Returns:
this
-
name
Sets the value ofDataSourceOptions.getName()- Parameters:
name- The name of the data source, overrides the id given by cdk.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataSourceOptions>- Returns:
- a new instance of
DataSourceOptions - Throws:
NullPointerException- if any required attribute was not provided
-