AWS SDK for C++  1.9.104
AWS SDK for C++
CustomResponseBody.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
47  inline const ResponseContentType& GetContentType() const{ return m_contentType; }
48 
53  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
54 
59  inline void SetContentType(const ResponseContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
60 
65  inline void SetContentType(ResponseContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
66 
71  inline CustomResponseBody& WithContentType(const ResponseContentType& value) { SetContentType(value); return *this;}
72 
77  inline CustomResponseBody& WithContentType(ResponseContentType&& value) { SetContentType(std::move(value)); return *this;}
78 
79 
90  inline const Aws::String& GetContent() const{ return m_content; }
91 
102  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
103 
114  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
115 
126  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
127 
138  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
139 
150  inline CustomResponseBody& WithContent(const Aws::String& value) { SetContent(value); return *this;}
151 
162  inline CustomResponseBody& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
163 
174  inline CustomResponseBody& WithContent(const char* value) { SetContent(value); return *this;}
175 
176  private:
177 
178  ResponseContentType m_contentType;
179  bool m_contentTypeHasBeenSet;
180 
181  Aws::String m_content;
182  bool m_contentHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace WAFV2
187 } // namespace Aws
Aws::WAFV2::Model::CustomResponseBody::SetContentType
void SetContentType(const ResponseContentType &value)
Definition: CustomResponseBody.h:59
Aws::WAFV2::Model::CustomResponseBody::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: CustomResponseBody.h:102
Aws::WAFV2::Model::CustomResponseBody::WithContentType
CustomResponseBody & WithContentType(const ResponseContentType &value)
Definition: CustomResponseBody.h:71
Aws::WAFV2::Model::ResponseContentType
ResponseContentType
Definition: ResponseContentType.h:17
Aws::WAFV2::Model::CustomResponseBody::WithContent
CustomResponseBody & WithContent(const char *value)
Definition: CustomResponseBody.h:174
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::CustomResponseBody::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: CustomResponseBody.h:53
Aws::WAFV2::Model::CustomResponseBody::SetContentType
void SetContentType(ResponseContentType &&value)
Definition: CustomResponseBody.h:65
Aws::WAFV2::Model::CustomResponseBody::operator=
CustomResponseBody & operator=(Aws::Utils::Json::JsonView jsonValue)
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CustomResponseBody::CustomResponseBody
CustomResponseBody(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::CustomResponseBody::SetContent
void SetContent(const Aws::String &value)
Definition: CustomResponseBody.h:114
Aws::WAFV2::Model::CustomResponseBody::SetContent
void SetContent(const char *value)
Definition: CustomResponseBody.h:138
Aws::WAFV2::Model::CustomResponseBody::CustomResponseBody
CustomResponseBody()
Aws::WAFV2::Model::CustomResponseBody
Definition: CustomResponseBody.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::CustomResponseBody::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::CustomResponseBody::WithContent
CustomResponseBody & WithContent(const Aws::String &value)
Definition: CustomResponseBody.h:150
Aws::WAFV2::Model::CustomResponseBody::SetContent
void SetContent(Aws::String &&value)
Definition: CustomResponseBody.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CustomResponseBody::WithContentType
CustomResponseBody & WithContentType(ResponseContentType &&value)
Definition: CustomResponseBody.h:77
Aws::WAFV2::Model::CustomResponseBody::WithContent
CustomResponseBody & WithContent(Aws::String &&value)
Definition: CustomResponseBody.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::CustomResponseBody::GetContentType
const ResponseContentType & GetContentType() const
Definition: CustomResponseBody.h:47
Aws::WAFV2::Model::CustomResponseBody::GetContent
const Aws::String & GetContent() const
Definition: CustomResponseBody.h:90
ResponseContentType.h