AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
CopyJobSummary.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/CopyJobStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup {
22namespace Model {
23
33 public:
34 AWS_BACKUP_API CopyJobSummary() = default;
35 AWS_BACKUP_API CopyJobSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRegion() const { return m_region; }
44 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
45 template <typename RegionT = Aws::String>
46 void SetRegion(RegionT&& value) {
47 m_regionHasBeenSet = true;
48 m_region = std::forward<RegionT>(value);
49 }
50 template <typename RegionT = Aws::String>
51 CopyJobSummary& WithRegion(RegionT&& value) {
52 SetRegion(std::forward<RegionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAccountId() const { return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 template <typename AccountIdT = Aws::String>
64 void SetAccountId(AccountIdT&& value) {
65 m_accountIdHasBeenSet = true;
66 m_accountId = std::forward<AccountIdT>(value);
67 }
68 template <typename AccountIdT = Aws::String>
69 CopyJobSummary& WithAccountId(AccountIdT&& value) {
70 SetAccountId(std::forward<AccountIdT>(value));
71 return *this;
72 }
74
76
79 inline CopyJobStatus GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(CopyJobStatus value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
99 template <typename ResourceTypeT = Aws::String>
100 void SetResourceType(ResourceTypeT&& value) {
101 m_resourceTypeHasBeenSet = true;
102 m_resourceType = std::forward<ResourceTypeT>(value);
103 }
104 template <typename ResourceTypeT = Aws::String>
105 CopyJobSummary& WithResourceType(ResourceTypeT&& value) {
106 SetResourceType(std::forward<ResourceTypeT>(value));
107 return *this;
108 }
110
112
121 inline const Aws::String& GetMessageCategory() const { return m_messageCategory; }
122 inline bool MessageCategoryHasBeenSet() const { return m_messageCategoryHasBeenSet; }
123 template <typename MessageCategoryT = Aws::String>
124 void SetMessageCategory(MessageCategoryT&& value) {
125 m_messageCategoryHasBeenSet = true;
126 m_messageCategory = std::forward<MessageCategoryT>(value);
127 }
128 template <typename MessageCategoryT = Aws::String>
129 CopyJobSummary& WithMessageCategory(MessageCategoryT&& value) {
130 SetMessageCategory(std::forward<MessageCategoryT>(value));
131 return *this;
132 }
134
136
139 inline int GetCount() const { return m_count; }
140 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
141 inline void SetCount(int value) {
142 m_countHasBeenSet = true;
143 m_count = value;
144 }
145 inline CopyJobSummary& WithCount(int value) {
146 SetCount(value);
147 return *this;
148 }
150
152
158 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
159 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
160 template <typename StartTimeT = Aws::Utils::DateTime>
161 void SetStartTime(StartTimeT&& value) {
162 m_startTimeHasBeenSet = true;
163 m_startTime = std::forward<StartTimeT>(value);
164 }
165 template <typename StartTimeT = Aws::Utils::DateTime>
166 CopyJobSummary& WithStartTime(StartTimeT&& value) {
167 SetStartTime(std::forward<StartTimeT>(value));
168 return *this;
169 }
171
173
179 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
180 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
181 template <typename EndTimeT = Aws::Utils::DateTime>
182 void SetEndTime(EndTimeT&& value) {
183 m_endTimeHasBeenSet = true;
184 m_endTime = std::forward<EndTimeT>(value);
185 }
186 template <typename EndTimeT = Aws::Utils::DateTime>
187 CopyJobSummary& WithEndTime(EndTimeT&& value) {
188 SetEndTime(std::forward<EndTimeT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_region;
194
195 Aws::String m_accountId;
196
198
199 Aws::String m_resourceType;
200
201 Aws::String m_messageCategory;
202
203 int m_count{0};
204
205 Aws::Utils::DateTime m_startTime{};
206
207 Aws::Utils::DateTime m_endTime{};
208 bool m_regionHasBeenSet = false;
209 bool m_accountIdHasBeenSet = false;
210 bool m_stateHasBeenSet = false;
211 bool m_resourceTypeHasBeenSet = false;
212 bool m_messageCategoryHasBeenSet = false;
213 bool m_countHasBeenSet = false;
214 bool m_startTimeHasBeenSet = false;
215 bool m_endTimeHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace Backup
220} // namespace Aws
CopyJobSummary & WithEndTime(EndTimeT &&value)
void SetMessageCategory(MessageCategoryT &&value)
CopyJobSummary & WithState(CopyJobStatus value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
CopyJobSummary & WithMessageCategory(MessageCategoryT &&value)
void SetStartTime(StartTimeT &&value)
AWS_BACKUP_API CopyJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceTypeT &&value)
CopyJobSummary & WithStartTime(StartTimeT &&value)
CopyJobSummary & WithResourceType(ResourceTypeT &&value)
void SetState(CopyJobStatus value)
CopyJobSummary & WithCount(int value)
AWS_BACKUP_API CopyJobSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API CopyJobSummary()=default
CopyJobSummary & WithAccountId(AccountIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::String & GetResourceType() const
CopyJobSummary & WithRegion(RegionT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetRegion() const
const Aws::String & GetMessageCategory() const
void SetEndTime(EndTimeT &&value)
const Aws::String & GetAccountId() const
void SetAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue