AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
49 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
50 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
51 inline CommentContent& WithBody(const Aws::String& value) { SetBody(value); return *this;}
52 inline CommentContent& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
53 inline CommentContent& WithBody(const char* value) { SetBody(value); return *this;}
55
57
60 inline const CommentBodyTextType& GetContentType() const{ return m_contentType; }
61 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
62 inline void SetContentType(const CommentBodyTextType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
63 inline void SetContentType(CommentBodyTextType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
64 inline CommentContent& WithContentType(const CommentBodyTextType& value) { SetContentType(value); return *this;}
65 inline CommentContent& WithContentType(CommentBodyTextType&& value) { SetContentType(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_body;
70 bool m_bodyHasBeenSet = false;
71
72 CommentBodyTextType m_contentType;
73 bool m_contentTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ConnectCases
78} // namespace Aws
const Aws::String & GetBody() const
CommentContent & WithContentType(const CommentBodyTextType &value)
AWS_CONNECTCASES_API CommentContent(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(CommentBodyTextType &&value)
AWS_CONNECTCASES_API CommentContent & operator=(Aws::Utils::Json::JsonView jsonValue)
CommentContent & WithContentType(CommentBodyTextType &&value)
void SetContentType(const CommentBodyTextType &value)
void SetBody(const Aws::String &value)
CommentContent & WithBody(const Aws::String &value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
CommentContent & WithBody(const char *value)
const CommentBodyTextType & GetContentType() const
CommentContent & WithBody(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue