AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomResponseBody.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/ResponseContentType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_WAFV2_API CustomResponseBody() = default;
40 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline ResponseContentType GetContentType() const { return m_contentType; }
49 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
50 inline void SetContentType(ResponseContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
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) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
67 template<typename ContentT = Aws::String>
68 CustomResponseBody& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
70 private:
71
73 bool m_contentTypeHasBeenSet = false;
74
75 Aws::String m_content;
76 bool m_contentHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace WAFV2
81} // 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