Interface HttpDataSourceConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HttpDataSourceConfig.Builder,
,HttpDataSourceConfig> SdkBuilder<HttpDataSourceConfig.Builder,
,HttpDataSourceConfig> SdkPojo
- Enclosing class:
HttpDataSourceConfig
public static interface HttpDataSourceConfig.Builder
extends SdkPojo, CopyableBuilder<HttpDataSourceConfig.Builder,HttpDataSourceConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpDataSourceConfig.Builder
authorizationConfig
(Consumer<AuthorizationConfig.Builder> authorizationConfig) The authorization configuration in case the HTTP endpoint requires authorization.authorizationConfig
(AuthorizationConfig authorizationConfig) The authorization configuration in case the HTTP endpoint requires authorization.The HTTP URL endpoint.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
endpoint
The HTTP URL endpoint. You can specify either the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.
- Parameters:
endpoint
- The HTTP URL endpoint. You can specify either the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationConfig
The authorization configuration in case the HTTP endpoint requires authorization.
- Parameters:
authorizationConfig
- The authorization configuration in case the HTTP endpoint requires authorization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationConfig
default HttpDataSourceConfig.Builder authorizationConfig(Consumer<AuthorizationConfig.Builder> authorizationConfig) The authorization configuration in case the HTTP endpoint requires authorization.
This is a convenience method that creates an instance of theAuthorizationConfig.Builder
avoiding the need to create one manually viaAuthorizationConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthorizationConfig(AuthorizationConfig)
.- Parameters:
authorizationConfig
- a consumer that will call methods onAuthorizationConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-