public static interface HttpDataSourceConfig.Builder extends SdkPojo, CopyableBuilder<HttpDataSourceConfig.Builder,HttpDataSourceConfig>
Modifier and Type | Method and Description |
---|---|
HttpDataSourceConfig.Builder |
authorizationConfig(AuthorizationConfig authorizationConfig)
The authorization config in case the HTTP endpoint requires authorization.
|
default HttpDataSourceConfig.Builder |
authorizationConfig(Consumer<AuthorizationConfig.Builder> authorizationConfig)
The authorization config in case the HTTP endpoint requires authorization.
|
HttpDataSourceConfig.Builder |
endpoint(String endpoint)
The HTTP URL endpoint.
|
copy
applyMutation, build
HttpDataSourceConfig.Builder endpoint(String endpoint)
The HTTP URL endpoint. You can either specify the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If the port is not specified, AWS AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.
endpoint
- The HTTP URL endpoint. You can either specify the domain name or IP, and port combination, and the URL
scheme must be HTTP or HTTPS. If the port is not specified, AWS AppSync uses the default port 80 for
the HTTP endpoint and port 443 for HTTPS endpoints.HttpDataSourceConfig.Builder authorizationConfig(AuthorizationConfig authorizationConfig)
The authorization config in case the HTTP endpoint requires authorization.
authorizationConfig
- The authorization config in case the HTTP endpoint requires authorization.default HttpDataSourceConfig.Builder authorizationConfig(Consumer<AuthorizationConfig.Builder> authorizationConfig)
The authorization config in case the HTTP endpoint requires authorization.
This is a convenience that creates an instance of theAuthorizationConfig.Builder
avoiding the need
to create one manually via AuthorizationConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to authorizationConfig(AuthorizationConfig)
.authorizationConfig
- a consumer that will call methods on AuthorizationConfig.Builder
authorizationConfig(AuthorizationConfig)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.