AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrefixLevelStorageMetrics.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/SelectionCriteria.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Control {
19namespace Model {
20
28 public:
29 AWS_S3CONTROL_API PrefixLevelStorageMetrics() = default;
30 AWS_S3CONTROL_API PrefixLevelStorageMetrics(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline bool GetIsEnabled() const { return m_isEnabled; }
40 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
41 inline void SetIsEnabled(bool value) {
42 m_isEnabledHasBeenSet = true;
43 m_isEnabled = value;
44 }
46 SetIsEnabled(value);
47 return *this;
48 }
50
52
53 inline const SelectionCriteria& GetSelectionCriteria() const { return m_selectionCriteria; }
54 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
55 template <typename SelectionCriteriaT = SelectionCriteria>
56 void SetSelectionCriteria(SelectionCriteriaT&& value) {
57 m_selectionCriteriaHasBeenSet = true;
58 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
59 }
60 template <typename SelectionCriteriaT = SelectionCriteria>
61 PrefixLevelStorageMetrics& WithSelectionCriteria(SelectionCriteriaT&& value) {
62 SetSelectionCriteria(std::forward<SelectionCriteriaT>(value));
63 return *this;
64 }
66 private:
67 bool m_isEnabled{false};
68
69 SelectionCriteria m_selectionCriteria;
70 bool m_isEnabledHasBeenSet = false;
71 bool m_selectionCriteriaHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace S3Control
76} // namespace Aws
PrefixLevelStorageMetrics & WithSelectionCriteria(SelectionCriteriaT &&value)
PrefixLevelStorageMetrics & WithIsEnabled(bool value)
AWS_S3CONTROL_API PrefixLevelStorageMetrics & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API PrefixLevelStorageMetrics(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API PrefixLevelStorageMetrics()=default