AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ControlComment.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 AuditManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AUDITMANAGER_API ControlComment() = default;
37 AWS_AUDITMANAGER_API ControlComment(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API ControlComment& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAuthorName() const { return m_authorName; }
47 inline bool AuthorNameHasBeenSet() const { return m_authorNameHasBeenSet; }
48 template<typename AuthorNameT = Aws::String>
49 void SetAuthorName(AuthorNameT&& value) { m_authorNameHasBeenSet = true; m_authorName = std::forward<AuthorNameT>(value); }
50 template<typename AuthorNameT = Aws::String>
51 ControlComment& WithAuthorName(AuthorNameT&& value) { SetAuthorName(std::forward<AuthorNameT>(value)); return *this;}
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) { m_commentBodyHasBeenSet = true; m_commentBody = std::forward<CommentBodyT>(value); }
62 template<typename CommentBodyT = Aws::String>
63 ControlComment& WithCommentBody(CommentBodyT&& value) { SetCommentBody(std::forward<CommentBodyT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetPostedDate() const { return m_postedDate; }
71 inline bool PostedDateHasBeenSet() const { return m_postedDateHasBeenSet; }
72 template<typename PostedDateT = Aws::Utils::DateTime>
73 void SetPostedDate(PostedDateT&& value) { m_postedDateHasBeenSet = true; m_postedDate = std::forward<PostedDateT>(value); }
74 template<typename PostedDateT = Aws::Utils::DateTime>
75 ControlComment& WithPostedDate(PostedDateT&& value) { SetPostedDate(std::forward<PostedDateT>(value)); return *this;}
77 private:
78
79 Aws::String m_authorName;
80 bool m_authorNameHasBeenSet = false;
81
82 Aws::String m_commentBody;
83 bool m_commentBodyHasBeenSet = false;
84
85 Aws::Utils::DateTime m_postedDate{};
86 bool m_postedDateHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace AuditManager
91} // 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