AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BackupJobSummary.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/BackupJobStatus.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 BackupJobSummary();
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 BackupJobSummary& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
55 inline BackupJobSummary& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
56 inline BackupJobSummary& 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 BackupJobSummary& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 inline BackupJobSummary& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
70 inline BackupJobSummary& WithAccountId(const char* value) { SetAccountId(value); return *this;}
72
74
77 inline const BackupJobStatus& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const BackupJobStatus& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(BackupJobStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline BackupJobSummary& WithState(const BackupJobStatus& value) { SetState(value); return *this;}
82 inline BackupJobSummary& WithState(BackupJobStatus&& 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 BackupJobSummary& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
97 inline BackupJobSummary& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
98 inline BackupJobSummary& WithResourceType(const char* value) { SetResourceType(value); return *this;}
100
102
111 inline const Aws::String& GetMessageCategory() const{ return m_messageCategory; }
112 inline bool MessageCategoryHasBeenSet() const { return m_messageCategoryHasBeenSet; }
113 inline void SetMessageCategory(const Aws::String& value) { m_messageCategoryHasBeenSet = true; m_messageCategory = value; }
114 inline void SetMessageCategory(Aws::String&& value) { m_messageCategoryHasBeenSet = true; m_messageCategory = std::move(value); }
115 inline void SetMessageCategory(const char* value) { m_messageCategoryHasBeenSet = true; m_messageCategory.assign(value); }
116 inline BackupJobSummary& WithMessageCategory(const Aws::String& value) { SetMessageCategory(value); return *this;}
117 inline BackupJobSummary& WithMessageCategory(Aws::String&& value) { SetMessageCategory(std::move(value)); return *this;}
118 inline BackupJobSummary& WithMessageCategory(const char* value) { SetMessageCategory(value); return *this;}
120
122
125 inline int GetCount() const{ return m_count; }
126 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
127 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
128 inline BackupJobSummary& WithCount(int value) { SetCount(value); return *this;}
130
132
138 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
139 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
140 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
141 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
142 inline BackupJobSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
143 inline BackupJobSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
145
147
153 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
154 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
155 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
156 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
157 inline BackupJobSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
158 inline BackupJobSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
160 private:
161
162 Aws::String m_region;
163 bool m_regionHasBeenSet = false;
164
165 Aws::String m_accountId;
166 bool m_accountIdHasBeenSet = false;
167
168 BackupJobStatus m_state;
169 bool m_stateHasBeenSet = false;
170
171 Aws::String m_resourceType;
172 bool m_resourceTypeHasBeenSet = false;
173
174 Aws::String m_messageCategory;
175 bool m_messageCategoryHasBeenSet = false;
176
177 int m_count;
178 bool m_countHasBeenSet = false;
179
180 Aws::Utils::DateTime m_startTime;
181 bool m_startTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_endTime;
184 bool m_endTimeHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace Backup
189} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
void SetResourceType(const Aws::String &value)
void SetResourceType(const char *value)
BackupJobSummary & WithAccountId(const char *value)
void SetState(BackupJobStatus &&value)
const Aws::String & GetRegion() const
void SetResourceType(Aws::String &&value)
BackupJobSummary & WithRegion(Aws::String &&value)
BackupJobSummary & WithAccountId(const Aws::String &value)
BackupJobSummary & WithResourceType(const Aws::String &value)
BackupJobSummary & WithAccountId(Aws::String &&value)
BackupJobSummary & WithMessageCategory(const Aws::String &value)
BackupJobSummary & WithStartTime(const Aws::Utils::DateTime &value)
BackupJobSummary & WithResourceType(Aws::String &&value)
void SetAccountId(const Aws::String &value)
void SetRegion(const Aws::String &value)
void SetMessageCategory(const Aws::String &value)
AWS_BACKUP_API BackupJobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetState(const BackupJobStatus &value)
BackupJobSummary & WithState(BackupJobStatus &&value)
AWS_BACKUP_API BackupJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
BackupJobSummary & WithMessageCategory(Aws::String &&value)
BackupJobSummary & WithRegion(const Aws::String &value)
const Aws::String & GetResourceType() const
void SetEndTime(const Aws::Utils::DateTime &value)
BackupJobSummary & WithMessageCategory(const char *value)
void SetRegion(Aws::String &&value)
BackupJobSummary & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::String & GetAccountId() const
void SetMessageCategory(const char *value)
BackupJobSummary & WithEndTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
BackupJobSummary & WithRegion(const char *value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
BackupJobSummary & WithStartTime(Aws::Utils::DateTime &&value)
BackupJobSummary & WithState(const BackupJobStatus &value)
void SetAccountId(Aws::String &&value)
const Aws::String & GetMessageCategory() const
const Aws::Utils::DateTime & GetEndTime() const
void SetMessageCategory(Aws::String &&value)
const BackupJobStatus & GetState() const
void SetEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
BackupJobSummary & WithCount(int value)
BackupJobSummary & WithResourceType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue