AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MaxCountRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace ElasticBeanstalk {
17namespace Model {
18
26 public:
27 AWS_ELASTICBEANSTALK_API MaxCountRule() = default;
28 AWS_ELASTICBEANSTALK_API MaxCountRule(const Aws::Utils::Xml::XmlNode& xmlNode);
29 AWS_ELASTICBEANSTALK_API MaxCountRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
30
31 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
32 const char* locationValue) const;
33 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
34
36
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
46 inline MaxCountRule& WithEnabled(bool value) {
47 SetEnabled(value);
48 return *this;
49 }
51
53
56 inline int GetMaxCount() const { return m_maxCount; }
57 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
58 inline void SetMaxCount(int value) {
59 m_maxCountHasBeenSet = true;
60 m_maxCount = value;
61 }
62 inline MaxCountRule& WithMaxCount(int value) {
63 SetMaxCount(value);
64 return *this;
65 }
67
69
73 inline bool GetDeleteSourceFromS3() const { return m_deleteSourceFromS3; }
74 inline bool DeleteSourceFromS3HasBeenSet() const { return m_deleteSourceFromS3HasBeenSet; }
75 inline void SetDeleteSourceFromS3(bool value) {
76 m_deleteSourceFromS3HasBeenSet = true;
77 m_deleteSourceFromS3 = value;
78 }
81 return *this;
82 }
84 private:
85 bool m_enabled{false};
86
87 int m_maxCount{0};
88
89 bool m_deleteSourceFromS3{false};
90 bool m_enabledHasBeenSet = false;
91 bool m_maxCountHasBeenSet = false;
92 bool m_deleteSourceFromS3HasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace ElasticBeanstalk
97} // namespace Aws
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MaxCountRule & WithEnabled(bool value)
MaxCountRule & WithMaxCount(int value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API MaxCountRule()=default
AWS_ELASTICBEANSTALK_API MaxCountRule(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API MaxCountRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MaxCountRule & WithDeleteSourceFromS3(bool value)
std::basic_ostream< char, std::char_traits< char > > OStream