AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 BackupJobSummary& 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 BackupJobSummary& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
68
70
73 inline BackupJobStatus GetState() const { return m_state; }
74 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
75 inline void SetState(BackupJobStatus value) { m_stateHasBeenSet = true; m_state = value; }
76 inline BackupJobSummary& WithState(BackupJobStatus 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 BackupJobSummary& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
92
94
103 inline const Aws::String& GetMessageCategory() const { return m_messageCategory; }
104 inline bool MessageCategoryHasBeenSet() const { return m_messageCategoryHasBeenSet; }
105 template<typename MessageCategoryT = Aws::String>
106 void SetMessageCategory(MessageCategoryT&& value) { m_messageCategoryHasBeenSet = true; m_messageCategory = std::forward<MessageCategoryT>(value); }
107 template<typename MessageCategoryT = Aws::String>
108 BackupJobSummary& WithMessageCategory(MessageCategoryT&& value) { SetMessageCategory(std::forward<MessageCategoryT>(value)); return *this;}
110
112
115 inline int GetCount() const { return m_count; }
116 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
117 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
118 inline BackupJobSummary& WithCount(int value) { SetCount(value); return *this;}
120
122
128 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
129 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
130 template<typename StartTimeT = Aws::Utils::DateTime>
131 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
132 template<typename StartTimeT = Aws::Utils::DateTime>
133 BackupJobSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
135
137
143 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
144 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
145 template<typename EndTimeT = Aws::Utils::DateTime>
146 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
147 template<typename EndTimeT = Aws::Utils::DateTime>
148 BackupJobSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
150 private:
151
152 Aws::String m_region;
153 bool m_regionHasBeenSet = false;
154
155 Aws::String m_accountId;
156 bool m_accountIdHasBeenSet = false;
157
159 bool m_stateHasBeenSet = false;
160
161 Aws::String m_resourceType;
162 bool m_resourceTypeHasBeenSet = false;
163
164 Aws::String m_messageCategory;
165 bool m_messageCategoryHasBeenSet = false;
166
167 int m_count{0};
168 bool m_countHasBeenSet = false;
169
170 Aws::Utils::DateTime m_startTime{};
171 bool m_startTimeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_endTime{};
174 bool m_endTimeHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace Backup
179} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
void SetState(BackupJobStatus value)
BackupJobSummary & WithEndTime(EndTimeT &&value)
BackupJobSummary & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetRegion() const
void SetAccountId(AccountIdT &&value)
AWS_BACKUP_API BackupJobSummary(Aws::Utils::Json::JsonView jsonValue)
BackupJobSummary & WithMessageCategory(MessageCategoryT &&value)
AWS_BACKUP_API BackupJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
BackupJobSummary & WithStartTime(StartTimeT &&value)
AWS_BACKUP_API BackupJobSummary()=default
const Aws::String & GetResourceType() const
const Aws::String & GetAccountId() const
BackupJobSummary & WithState(BackupJobStatus value)
void SetMessageCategory(MessageCategoryT &&value)
BackupJobSummary & WithAccountId(AccountIdT &&value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetMessageCategory() const
const Aws::Utils::DateTime & GetEndTime() const
BackupJobSummary & WithRegion(RegionT &&value)
void SetStartTime(StartTimeT &&value)
BackupJobSummary & WithCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue