AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyJobSummary.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/CopyJobStatus.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 CopyJobSummary();
40 AWS_BACKUP_API CopyJobSummary(Aws::Utils::Json::JsonView jsonValue);
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 CopyJobSummary& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
55 inline CopyJobSummary& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
56 inline CopyJobSummary& 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 CopyJobSummary& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 inline CopyJobSummary& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
70 inline CopyJobSummary& WithAccountId(const char* value) { SetAccountId(value); return *this;}
72
74
77 inline const CopyJobStatus& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const CopyJobStatus& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(CopyJobStatus&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline CopyJobSummary& WithState(const CopyJobStatus& value) { SetState(value); return *this;}
82 inline CopyJobSummary& WithState(CopyJobStatus&& 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 CopyJobSummary& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
97 inline CopyJobSummary& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
98 inline CopyJobSummary& 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 CopyJobSummary& WithMessageCategory(const Aws::String& value) { SetMessageCategory(value); return *this;}
117 inline CopyJobSummary& WithMessageCategory(Aws::String&& value) { SetMessageCategory(std::move(value)); return *this;}
118 inline CopyJobSummary& 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 CopyJobSummary& 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 CopyJobSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
143 inline CopyJobSummary& 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 CopyJobSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
158 inline CopyJobSummary& 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 CopyJobStatus 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
void SetMessageCategory(const char *value)
void SetAccountId(const char *value)
CopyJobSummary & WithEndTime(const Aws::Utils::DateTime &value)
CopyJobSummary & WithRegion(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountId(Aws::String &&value)
void SetResourceType(const char *value)
AWS_BACKUP_API CopyJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndTime(Aws::Utils::DateTime &&value)
CopyJobSummary & WithMessageCategory(const Aws::String &value)
CopyJobSummary & WithAccountId(const Aws::String &value)
CopyJobSummary & WithResourceType(const Aws::String &value)
CopyJobSummary & WithCount(int value)
void SetState(CopyJobStatus &&value)
CopyJobSummary & WithState(const CopyJobStatus &value)
CopyJobSummary & WithState(CopyJobStatus &&value)
void SetAccountId(const Aws::String &value)
CopyJobSummary & WithAccountId(const char *value)
void SetRegion(const char *value)
AWS_BACKUP_API CopyJobSummary(Aws::Utils::Json::JsonView jsonValue)
CopyJobSummary & WithMessageCategory(const char *value)
CopyJobSummary & WithEndTime(Aws::Utils::DateTime &&value)
void SetRegion(const Aws::String &value)
CopyJobSummary & WithMessageCategory(Aws::String &&value)
void SetMessageCategory(const Aws::String &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetResourceType() const
CopyJobSummary & WithRegion(Aws::String &&value)
CopyJobSummary & WithResourceType(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetRegion() const
CopyJobSummary & WithRegion(const Aws::String &value)
CopyJobSummary & WithResourceType(Aws::String &&value)
const Aws::String & GetMessageCategory() const
const CopyJobStatus & GetState() const
void SetMessageCategory(Aws::String &&value)
CopyJobSummary & WithStartTime(const Aws::Utils::DateTime &value)
CopyJobSummary & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetAccountId() const
void SetRegion(Aws::String &&value)
void SetState(const CopyJobStatus &value)
void SetResourceType(Aws::String &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetResourceType(const Aws::String &value)
CopyJobSummary & WithAccountId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue