AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ControlComment.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/DateTime.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 AuditManager {
21namespace Model {
22
30 public:
31 AWS_AUDITMANAGER_API ControlComment() = default;
32 AWS_AUDITMANAGER_API ControlComment(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AUDITMANAGER_API ControlComment& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAuthorName() const { return m_authorName; }
41 inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
42 template <typename AuthorNameT = Aws::String>
43 void SetAuthorName(AuthorNameT&& value) {
44 m_authorNameHasBeenSet = true;
45 m_authorName = std::forward<AuthorNameT>(value);
46 }
47 template <typename AuthorNameT = Aws::String>
48 ControlComment& WithAuthorName(AuthorNameT&& value) {
49 SetAuthorName(std::forward<AuthorNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCommentBody() const { return m_commentBody; }
59 inline bool CommentBodyHasBeenSet() const { return m_commentBodyHasBeenSet; }
60 template <typename CommentBodyT = Aws::String>
61 void SetCommentBody(CommentBodyT&& value) {
62 m_commentBodyHasBeenSet = true;
63 m_commentBody = std::forward<CommentBodyT>(value);
64 }
65 template <typename CommentBodyT = Aws::String>
66 ControlComment& WithCommentBody(CommentBodyT&& value) {
67 SetCommentBody(std::forward<CommentBodyT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetPostedDate() const { return m_postedDate; }
77 inline bool PostedDateHasBeenSet() const { return m_postedDateHasBeenSet; }
78 template <typename PostedDateT = Aws::Utils::DateTime>
79 void SetPostedDate(PostedDateT&& value) {
80 m_postedDateHasBeenSet = true;
81 m_postedDate = std::forward<PostedDateT>(value);
82 }
83 template <typename PostedDateT = Aws::Utils::DateTime>
84 ControlComment& WithPostedDate(PostedDateT&& value) {
85 SetPostedDate(std::forward<PostedDateT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_authorName;
91
92 Aws::String m_commentBody;
93
94 Aws::Utils::DateTime m_postedDate{};
95 bool m_authorNameHasBeenSet = false;
96 bool m_commentBodyHasBeenSet = false;
97 bool m_postedDateHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace AuditManager
102} // namespace Aws
ControlComment & WithAuthorName(AuthorNameT &&value)
AWS_AUDITMANAGER_API ControlComment(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAuthorName() const
AWS_AUDITMANAGER_API ControlComment()=default
ControlComment & WithPostedDate(PostedDateT &&value)
const Aws::String & GetCommentBody() const
const Aws::Utils::DateTime & GetPostedDate() const
void SetCommentBody(CommentBodyT &&value)
void SetPostedDate(PostedDateT &&value)
void SetAuthorName(AuthorNameT &&value)
AWS_AUDITMANAGER_API ControlComment & operator=(Aws::Utils::Json::JsonView jsonValue)
ControlComment & WithCommentBody(CommentBodyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue