AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthorName(const Aws::String& value) { m_authorNameHasBeenSet = true; m_authorName = value; }
49 inline void SetAuthorName(Aws::String&& value) { m_authorNameHasBeenSet = true; m_authorName = std::move(value); }
50 inline void SetAuthorName(const char* value) { m_authorNameHasBeenSet = true; m_authorName.assign(value); }
51 inline ControlComment& WithAuthorName(const Aws::String& value) { SetAuthorName(value); return *this;}
52 inline ControlComment& WithAuthorName(Aws::String&& value) { SetAuthorName(std::move(value)); return *this;}
53 inline ControlComment& WithAuthorName(const char* value) { SetAuthorName(value); return *this;}
55
57
60 inline const Aws::String& GetCommentBody() const{ return m_commentBody; }
61 inline bool CommentBodyHasBeenSet() const { return m_commentBodyHasBeenSet; }
62 inline void SetCommentBody(const Aws::String& value) { m_commentBodyHasBeenSet = true; m_commentBody = value; }
63 inline void SetCommentBody(Aws::String&& value) { m_commentBodyHasBeenSet = true; m_commentBody = std::move(value); }
64 inline void SetCommentBody(const char* value) { m_commentBodyHasBeenSet = true; m_commentBody.assign(value); }
65 inline ControlComment& WithCommentBody(const Aws::String& value) { SetCommentBody(value); return *this;}
66 inline ControlComment& WithCommentBody(Aws::String&& value) { SetCommentBody(std::move(value)); return *this;}
67 inline ControlComment& WithCommentBody(const char* value) { SetCommentBody(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetPostedDate() const{ return m_postedDate; }
75 inline bool PostedDateHasBeenSet() const { return m_postedDateHasBeenSet; }
76 inline void SetPostedDate(const Aws::Utils::DateTime& value) { m_postedDateHasBeenSet = true; m_postedDate = value; }
77 inline void SetPostedDate(Aws::Utils::DateTime&& value) { m_postedDateHasBeenSet = true; m_postedDate = std::move(value); }
78 inline ControlComment& WithPostedDate(const Aws::Utils::DateTime& value) { SetPostedDate(value); return *this;}
79 inline ControlComment& WithPostedDate(Aws::Utils::DateTime&& value) { SetPostedDate(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_authorName;
84 bool m_authorNameHasBeenSet = false;
85
86 Aws::String m_commentBody;
87 bool m_commentBodyHasBeenSet = false;
88
89 Aws::Utils::DateTime m_postedDate;
90 bool m_postedDateHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace AuditManager
95} // namespace Aws
void SetAuthorName(const Aws::String &value)
AWS_AUDITMANAGER_API ControlComment(Aws::Utils::Json::JsonView jsonValue)
void SetCommentBody(Aws::String &&value)
void SetCommentBody(const Aws::String &value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAuthorName() const
ControlComment & WithAuthorName(const char *value)
ControlComment & WithPostedDate(const Aws::Utils::DateTime &value)
ControlComment & WithCommentBody(const Aws::String &value)
ControlComment & WithAuthorName(const Aws::String &value)
ControlComment & WithCommentBody(Aws::String &&value)
ControlComment & WithAuthorName(Aws::String &&value)
void SetPostedDate(const Aws::Utils::DateTime &value)
const Aws::String & GetCommentBody() const
void SetPostedDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetPostedDate() const
ControlComment & WithCommentBody(const char *value)
void SetAuthorName(Aws::String &&value)
ControlComment & WithPostedDate(Aws::Utils::DateTime &&value)
AWS_AUDITMANAGER_API ControlComment & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue