AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SelectionCriteria.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.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
27 public:
28 AWS_S3CONTROL_API SelectionCriteria() = default;
29 AWS_S3CONTROL_API SelectionCriteria(const Aws::Utils::Xml::XmlNode& xmlNode);
30 AWS_S3CONTROL_API SelectionCriteria& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
31
32 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
33
35
38 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
39 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
40 template <typename DelimiterT = Aws::String>
41 void SetDelimiter(DelimiterT&& value) {
42 m_delimiterHasBeenSet = true;
43 m_delimiter = std::forward<DelimiterT>(value);
44 }
45 template <typename DelimiterT = Aws::String>
46 SelectionCriteria& WithDelimiter(DelimiterT&& value) {
47 SetDelimiter(std::forward<DelimiterT>(value));
48 return *this;
49 }
51
53
56 inline int GetMaxDepth() const { return m_maxDepth; }
57 inline bool MaxDepthHasBeenSet() const { return m_maxDepthHasBeenSet; }
58 inline void SetMaxDepth(int value) {
59 m_maxDepthHasBeenSet = true;
60 m_maxDepth = value;
61 }
62 inline SelectionCriteria& WithMaxDepth(int value) {
63 SetMaxDepth(value);
64 return *this;
65 }
67
69
74 inline double GetMinStorageBytesPercentage() const { return m_minStorageBytesPercentage; }
75 inline bool MinStorageBytesPercentageHasBeenSet() const { return m_minStorageBytesPercentageHasBeenSet; }
76 inline void SetMinStorageBytesPercentage(double value) {
77 m_minStorageBytesPercentageHasBeenSet = true;
78 m_minStorageBytesPercentage = value;
79 }
82 return *this;
83 }
85 private:
86 Aws::String m_delimiter;
87
88 int m_maxDepth{0};
89
90 double m_minStorageBytesPercentage{0.0};
91 bool m_delimiterHasBeenSet = false;
92 bool m_maxDepthHasBeenSet = false;
93 bool m_minStorageBytesPercentageHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace S3Control
98} // namespace Aws
AWS_S3CONTROL_API SelectionCriteria(const Aws::Utils::Xml::XmlNode &xmlNode)
SelectionCriteria & WithDelimiter(DelimiterT &&value)
AWS_S3CONTROL_API SelectionCriteria & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDelimiter() const
SelectionCriteria & WithMinStorageBytesPercentage(double value)
AWS_S3CONTROL_API SelectionCriteria()=default
SelectionCriteria & WithMaxDepth(int value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String