AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
CustomResponseBody.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/ResponseContentType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
31 public:
32 AWS_WAFV2_API CustomResponseBody() = default;
35 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline ResponseContentType GetContentType() const { return m_contentType; }
43 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
45 m_contentTypeHasBeenSet = true;
46 m_contentType = value;
47 }
49 SetContentType(value);
50 return *this;
51 }
53
55
63 inline const Aws::String& GetContent() const { return m_content; }
64 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
65 template <typename ContentT = Aws::String>
66 void SetContent(ContentT&& value) {
67 m_contentHasBeenSet = true;
68 m_content = std::forward<ContentT>(value);
69 }
70 template <typename ContentT = Aws::String>
71 CustomResponseBody& WithContent(ContentT&& value) {
72 SetContent(std::forward<ContentT>(value));
73 return *this;
74 }
76 private:
78
79 Aws::String m_content;
80 bool m_contentTypeHasBeenSet = false;
81 bool m_contentHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace WAFV2
86} // namespace Aws
ResponseContentType GetContentType() const
const Aws::String & GetContent() const
CustomResponseBody & WithContent(ContentT &&value)
CustomResponseBody & WithContentType(ResponseContentType value)
AWS_WAFV2_API CustomResponseBody(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API CustomResponseBody & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API CustomResponseBody()=default
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentType(ResponseContentType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue