/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The response body to use in a custom response to a web request. This is
* referenced by key from CustomResponse
* CustomResponseBodyKey
.See Also:
AWS
* API Reference
The type of content in the payload that you are defining in the
* Content
string.
The type of content in the payload that you are defining in the
* Content
string.
The type of content in the payload that you are defining in the
* Content
string.
The type of content in the payload that you are defining in the
* Content
string.
The type of content in the payload that you are defining in the
* Content
string.
The type of content in the payload that you are defining in the
* Content
string.
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.
*/ inline const Aws::String& GetContent() const{ return m_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.
*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *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.
*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *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.
*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *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.
*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *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.
*/ inline CustomResponseBody& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *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.
*/ inline CustomResponseBody& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *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.
*/ inline CustomResponseBody& WithContent(const char* value) { SetContent(value); return *this;} private: ResponseContentType m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws