AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RegionT = Aws::String>
52 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
53 template<typename RegionT = Aws::String>
54 RestoreJobSummary& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
65 template<typename AccountIdT = Aws::String>
66 RestoreJobSummary& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
68
70
73 inline RestoreJobState GetState() const { return m_state; }
74 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
75 inline void SetState(RestoreJobState value) { m_stateHasBeenSet = true; m_state = value; }
76 inline RestoreJobSummary& WithState(RestoreJobState value) { SetState(value); return *this;}
78
80
85 inline const Aws::String& GetResourceType() const { return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
87 template<typename ResourceTypeT = Aws::String>
88 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
89 template<typename ResourceTypeT = Aws::String>
90 RestoreJobSummary& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
92
94
97 inline int GetCount() const { return m_count; }
98 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
99 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
100 inline RestoreJobSummary& WithCount(int value) { SetCount(value); return *this;}
102
104
110 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
111 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
112 template<typename StartTimeT = Aws::Utils::DateTime>
113 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
114 template<typename StartTimeT = Aws::Utils::DateTime>
115 RestoreJobSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
117
119
125 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
126 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
127 template<typename EndTimeT = Aws::Utils::DateTime>
128 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
129 template<typename EndTimeT = Aws::Utils::DateTime>
130 RestoreJobSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
132 private:
133
134 Aws::String m_region;
135 bool m_regionHasBeenSet = false;
136
137 Aws::String m_accountId;
138 bool m_accountIdHasBeenSet = false;
139
141 bool m_stateHasBeenSet = false;
142
143 Aws::String m_resourceType;
144 bool m_resourceTypeHasBeenSet = false;
145
146 int m_count{0};
147 bool m_countHasBeenSet = false;
148
149 Aws::Utils::DateTime m_startTime{};
150 bool m_startTimeHasBeenSet = false;
151
152 Aws::Utils::DateTime m_endTime{};
153 bool m_endTimeHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace Backup
158} // 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