AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CommentContent.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectcases/model/CommentBodyTextType.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 ConnectCases
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECTCASES_API CommentContent() = default;
37 AWS_CONNECTCASES_API CommentContent(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCASES_API CommentContent& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBody() const { return m_body; }
47 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
48 template<typename BodyT = Aws::String>
49 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
50 template<typename BodyT = Aws::String>
51 CommentContent& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
53
55
58 inline CommentBodyTextType GetContentType() const { return m_contentType; }
59 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
60 inline void SetContentType(CommentBodyTextType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
61 inline CommentContent& WithContentType(CommentBodyTextType value) { SetContentType(value); return *this;}
63 private:
64
65 Aws::String m_body;
66 bool m_bodyHasBeenSet = false;
67
69 bool m_contentTypeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ConnectCases
74} // 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