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 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

      HttpDataSourceConfig.Builder authorizationConfig(AuthorizationConfig 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 the AuthorizationConfig.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).

      Parameters:
      authorizationConfig - a consumer that will call methods on AuthorizationConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: