Class HttpDataSourceOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.HttpDataSourceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpDataSourceOptions>
- Enclosing interface:
- HttpDataSourceOptions
@Stability(Experimental)
public static final class HttpDataSourceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<HttpDataSourceOptions>
A builder for
HttpDataSourceOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationConfig(AwsIamConfig authorizationConfig) Sets the value ofHttpDataSourceOptions.getAuthorizationConfig()build()Builds the configured instance.description(String description) Sets the value ofDataSourceOptions.getDescription()Sets the value ofDataSourceOptions.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationConfig
@Stability(Experimental) public HttpDataSourceOptions.Builder authorizationConfig(AwsIamConfig authorizationConfig) Sets the value ofHttpDataSourceOptions.getAuthorizationConfig()- Parameters:
authorizationConfig- The authorization config in case the HTTP endpoint requires authorization.- Returns:
this
-
description
Sets the value ofDataSourceOptions.getDescription()- Parameters:
description- The description of the data source.- 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<HttpDataSourceOptions>- Returns:
- a new instance of
HttpDataSourceOptions - Throws:
NullPointerException- if any required attribute was not provided
-