Interface CustomResponseBody.Builder

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

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

    • contentType

      CustomResponseBody.Builder contentType(String contentType)

      The type of content in the payload that you are defining in the Content string.

      Parameters:
      contentType - The type of content in the payload that you are defining in the Content string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentType

      The type of content in the payload that you are defining in the Content string.

      Parameters:
      contentType - The type of content in the payload that you are defining in the Content string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • content

      The payload of the custom response.

      You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

      Parameters:
      content - The payload of the custom response.

      You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.