AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CacheReportInfo.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/model/CacheReportStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/storagegateway/model/CacheReportFilter.h>
13#include <aws/storagegateway/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace StorageGateway
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_STORAGEGATEWAY_API CacheReportInfo() = default;
42 AWS_STORAGEGATEWAY_API CacheReportInfo(Aws::Utils::Json::JsonView jsonValue);
43 AWS_STORAGEGATEWAY_API CacheReportInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetCacheReportARN() const { return m_cacheReportARN; }
52 inline bool CacheReportARNHasBeenSet() const { return m_cacheReportARNHasBeenSet; }
53 template<typename CacheReportARNT = Aws::String>
54 void SetCacheReportARN(CacheReportARNT&& value) { m_cacheReportARNHasBeenSet = true; m_cacheReportARN = std::forward<CacheReportARNT>(value); }
55 template<typename CacheReportARNT = Aws::String>
56 CacheReportInfo& WithCacheReportARN(CacheReportARNT&& value) { SetCacheReportARN(std::forward<CacheReportARNT>(value)); return *this;}
58
60
63 inline CacheReportStatus GetCacheReportStatus() const { return m_cacheReportStatus; }
64 inline bool CacheReportStatusHasBeenSet() const { return m_cacheReportStatusHasBeenSet; }
65 inline void SetCacheReportStatus(CacheReportStatus value) { m_cacheReportStatusHasBeenSet = true; m_cacheReportStatus = value; }
68
70
74 inline int GetReportCompletionPercent() const { return m_reportCompletionPercent; }
75 inline bool ReportCompletionPercentHasBeenSet() const { return m_reportCompletionPercentHasBeenSet; }
76 inline void SetReportCompletionPercent(int value) { m_reportCompletionPercentHasBeenSet = true; m_reportCompletionPercent = value; }
79
81
84 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
85 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
88 template<typename EndTimeT = Aws::Utils::DateTime>
89 CacheReportInfo& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
91
93
94 inline const Aws::String& GetRole() const { return m_role; }
95 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
96 template<typename RoleT = Aws::String>
97 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
98 template<typename RoleT = Aws::String>
99 CacheReportInfo& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
101
103
104 inline const Aws::String& GetFileShareARN() const { return m_fileShareARN; }
105 inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; }
106 template<typename FileShareARNT = Aws::String>
107 void SetFileShareARN(FileShareARNT&& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = std::forward<FileShareARNT>(value); }
108 template<typename FileShareARNT = Aws::String>
109 CacheReportInfo& WithFileShareARN(FileShareARNT&& value) { SetFileShareARN(std::forward<FileShareARNT>(value)); return *this;}
111
113
116 inline const Aws::String& GetLocationARN() const { return m_locationARN; }
117 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
118 template<typename LocationARNT = Aws::String>
119 void SetLocationARN(LocationARNT&& value) { m_locationARNHasBeenSet = true; m_locationARN = std::forward<LocationARNT>(value); }
120 template<typename LocationARNT = Aws::String>
121 CacheReportInfo& WithLocationARN(LocationARNT&& value) { SetLocationARN(std::forward<LocationARNT>(value)); return *this;}
123
125
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 CacheReportInfo& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
135
137
141 inline const Aws::Vector<CacheReportFilter>& GetInclusionFilters() const { return m_inclusionFilters; }
142 inline bool InclusionFiltersHasBeenSet() const { return m_inclusionFiltersHasBeenSet; }
143 template<typename InclusionFiltersT = Aws::Vector<CacheReportFilter>>
144 void SetInclusionFilters(InclusionFiltersT&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = std::forward<InclusionFiltersT>(value); }
145 template<typename InclusionFiltersT = Aws::Vector<CacheReportFilter>>
146 CacheReportInfo& WithInclusionFilters(InclusionFiltersT&& value) { SetInclusionFilters(std::forward<InclusionFiltersT>(value)); return *this;}
147 template<typename InclusionFiltersT = CacheReportFilter>
148 CacheReportInfo& AddInclusionFilters(InclusionFiltersT&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters.emplace_back(std::forward<InclusionFiltersT>(value)); return *this; }
150
152
156 inline const Aws::Vector<CacheReportFilter>& GetExclusionFilters() const { return m_exclusionFilters; }
157 inline bool ExclusionFiltersHasBeenSet() const { return m_exclusionFiltersHasBeenSet; }
158 template<typename ExclusionFiltersT = Aws::Vector<CacheReportFilter>>
159 void SetExclusionFilters(ExclusionFiltersT&& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters = std::forward<ExclusionFiltersT>(value); }
160 template<typename ExclusionFiltersT = Aws::Vector<CacheReportFilter>>
161 CacheReportInfo& WithExclusionFilters(ExclusionFiltersT&& value) { SetExclusionFilters(std::forward<ExclusionFiltersT>(value)); return *this;}
162 template<typename ExclusionFiltersT = CacheReportFilter>
163 CacheReportInfo& AddExclusionFilters(ExclusionFiltersT&& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters.emplace_back(std::forward<ExclusionFiltersT>(value)); return *this; }
165
167
170 inline const Aws::String& GetReportName() const { return m_reportName; }
171 inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
172 template<typename ReportNameT = Aws::String>
173 void SetReportName(ReportNameT&& value) { m_reportNameHasBeenSet = true; m_reportName = std::forward<ReportNameT>(value); }
174 template<typename ReportNameT = Aws::String>
175 CacheReportInfo& WithReportName(ReportNameT&& value) { SetReportName(std::forward<ReportNameT>(value)); return *this;}
177
179
182 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template<typename TagsT = Aws::Vector<Tag>>
185 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
186 template<typename TagsT = Aws::Vector<Tag>>
187 CacheReportInfo& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
188 template<typename TagsT = Tag>
189 CacheReportInfo& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
191 private:
192
193 Aws::String m_cacheReportARN;
194 bool m_cacheReportARNHasBeenSet = false;
195
197 bool m_cacheReportStatusHasBeenSet = false;
198
199 int m_reportCompletionPercent{0};
200 bool m_reportCompletionPercentHasBeenSet = false;
201
202 Aws::Utils::DateTime m_endTime{};
203 bool m_endTimeHasBeenSet = false;
204
205 Aws::String m_role;
206 bool m_roleHasBeenSet = false;
207
208 Aws::String m_fileShareARN;
209 bool m_fileShareARNHasBeenSet = false;
210
211 Aws::String m_locationARN;
212 bool m_locationARNHasBeenSet = false;
213
214 Aws::Utils::DateTime m_startTime{};
215 bool m_startTimeHasBeenSet = false;
216
217 Aws::Vector<CacheReportFilter> m_inclusionFilters;
218 bool m_inclusionFiltersHasBeenSet = false;
219
220 Aws::Vector<CacheReportFilter> m_exclusionFilters;
221 bool m_exclusionFiltersHasBeenSet = false;
222
223 Aws::String m_reportName;
224 bool m_reportNameHasBeenSet = false;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_tagsHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace StorageGateway
232} // 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