AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AccountLevel.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/ActivityMetrics.h>
9#include <aws/s3control/model/AdvancedCostOptimizationMetrics.h>
10#include <aws/s3control/model/AdvancedDataProtectionMetrics.h>
11#include <aws/s3control/model/AdvancedPerformanceMetrics.h>
12#include <aws/s3control/model/BucketLevel.h>
13#include <aws/s3control/model/DetailedStatusCodesMetrics.h>
14#include <aws/s3control/model/StorageLensGroupLevel.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace S3Control {
25namespace Model {
26
42 public:
43 AWS_S3CONTROL_API AccountLevel() = default;
44 AWS_S3CONTROL_API AccountLevel(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_S3CONTROL_API AccountLevel& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48
50
53 inline const ActivityMetrics& GetActivityMetrics() const { return m_activityMetrics; }
54 inline bool ActivityMetricsHasBeenSet() const { return m_activityMetricsHasBeenSet; }
55 template <typename ActivityMetricsT = ActivityMetrics>
56 void SetActivityMetrics(ActivityMetricsT&& value) {
57 m_activityMetricsHasBeenSet = true;
58 m_activityMetrics = std::forward<ActivityMetricsT>(value);
59 }
60 template <typename ActivityMetricsT = ActivityMetrics>
61 AccountLevel& WithActivityMetrics(ActivityMetricsT&& value) {
62 SetActivityMetrics(std::forward<ActivityMetricsT>(value));
63 return *this;
64 }
66
68
71 inline const BucketLevel& GetBucketLevel() const { return m_bucketLevel; }
72 inline bool BucketLevelHasBeenSet() const { return m_bucketLevelHasBeenSet; }
73 template <typename BucketLevelT = BucketLevel>
74 void SetBucketLevel(BucketLevelT&& value) {
75 m_bucketLevelHasBeenSet = true;
76 m_bucketLevel = std::forward<BucketLevelT>(value);
77 }
78 template <typename BucketLevelT = BucketLevel>
79 AccountLevel& WithBucketLevel(BucketLevelT&& value) {
80 SetBucketLevel(std::forward<BucketLevelT>(value));
81 return *this;
82 }
84
86
90 inline const AdvancedCostOptimizationMetrics& GetAdvancedCostOptimizationMetrics() const { return m_advancedCostOptimizationMetrics; }
91 inline bool AdvancedCostOptimizationMetricsHasBeenSet() const { return m_advancedCostOptimizationMetricsHasBeenSet; }
92 template <typename AdvancedCostOptimizationMetricsT = AdvancedCostOptimizationMetrics>
93 void SetAdvancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsT&& value) {
94 m_advancedCostOptimizationMetricsHasBeenSet = true;
95 m_advancedCostOptimizationMetrics = std::forward<AdvancedCostOptimizationMetricsT>(value);
96 }
97 template <typename AdvancedCostOptimizationMetricsT = AdvancedCostOptimizationMetrics>
98 AccountLevel& WithAdvancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsT&& value) {
99 SetAdvancedCostOptimizationMetrics(std::forward<AdvancedCostOptimizationMetricsT>(value));
100 return *this;
101 }
103
105
108 inline const AdvancedDataProtectionMetrics& GetAdvancedDataProtectionMetrics() const { return m_advancedDataProtectionMetrics; }
109 inline bool AdvancedDataProtectionMetricsHasBeenSet() const { return m_advancedDataProtectionMetricsHasBeenSet; }
110 template <typename AdvancedDataProtectionMetricsT = AdvancedDataProtectionMetrics>
111 void SetAdvancedDataProtectionMetrics(AdvancedDataProtectionMetricsT&& value) {
112 m_advancedDataProtectionMetricsHasBeenSet = true;
113 m_advancedDataProtectionMetrics = std::forward<AdvancedDataProtectionMetricsT>(value);
114 }
115 template <typename AdvancedDataProtectionMetricsT = AdvancedDataProtectionMetrics>
116 AccountLevel& WithAdvancedDataProtectionMetrics(AdvancedDataProtectionMetricsT&& value) {
117 SetAdvancedDataProtectionMetrics(std::forward<AdvancedDataProtectionMetricsT>(value));
118 return *this;
119 }
121
123
126 inline const DetailedStatusCodesMetrics& GetDetailedStatusCodesMetrics() const { return m_detailedStatusCodesMetrics; }
127 inline bool DetailedStatusCodesMetricsHasBeenSet() const { return m_detailedStatusCodesMetricsHasBeenSet; }
128 template <typename DetailedStatusCodesMetricsT = DetailedStatusCodesMetrics>
129 void SetDetailedStatusCodesMetrics(DetailedStatusCodesMetricsT&& value) {
130 m_detailedStatusCodesMetricsHasBeenSet = true;
131 m_detailedStatusCodesMetrics = std::forward<DetailedStatusCodesMetricsT>(value);
132 }
133 template <typename DetailedStatusCodesMetricsT = DetailedStatusCodesMetrics>
134 AccountLevel& WithDetailedStatusCodesMetrics(DetailedStatusCodesMetricsT&& value) {
135 SetDetailedStatusCodesMetrics(std::forward<DetailedStatusCodesMetricsT>(value));
136 return *this;
137 }
139
141
144 inline const AdvancedPerformanceMetrics& GetAdvancedPerformanceMetrics() const { return m_advancedPerformanceMetrics; }
145 inline bool AdvancedPerformanceMetricsHasBeenSet() const { return m_advancedPerformanceMetricsHasBeenSet; }
146 template <typename AdvancedPerformanceMetricsT = AdvancedPerformanceMetrics>
147 void SetAdvancedPerformanceMetrics(AdvancedPerformanceMetricsT&& value) {
148 m_advancedPerformanceMetricsHasBeenSet = true;
149 m_advancedPerformanceMetrics = std::forward<AdvancedPerformanceMetricsT>(value);
150 }
151 template <typename AdvancedPerformanceMetricsT = AdvancedPerformanceMetrics>
152 AccountLevel& WithAdvancedPerformanceMetrics(AdvancedPerformanceMetricsT&& value) {
153 SetAdvancedPerformanceMetrics(std::forward<AdvancedPerformanceMetricsT>(value));
154 return *this;
155 }
157
159
162 inline const StorageLensGroupLevel& GetStorageLensGroupLevel() const { return m_storageLensGroupLevel; }
163 inline bool StorageLensGroupLevelHasBeenSet() const { return m_storageLensGroupLevelHasBeenSet; }
164 template <typename StorageLensGroupLevelT = StorageLensGroupLevel>
165 void SetStorageLensGroupLevel(StorageLensGroupLevelT&& value) {
166 m_storageLensGroupLevelHasBeenSet = true;
167 m_storageLensGroupLevel = std::forward<StorageLensGroupLevelT>(value);
168 }
169 template <typename StorageLensGroupLevelT = StorageLensGroupLevel>
170 AccountLevel& WithStorageLensGroupLevel(StorageLensGroupLevelT&& value) {
171 SetStorageLensGroupLevel(std::forward<StorageLensGroupLevelT>(value));
172 return *this;
173 }
175 private:
176 ActivityMetrics m_activityMetrics;
177
178 BucketLevel m_bucketLevel;
179
180 AdvancedCostOptimizationMetrics m_advancedCostOptimizationMetrics;
181
182 AdvancedDataProtectionMetrics m_advancedDataProtectionMetrics;
183
184 DetailedStatusCodesMetrics m_detailedStatusCodesMetrics;
185
186 AdvancedPerformanceMetrics m_advancedPerformanceMetrics;
187
188 StorageLensGroupLevel m_storageLensGroupLevel;
189 bool m_activityMetricsHasBeenSet = false;
190 bool m_bucketLevelHasBeenSet = false;
191 bool m_advancedCostOptimizationMetricsHasBeenSet = false;
192 bool m_advancedDataProtectionMetricsHasBeenSet = false;
193 bool m_detailedStatusCodesMetricsHasBeenSet = false;
194 bool m_advancedPerformanceMetricsHasBeenSet = false;
195 bool m_storageLensGroupLevelHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace S3Control
200} // namespace Aws
AccountLevel & WithAdvancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsT &&value)
const AdvancedCostOptimizationMetrics & GetAdvancedCostOptimizationMetrics() const
void SetStorageLensGroupLevel(StorageLensGroupLevelT &&value)
void SetAdvancedPerformanceMetrics(AdvancedPerformanceMetricsT &&value)
const BucketLevel & GetBucketLevel() const
void SetDetailedStatusCodesMetrics(DetailedStatusCodesMetricsT &&value)
void SetAdvancedDataProtectionMetrics(AdvancedDataProtectionMetricsT &&value)
AccountLevel & WithStorageLensGroupLevel(StorageLensGroupLevelT &&value)
bool AdvancedCostOptimizationMetricsHasBeenSet() const
void SetAdvancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsT &&value)
AccountLevel & WithAdvancedDataProtectionMetrics(AdvancedDataProtectionMetricsT &&value)
void SetBucketLevel(BucketLevelT &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AccountLevel & WithActivityMetrics(ActivityMetricsT &&value)
const DetailedStatusCodesMetrics & GetDetailedStatusCodesMetrics() const
const AdvancedPerformanceMetrics & GetAdvancedPerformanceMetrics() const
bool AdvancedDataProtectionMetricsHasBeenSet() const
AWS_S3CONTROL_API AccountLevel()=default
AccountLevel & WithBucketLevel(BucketLevelT &&value)
const StorageLensGroupLevel & GetStorageLensGroupLevel() const
const AdvancedDataProtectionMetrics & GetAdvancedDataProtectionMetrics() const
AccountLevel & WithDetailedStatusCodesMetrics(DetailedStatusCodesMetricsT &&value)
void SetActivityMetrics(ActivityMetricsT &&value)
AWS_S3CONTROL_API AccountLevel & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountLevel & WithAdvancedPerformanceMetrics(AdvancedPerformanceMetricsT &&value)
const ActivityMetrics & GetActivityMetrics() const
AWS_S3CONTROL_API AccountLevel(const Aws::Utils::Xml::XmlNode &xmlNode)