AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
JournalRecord.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/UserReference.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsAgent {
23namespace Model {
24
32 public:
33 AWS_DEVOPSAGENT_API JournalRecord() = default;
34 AWS_DEVOPSAGENT_API JournalRecord(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSAGENT_API JournalRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
43 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
44 template <typename AgentSpaceIdT = Aws::String>
45 void SetAgentSpaceId(AgentSpaceIdT&& value) {
46 m_agentSpaceIdHasBeenSet = true;
47 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
48 }
49 template <typename AgentSpaceIdT = Aws::String>
50 JournalRecord& WithAgentSpaceId(AgentSpaceIdT&& value) {
51 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetExecutionId() const { return m_executionId; }
61 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
62 template <typename ExecutionIdT = Aws::String>
63 void SetExecutionId(ExecutionIdT&& value) {
64 m_executionIdHasBeenSet = true;
65 m_executionId = std::forward<ExecutionIdT>(value);
66 }
67 template <typename ExecutionIdT = Aws::String>
68 JournalRecord& WithExecutionId(ExecutionIdT&& value) {
69 SetExecutionId(std::forward<ExecutionIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRecordId() const { return m_recordId; }
79 inline bool RecordIdHasBeenSet() const { return m_recordIdHasBeenSet; }
80 template <typename RecordIdT = Aws::String>
81 void SetRecordId(RecordIdT&& value) {
82 m_recordIdHasBeenSet = true;
83 m_recordId = std::forward<RecordIdT>(value);
84 }
85 template <typename RecordIdT = Aws::String>
86 JournalRecord& WithRecordId(RecordIdT&& value) {
87 SetRecordId(std::forward<RecordIdT>(value));
88 return *this;
89 }
91
93
96 inline Aws::Utils::DocumentView GetContent() const { return m_content; }
97 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
98 template <typename ContentT = Aws::Utils::Document>
99 void SetContent(ContentT&& value) {
100 m_contentHasBeenSet = true;
101 m_content = std::forward<ContentT>(value);
102 }
103 template <typename ContentT = Aws::Utils::Document>
104 JournalRecord& WithContent(ContentT&& value) {
105 SetContent(std::forward<ContentT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 void SetCreatedAt(CreatedAtT&& value) {
118 m_createdAtHasBeenSet = true;
119 m_createdAt = std::forward<CreatedAtT>(value);
120 }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
122 JournalRecord& WithCreatedAt(CreatedAtT&& value) {
123 SetCreatedAt(std::forward<CreatedAtT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetRecordType() const { return m_recordType; }
133 inline bool RecordTypeHasBeenSet() const { return m_recordTypeHasBeenSet; }
134 template <typename RecordTypeT = Aws::String>
135 void SetRecordType(RecordTypeT&& value) {
136 m_recordTypeHasBeenSet = true;
137 m_recordType = std::forward<RecordTypeT>(value);
138 }
139 template <typename RecordTypeT = Aws::String>
140 JournalRecord& WithRecordType(RecordTypeT&& value) {
141 SetRecordType(std::forward<RecordTypeT>(value));
142 return *this;
143 }
145
147
150 inline const UserReference& GetUserReference() const { return m_userReference; }
151 inline bool UserReferenceHasBeenSet() const { return m_userReferenceHasBeenSet; }
152 template <typename UserReferenceT = UserReference>
153 void SetUserReference(UserReferenceT&& value) {
154 m_userReferenceHasBeenSet = true;
155 m_userReference = std::forward<UserReferenceT>(value);
156 }
157 template <typename UserReferenceT = UserReference>
158 JournalRecord& WithUserReference(UserReferenceT&& value) {
159 SetUserReference(std::forward<UserReferenceT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_agentSpaceId;
165
166 Aws::String m_executionId;
167
168 Aws::String m_recordId;
169
170 Aws::Utils::Document m_content;
171
172 Aws::Utils::DateTime m_createdAt{};
173
174 Aws::String m_recordType;
175
176 UserReference m_userReference;
177 bool m_agentSpaceIdHasBeenSet = false;
178 bool m_executionIdHasBeenSet = false;
179 bool m_recordIdHasBeenSet = false;
180 bool m_contentHasBeenSet = false;
181 bool m_createdAtHasBeenSet = false;
182 bool m_recordTypeHasBeenSet = false;
183 bool m_userReferenceHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace DevOpsAgent
188} // namespace Aws
Aws::Utils::DocumentView GetContent() const
void SetRecordId(RecordIdT &&value)
void SetRecordType(RecordTypeT &&value)
const UserReference & GetUserReference() const
const Aws::String & GetAgentSpaceId() const
JournalRecord & WithRecordType(RecordTypeT &&value)
AWS_DEVOPSAGENT_API JournalRecord()=default
JournalRecord & WithUserReference(UserReferenceT &&value)
JournalRecord & WithContent(ContentT &&value)
const Aws::String & GetRecordId() const
AWS_DEVOPSAGENT_API JournalRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExecutionId() const
const Aws::String & GetRecordType() const
void SetCreatedAt(CreatedAtT &&value)
JournalRecord & WithRecordId(RecordIdT &&value)
void SetAgentSpaceId(AgentSpaceIdT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
JournalRecord & WithCreatedAt(CreatedAtT &&value)
JournalRecord & WithExecutionId(ExecutionIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetExecutionId(ExecutionIdT &&value)
AWS_DEVOPSAGENT_API JournalRecord(Aws::Utils::Json::JsonView jsonValue)
JournalRecord & WithAgentSpaceId(AgentSpaceIdT &&value)
void SetUserReference(UserReferenceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue