AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreJobSummary.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/RestoreJobState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Backup
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BACKUP_API RestoreJobSummary();
42 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetRegion() const{ return m_region; }
50 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
51 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
52 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
53 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
54 inline RestoreJobSummary& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
55 inline RestoreJobSummary& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
56 inline RestoreJobSummary& WithRegion(const char* value) { SetRegion(value); return *this;}
58
60
63 inline const Aws::String& GetAccountId() const{ return m_accountId; }
64 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
65 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
66 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
67 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
68 inline RestoreJobSummary& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 inline RestoreJobSummary& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
70 inline RestoreJobSummary& WithAccountId(const char* value) { SetAccountId(value); return *this;}
72
74
77 inline const RestoreJobState& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const RestoreJobState& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(RestoreJobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline RestoreJobSummary& WithState(const RestoreJobState& value) { SetState(value); return *this;}
82 inline RestoreJobSummary& WithState(RestoreJobState&& value) { SetState(std::move(value)); return *this;}
84
86
91 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
92 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
93 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
94 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
95 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
96 inline RestoreJobSummary& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
97 inline RestoreJobSummary& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
98 inline RestoreJobSummary& WithResourceType(const char* value) { SetResourceType(value); return *this;}
100
102
105 inline int GetCount() const{ return m_count; }
106 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
107 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
108 inline RestoreJobSummary& WithCount(int value) { SetCount(value); return *this;}
110
112
118 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
119 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
120 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
121 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
122 inline RestoreJobSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
123 inline RestoreJobSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
125
127
133 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
134 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
135 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
136 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
137 inline RestoreJobSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
138 inline RestoreJobSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
140 private:
141
142 Aws::String m_region;
143 bool m_regionHasBeenSet = false;
144
145 Aws::String m_accountId;
146 bool m_accountIdHasBeenSet = false;
147
148 RestoreJobState m_state;
149 bool m_stateHasBeenSet = false;
150
151 Aws::String m_resourceType;
152 bool m_resourceTypeHasBeenSet = false;
153
154 int m_count;
155 bool m_countHasBeenSet = false;
156
157 Aws::Utils::DateTime m_startTime;
158 bool m_startTimeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_endTime;
161 bool m_endTimeHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Backup
166} // namespace Aws
AWS_BACKUP_API RestoreJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RestoreJobSummary & WithRegion(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
RestoreJobSummary & WithEndTime(const Aws::Utils::DateTime &value)
void SetAccountId(const Aws::String &value)
const Aws::String & GetResourceType() const
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
RestoreJobSummary & WithResourceType(Aws::String &&value)
RestoreJobSummary & WithResourceType(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
RestoreJobSummary & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetState(RestoreJobState &&value)
RestoreJobSummary & WithRegion(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
RestoreJobSummary & WithCount(int value)
void SetResourceType(Aws::String &&value)
RestoreJobSummary & WithState(const RestoreJobState &value)
const RestoreJobState & GetState() const
void SetResourceType(const Aws::String &value)
RestoreJobSummary & WithRegion(Aws::String &&value)
void SetAccountId(Aws::String &&value)
RestoreJobSummary & WithAccountId(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
RestoreJobSummary & WithAccountId(const Aws::String &value)
RestoreJobSummary & WithState(RestoreJobState &&value)
RestoreJobSummary & WithResourceType(const Aws::String &value)
const Aws::String & GetAccountId() const
void SetState(const RestoreJobState &value)
void SetRegion(const Aws::String &value)
RestoreJobSummary & WithAccountId(Aws::String &&value)
const Aws::String & GetRegion() const
RestoreJobSummary & WithStartTime(const Aws::Utils::DateTime &value)
AWS_BACKUP_API RestoreJobSummary(Aws::Utils::Json::JsonView jsonValue)
RestoreJobSummary & WithStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue