AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CacheReportInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11#include <aws/storagegateway/model/CacheReportFilter.h>
12#include <aws/storagegateway/model/CacheReportStatus.h>
13#include <aws/storagegateway/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace StorageGateway {
25namespace Model {
26
35 public:
36 AWS_STORAGEGATEWAY_API CacheReportInfo() = default;
37 AWS_STORAGEGATEWAY_API CacheReportInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API CacheReportInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetCacheReportARN() const { return m_cacheReportARN; }
46 inline bool CacheReportARNHasBeenSet() const { return m_cacheReportARNHasBeenSet; }
47 template <typename CacheReportARNT = Aws::String>
48 void SetCacheReportARN(CacheReportARNT&& value) {
49 m_cacheReportARNHasBeenSet = true;
50 m_cacheReportARN = std::forward<CacheReportARNT>(value);
51 }
52 template <typename CacheReportARNT = Aws::String>
53 CacheReportInfo& WithCacheReportARN(CacheReportARNT&& value) {
54 SetCacheReportARN(std::forward<CacheReportARNT>(value));
55 return *this;
56 }
58
60
63 inline CacheReportStatus GetCacheReportStatus() const { return m_cacheReportStatus; }
64 inline bool CacheReportStatusHasBeenSet() const { return m_cacheReportStatusHasBeenSet; }
66 m_cacheReportStatusHasBeenSet = true;
67 m_cacheReportStatus = value;
68 }
71 return *this;
72 }
74
76
80 inline int GetReportCompletionPercent() const { return m_reportCompletionPercent; }
81 inline bool ReportCompletionPercentHasBeenSet() const { return m_reportCompletionPercentHasBeenSet; }
82 inline void SetReportCompletionPercent(int value) {
83 m_reportCompletionPercentHasBeenSet = true;
84 m_reportCompletionPercent = value;
85 }
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
97 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 template <typename EndTimeT = Aws::Utils::DateTime>
99 void SetEndTime(EndTimeT&& value) {
100 m_endTimeHasBeenSet = true;
101 m_endTime = std::forward<EndTimeT>(value);
102 }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 CacheReportInfo& WithEndTime(EndTimeT&& value) {
105 SetEndTime(std::forward<EndTimeT>(value));
106 return *this;
107 }
109
111
112 inline const Aws::String& GetRole() const { return m_role; }
113 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
114 template <typename RoleT = Aws::String>
115 void SetRole(RoleT&& value) {
116 m_roleHasBeenSet = true;
117 m_role = std::forward<RoleT>(value);
118 }
119 template <typename RoleT = Aws::String>
120 CacheReportInfo& WithRole(RoleT&& value) {
121 SetRole(std::forward<RoleT>(value));
122 return *this;
123 }
125
127
128 inline const Aws::String& GetFileShareARN() const { return m_fileShareARN; }
129 inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; }
130 template <typename FileShareARNT = Aws::String>
131 void SetFileShareARN(FileShareARNT&& value) {
132 m_fileShareARNHasBeenSet = true;
133 m_fileShareARN = std::forward<FileShareARNT>(value);
134 }
135 template <typename FileShareARNT = Aws::String>
136 CacheReportInfo& WithFileShareARN(FileShareARNT&& value) {
137 SetFileShareARN(std::forward<FileShareARNT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetLocationARN() const { return m_locationARN; }
147 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
148 template <typename LocationARNT = Aws::String>
149 void SetLocationARN(LocationARNT&& value) {
150 m_locationARNHasBeenSet = true;
151 m_locationARN = std::forward<LocationARNT>(value);
152 }
153 template <typename LocationARNT = Aws::String>
154 CacheReportInfo& WithLocationARN(LocationARNT&& value) {
155 SetLocationARN(std::forward<LocationARNT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
165 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
166 template <typename StartTimeT = Aws::Utils::DateTime>
167 void SetStartTime(StartTimeT&& value) {
168 m_startTimeHasBeenSet = true;
169 m_startTime = std::forward<StartTimeT>(value);
170 }
171 template <typename StartTimeT = Aws::Utils::DateTime>
172 CacheReportInfo& WithStartTime(StartTimeT&& value) {
173 SetStartTime(std::forward<StartTimeT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::Vector<CacheReportFilter>& GetInclusionFilters() const { return m_inclusionFilters; }
184 inline bool InclusionFiltersHasBeenSet() const { return m_inclusionFiltersHasBeenSet; }
185 template <typename InclusionFiltersT = Aws::Vector<CacheReportFilter>>
186 void SetInclusionFilters(InclusionFiltersT&& value) {
187 m_inclusionFiltersHasBeenSet = true;
188 m_inclusionFilters = std::forward<InclusionFiltersT>(value);
189 }
190 template <typename InclusionFiltersT = Aws::Vector<CacheReportFilter>>
191 CacheReportInfo& WithInclusionFilters(InclusionFiltersT&& value) {
192 SetInclusionFilters(std::forward<InclusionFiltersT>(value));
193 return *this;
194 }
195 template <typename InclusionFiltersT = CacheReportFilter>
196 CacheReportInfo& AddInclusionFilters(InclusionFiltersT&& value) {
197 m_inclusionFiltersHasBeenSet = true;
198 m_inclusionFilters.emplace_back(std::forward<InclusionFiltersT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::Vector<CacheReportFilter>& GetExclusionFilters() const { return m_exclusionFilters; }
209 inline bool ExclusionFiltersHasBeenSet() const { return m_exclusionFiltersHasBeenSet; }
210 template <typename ExclusionFiltersT = Aws::Vector<CacheReportFilter>>
211 void SetExclusionFilters(ExclusionFiltersT&& value) {
212 m_exclusionFiltersHasBeenSet = true;
213 m_exclusionFilters = std::forward<ExclusionFiltersT>(value);
214 }
215 template <typename ExclusionFiltersT = Aws::Vector<CacheReportFilter>>
216 CacheReportInfo& WithExclusionFilters(ExclusionFiltersT&& value) {
217 SetExclusionFilters(std::forward<ExclusionFiltersT>(value));
218 return *this;
219 }
220 template <typename ExclusionFiltersT = CacheReportFilter>
221 CacheReportInfo& AddExclusionFilters(ExclusionFiltersT&& value) {
222 m_exclusionFiltersHasBeenSet = true;
223 m_exclusionFilters.emplace_back(std::forward<ExclusionFiltersT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetReportName() const { return m_reportName; }
233 inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
234 template <typename ReportNameT = Aws::String>
235 void SetReportName(ReportNameT&& value) {
236 m_reportNameHasBeenSet = true;
237 m_reportName = std::forward<ReportNameT>(value);
238 }
239 template <typename ReportNameT = Aws::String>
240 CacheReportInfo& WithReportName(ReportNameT&& value) {
241 SetReportName(std::forward<ReportNameT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 template <typename TagsT = Aws::Vector<Tag>>
253 void SetTags(TagsT&& value) {
254 m_tagsHasBeenSet = true;
255 m_tags = std::forward<TagsT>(value);
256 }
257 template <typename TagsT = Aws::Vector<Tag>>
258 CacheReportInfo& WithTags(TagsT&& value) {
259 SetTags(std::forward<TagsT>(value));
260 return *this;
261 }
262 template <typename TagsT = Tag>
263 CacheReportInfo& AddTags(TagsT&& value) {
264 m_tagsHasBeenSet = true;
265 m_tags.emplace_back(std::forward<TagsT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_cacheReportARN;
271
273
274 int m_reportCompletionPercent{0};
275
276 Aws::Utils::DateTime m_endTime{};
277
278 Aws::String m_role;
279
280 Aws::String m_fileShareARN;
281
282 Aws::String m_locationARN;
283
284 Aws::Utils::DateTime m_startTime{};
285
286 Aws::Vector<CacheReportFilter> m_inclusionFilters;
287
288 Aws::Vector<CacheReportFilter> m_exclusionFilters;
289
290 Aws::String m_reportName;
291
292 Aws::Vector<Tag> m_tags;
293 bool m_cacheReportARNHasBeenSet = false;
294 bool m_cacheReportStatusHasBeenSet = false;
295 bool m_reportCompletionPercentHasBeenSet = false;
296 bool m_endTimeHasBeenSet = false;
297 bool m_roleHasBeenSet = false;
298 bool m_fileShareARNHasBeenSet = false;
299 bool m_locationARNHasBeenSet = false;
300 bool m_startTimeHasBeenSet = false;
301 bool m_inclusionFiltersHasBeenSet = false;
302 bool m_exclusionFiltersHasBeenSet = false;
303 bool m_reportNameHasBeenSet = false;
304 bool m_tagsHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace StorageGateway
309} // namespace Aws
CacheReportInfo & WithCacheReportStatus(CacheReportStatus value)
CacheReportInfo & WithEndTime(EndTimeT &&value)
AWS_STORAGEGATEWAY_API CacheReportInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
CacheReportInfo & WithCacheReportARN(CacheReportARNT &&value)
const Aws::String & GetFileShareARN() const
AWS_STORAGEGATEWAY_API CacheReportInfo(Aws::Utils::Json::JsonView jsonValue)
CacheReportInfo & WithRole(RoleT &&value)
void SetFileShareARN(FileShareARNT &&value)
CacheReportInfo & WithFileShareARN(FileShareARNT &&value)
CacheReportInfo & WithReportCompletionPercent(int value)
CacheReportInfo & AddInclusionFilters(InclusionFiltersT &&value)
void SetCacheReportARN(CacheReportARNT &&value)
const Aws::Utils::DateTime & GetEndTime() const
CacheReportInfo & WithTags(TagsT &&value)
AWS_STORAGEGATEWAY_API CacheReportInfo()=default
CacheReportInfo & WithStartTime(StartTimeT &&value)
CacheReportInfo & WithReportName(ReportNameT &&value)
CacheReportInfo & WithLocationARN(LocationARNT &&value)
CacheReportStatus GetCacheReportStatus() const
CacheReportInfo & WithExclusionFilters(ExclusionFiltersT &&value)
CacheReportInfo & AddExclusionFilters(ExclusionFiltersT &&value)
void SetExclusionFilters(ExclusionFiltersT &&value)
const Aws::Vector< CacheReportFilter > & GetInclusionFilters() const
const Aws::Utils::DateTime & GetStartTime() const
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetCacheReportARN() const
const Aws::Vector< CacheReportFilter > & GetExclusionFilters() const
CacheReportInfo & AddTags(TagsT &&value)
void SetCacheReportStatus(CacheReportStatus value)
void SetInclusionFilters(InclusionFiltersT &&value)
CacheReportInfo & WithInclusionFilters(InclusionFiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue