AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ListCommentsItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/security-ir/SecurityIR_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityIR {
21namespace Model {
22
29 public:
30 AWS_SECURITYIR_API ListCommentsItem() = default;
31 AWS_SECURITYIR_API ListCommentsItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCommentId() const { return m_commentId; }
40 inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
41 template <typename CommentIdT = Aws::String>
42 void SetCommentId(CommentIdT&& value) {
43 m_commentIdHasBeenSet = true;
44 m_commentId = std::forward<CommentIdT>(value);
45 }
46 template <typename CommentIdT = Aws::String>
47 ListCommentsItem& WithCommentId(CommentIdT&& value) {
48 SetCommentId(std::forward<CommentIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
58 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
59 template <typename CreatedDateT = Aws::Utils::DateTime>
60 void SetCreatedDate(CreatedDateT&& value) {
61 m_createdDateHasBeenSet = true;
62 m_createdDate = std::forward<CreatedDateT>(value);
63 }
64 template <typename CreatedDateT = Aws::Utils::DateTime>
65 ListCommentsItem& WithCreatedDate(CreatedDateT&& value) {
66 SetCreatedDate(std::forward<CreatedDateT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
76 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
77 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
78 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
79 m_lastUpdatedDateHasBeenSet = true;
80 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
81 }
82 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
83 ListCommentsItem& WithLastUpdatedDate(LastUpdatedDateT&& value) {
84 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCreator() const { return m_creator; }
94 inline bool CreatorHasBeenSet() const { return m_creatorHasBeenSet; }
95 template <typename CreatorT = Aws::String>
96 void SetCreator(CreatorT&& value) {
97 m_creatorHasBeenSet = true;
98 m_creator = std::forward<CreatorT>(value);
99 }
100 template <typename CreatorT = Aws::String>
101 ListCommentsItem& WithCreator(CreatorT&& value) {
102 SetCreator(std::forward<CreatorT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
112 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
113 template <typename LastUpdatedByT = Aws::String>
114 void SetLastUpdatedBy(LastUpdatedByT&& value) {
115 m_lastUpdatedByHasBeenSet = true;
116 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
117 }
118 template <typename LastUpdatedByT = Aws::String>
119 ListCommentsItem& WithLastUpdatedBy(LastUpdatedByT&& value) {
120 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetBody() const { return m_body; }
130 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
131 template <typename BodyT = Aws::String>
132 void SetBody(BodyT&& value) {
133 m_bodyHasBeenSet = true;
134 m_body = std::forward<BodyT>(value);
135 }
136 template <typename BodyT = Aws::String>
137 ListCommentsItem& WithBody(BodyT&& value) {
138 SetBody(std::forward<BodyT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_commentId;
144
145 Aws::Utils::DateTime m_createdDate{};
146
147 Aws::Utils::DateTime m_lastUpdatedDate{};
148
149 Aws::String m_creator;
150
151 Aws::String m_lastUpdatedBy;
152
153 Aws::String m_body;
154 bool m_commentIdHasBeenSet = false;
155 bool m_createdDateHasBeenSet = false;
156 bool m_lastUpdatedDateHasBeenSet = false;
157 bool m_creatorHasBeenSet = false;
158 bool m_lastUpdatedByHasBeenSet = false;
159 bool m_bodyHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace SecurityIR
164} // namespace Aws
const Aws::String & GetLastUpdatedBy() const
AWS_SECURITYIR_API ListCommentsItem()=default
AWS_SECURITYIR_API ListCommentsItem(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYIR_API ListCommentsItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
ListCommentsItem & WithLastUpdatedDate(LastUpdatedDateT &&value)
void SetCreatedDate(CreatedDateT &&value)
ListCommentsItem & WithBody(BodyT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
ListCommentsItem & WithCommentId(CommentIdT &&value)
ListCommentsItem & WithCreatedDate(CreatedDateT &&value)
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::String & GetCreator() const
const Aws::String & GetCommentId() const
ListCommentsItem & WithCreator(CreatorT &&value)
ListCommentsItem & WithLastUpdatedBy(LastUpdatedByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue