AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const ResponseContentType& GetContentType() const{ return m_contentType; }
49 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
50 inline void SetContentType(const ResponseContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
51 inline void SetContentType(ResponseContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
52 inline CustomResponseBody& WithContentType(const ResponseContentType& value) { SetContentType(value); return *this;}
53 inline CustomResponseBody& WithContentType(ResponseContentType&& value) { SetContentType(std::move(value)); return *this;}
55
57
65 inline const Aws::String& GetContent() const{ return m_content; }
66 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
67 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
68 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
69 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
70 inline CustomResponseBody& WithContent(const Aws::String& value) { SetContent(value); return *this;}
71 inline CustomResponseBody& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
72 inline CustomResponseBody& WithContent(const char* value) { SetContent(value); return *this;}
74 private:
75
76 ResponseContentType m_contentType;
77 bool m_contentTypeHasBeenSet = false;
78
79 Aws::String m_content;
80 bool m_contentHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace WAFV2
85} // namespace Aws
void SetContentType(ResponseContentType &&value)
void SetContent(const Aws::String &value)
const Aws::String & GetContent() const
CustomResponseBody & WithContentType(ResponseContentType &&value)
CustomResponseBody & WithContent(Aws::String &&value)
AWS_WAFV2_API CustomResponseBody(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API CustomResponseBody & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomResponseBody & WithContent(const Aws::String &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ResponseContentType & GetContentType() const
CustomResponseBody & WithContentType(const ResponseContentType &value)
CustomResponseBody & WithContent(const char *value)
void SetContentType(const ResponseContentType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue