Class HttpDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.HttpDataSourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpDataSourceProps>
- Enclosing interface:
HttpDataSourceProps
@Stability(Stable)
public static final class HttpDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpDataSourceProps>
A builder for
HttpDataSourceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapi
(IGraphqlApi api) Sets the value ofBaseDataSourceProps.getApi()
authorizationConfig
(AwsIamConfig authorizationConfig) Sets the value ofHttpDataSourceProps.getAuthorizationConfig()
build()
Builds the configured instance.description
(String description) Sets the value ofBaseDataSourceProps.getDescription()
Sets the value ofHttpDataSourceProps.getEndpoint()
Sets the value ofBaseDataSourceProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
Sets the value ofHttpDataSourceProps.getEndpoint()
- Parameters:
endpoint
- The http endpoint. This parameter is required.- Returns:
this
-
authorizationConfig
@Stability(Stable) public HttpDataSourceProps.Builder authorizationConfig(AwsIamConfig authorizationConfig) Sets the value ofHttpDataSourceProps.getAuthorizationConfig()
- Parameters:
authorizationConfig
- The authorization config in case the HTTP endpoint requires authorization.- Returns:
this
-
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<HttpDataSourceProps>
- Returns:
- a new instance of
HttpDataSourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-