AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MaxAgeRule.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 MaxAgeRule() = default;
28 AWS_ELASTICBEANSTALK_API MaxAgeRule(const Aws::Utils::Xml::XmlNode& xmlNode);
29 AWS_ELASTICBEANSTALK_API MaxAgeRule& 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 MaxAgeRule& WithEnabled(bool value) {
47 SetEnabled(value);
48 return *this;
49 }
51
53
56 inline int GetMaxAgeInDays() const { return m_maxAgeInDays; }
57 inline bool MaxAgeInDaysHasBeenSet() const { return m_maxAgeInDaysHasBeenSet; }
58 inline void SetMaxAgeInDays(int value) {
59 m_maxAgeInDaysHasBeenSet = true;
60 m_maxAgeInDays = value;
61 }
62 inline MaxAgeRule& WithMaxAgeInDays(int value) {
63 SetMaxAgeInDays(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 }
79 inline MaxAgeRule& WithDeleteSourceFromS3(bool value) {
81 return *this;
82 }
84 private:
85 bool m_enabled{false};
86
87 int m_maxAgeInDays{0};
88
89 bool m_deleteSourceFromS3{false};
90 bool m_enabledHasBeenSet = false;
91 bool m_maxAgeInDaysHasBeenSet = false;
92 bool m_deleteSourceFromS3HasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace ElasticBeanstalk
97} // namespace Aws
MaxAgeRule & WithDeleteSourceFromS3(bool value)
Definition MaxAgeRule.h:79
MaxAgeRule & WithEnabled(bool value)
Definition MaxAgeRule.h:46
AWS_ELASTICBEANSTALK_API MaxAgeRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API MaxAgeRule()=default
MaxAgeRule & WithMaxAgeInDays(int value)
Definition MaxAgeRule.h:62
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API MaxAgeRule(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream