public static final class HttpDataSourceProps.Builder
extends java.lang.Object
HttpDataSourceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpDataSourceProps.Builder |
api(IGraphqlApi api)
Sets the value of
BaseDataSourceProps.getApi() |
HttpDataSourceProps.Builder |
authorizationConfig(AwsIamConfig authorizationConfig)
Sets the value of
HttpDataSourceProps.getAuthorizationConfig() |
HttpDataSourceProps |
build()
Builds the configured instance.
|
HttpDataSourceProps.Builder |
description(java.lang.String description)
Sets the value of
BaseDataSourceProps.getDescription() |
HttpDataSourceProps.Builder |
endpoint(java.lang.String endpoint)
Sets the value of
HttpDataSourceProps.getEndpoint() |
HttpDataSourceProps.Builder |
name(java.lang.String name)
Sets the value of
BaseDataSourceProps.getName() |
public HttpDataSourceProps.Builder endpoint(java.lang.String endpoint)
HttpDataSourceProps.getEndpoint()
endpoint
- The http endpoint. This parameter is required.this
public HttpDataSourceProps.Builder authorizationConfig(AwsIamConfig authorizationConfig)
HttpDataSourceProps.getAuthorizationConfig()
authorizationConfig
- The authorization config in case the HTTP endpoint requires authorization.this
public HttpDataSourceProps.Builder api(IGraphqlApi api)
BaseDataSourceProps.getApi()
api
- The API to attach this data source to. This parameter is required.this
public HttpDataSourceProps.Builder description(java.lang.String description)
BaseDataSourceProps.getDescription()
description
- the description of the data source.this
public HttpDataSourceProps.Builder name(java.lang.String name)
BaseDataSourceProps.getName()
name
- The name of the data source.this
public HttpDataSourceProps build()
HttpDataSourceProps
java.lang.NullPointerException
- if any required attribute was not provided