AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CommentContent.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/CommentBodyTextType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCases {
21namespace Model {
22
30 public:
31 AWS_CONNECTCASES_API CommentContent() = default;
32 AWS_CONNECTCASES_API CommentContent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCASES_API CommentContent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBody() const { return m_body; }
41 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
42 template <typename BodyT = Aws::String>
43 void SetBody(BodyT&& value) {
44 m_bodyHasBeenSet = true;
45 m_body = std::forward<BodyT>(value);
46 }
47 template <typename BodyT = Aws::String>
48 CommentContent& WithBody(BodyT&& value) {
49 SetBody(std::forward<BodyT>(value));
50 return *this;
51 }
53
55
58 inline CommentBodyTextType GetContentType() const { return m_contentType; }
59 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
61 m_contentTypeHasBeenSet = true;
62 m_contentType = value;
63 }
65 SetContentType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_body;
71
73 bool m_bodyHasBeenSet = false;
74 bool m_contentTypeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ConnectCases
79} // namespace Aws
AWS_CONNECTCASES_API CommentContent()=default
const Aws::String & GetBody() const
CommentBodyTextType GetContentType() const
CommentContent & WithContentType(CommentBodyTextType value)
AWS_CONNECTCASES_API CommentContent(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API CommentContent & operator=(Aws::Utils::Json::JsonView jsonValue)
CommentContent & WithBody(BodyT &&value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentType(CommentBodyTextType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue