Interface Cors.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Cors.Builder,Cors>, SdkBuilder<Cors.Builder,Cors>, SdkPojo
Enclosing class:
Cors

public static interface Cors.Builder extends SdkPojo, CopyableBuilder<Cors.Builder,Cors>
  • Method Details

    • allowCredentials

      Cors.Builder allowCredentials(Boolean allowCredentials)

      Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

      Parameters:
      allowCredentials - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowHeaders

      Cors.Builder allowHeaders(Collection<String> allowHeaders)

      Represents a collection of allowed headers. Supported only for HTTP APIs.

      Parameters:
      allowHeaders - Represents a collection of allowed headers. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowHeaders

      Cors.Builder allowHeaders(String... allowHeaders)

      Represents a collection of allowed headers. Supported only for HTTP APIs.

      Parameters:
      allowHeaders - Represents a collection of allowed headers. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowMethods

      Cors.Builder allowMethods(Collection<String> allowMethods)

      Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

      Parameters:
      allowMethods - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowMethods

      Cors.Builder allowMethods(String... allowMethods)

      Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

      Parameters:
      allowMethods - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowOrigins

      Cors.Builder allowOrigins(Collection<String> allowOrigins)

      Represents a collection of allowed origins. Supported only for HTTP APIs.

      Parameters:
      allowOrigins - Represents a collection of allowed origins. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowOrigins

      Cors.Builder allowOrigins(String... allowOrigins)

      Represents a collection of allowed origins. Supported only for HTTP APIs.

      Parameters:
      allowOrigins - Represents a collection of allowed origins. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exposeHeaders

      Cors.Builder exposeHeaders(Collection<String> exposeHeaders)

      Represents a collection of exposed headers. Supported only for HTTP APIs.

      Parameters:
      exposeHeaders - Represents a collection of exposed headers. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exposeHeaders

      Cors.Builder exposeHeaders(String... exposeHeaders)

      Represents a collection of exposed headers. Supported only for HTTP APIs.

      Parameters:
      exposeHeaders - Represents a collection of exposed headers. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxAge

      Cors.Builder maxAge(Integer maxAge)

      The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.

      Parameters:
      maxAge - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.