AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
RestoreJobSummary.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/RestoreJobState.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 RestoreJobSummary() = default;
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 RestoreJobSummary& 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 RestoreJobSummary& WithAccountId(AccountIdT&& value) {
70 SetAccountId(std::forward<AccountIdT>(value));
71 return *this;
72 }
74
76
79 inline RestoreJobState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(RestoreJobState 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 RestoreJobSummary& WithResourceType(ResourceTypeT&& value) {
106 SetResourceType(std::forward<ResourceTypeT>(value));
107 return *this;
108 }
110
112
115 inline int GetCount() const { return m_count; }
116 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
117 inline void SetCount(int value) {
118 m_countHasBeenSet = true;
119 m_count = value;
120 }
121 inline RestoreJobSummary& WithCount(int value) {
122 SetCount(value);
123 return *this;
124 }
126
128
134 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
135 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
136 template <typename StartTimeT = Aws::Utils::DateTime>
137 void SetStartTime(StartTimeT&& value) {
138 m_startTimeHasBeenSet = true;
139 m_startTime = std::forward<StartTimeT>(value);
140 }
141 template <typename StartTimeT = Aws::Utils::DateTime>
142 RestoreJobSummary& WithStartTime(StartTimeT&& value) {
143 SetStartTime(std::forward<StartTimeT>(value));
144 return *this;
145 }
147
149
155 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
156 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
157 template <typename EndTimeT = Aws::Utils::DateTime>
158 void SetEndTime(EndTimeT&& value) {
159 m_endTimeHasBeenSet = true;
160 m_endTime = std::forward<EndTimeT>(value);
161 }
162 template <typename EndTimeT = Aws::Utils::DateTime>
163 RestoreJobSummary& WithEndTime(EndTimeT&& value) {
164 SetEndTime(std::forward<EndTimeT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_region;
170
171 Aws::String m_accountId;
172
174
175 Aws::String m_resourceType;
176
177 int m_count{0};
178
179 Aws::Utils::DateTime m_startTime{};
180
181 Aws::Utils::DateTime m_endTime{};
182 bool m_regionHasBeenSet = false;
183 bool m_accountIdHasBeenSet = false;
184 bool m_stateHasBeenSet = false;
185 bool m_resourceTypeHasBeenSet = false;
186 bool m_countHasBeenSet = false;
187 bool m_startTimeHasBeenSet = false;
188 bool m_endTimeHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Backup
193} // namespace Aws
AWS_BACKUP_API RestoreJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RestoreJobSummary & WithState(RestoreJobState value)
void SetState(RestoreJobState value)
const Aws::String & GetResourceType() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
RestoreJobSummary & WithStartTime(StartTimeT &&value)
RestoreJobSummary & WithResourceType(ResourceTypeT &&value)
RestoreJobSummary & WithRegion(RegionT &&value)
RestoreJobSummary & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Utils::DateTime & GetStartTime() const
RestoreJobSummary & WithCount(int value)
RestoreJobSummary & WithAccountId(AccountIdT &&value)
const Aws::String & GetAccountId() const
AWS_BACKUP_API RestoreJobSummary()=default
const Aws::String & GetRegion() const
AWS_BACKUP_API RestoreJobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue