AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ApplicationVersionLifecycleConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
9#include <aws/elasticbeanstalk/model/MaxAgeRule.h>
10#include <aws/elasticbeanstalk/model/MaxCountRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticBeanstalk {
21namespace Model {
22
34 public:
35 AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig() = default;
36 AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
40 const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
48 inline const MaxCountRule& GetMaxCountRule() const { return m_maxCountRule; }
49 inline bool MaxCountRuleHasBeenSet() const { return m_maxCountRuleHasBeenSet; }
50 template <typename MaxCountRuleT = MaxCountRule>
51 void SetMaxCountRule(MaxCountRuleT&& value) {
52 m_maxCountRuleHasBeenSet = true;
53 m_maxCountRule = std::forward<MaxCountRuleT>(value);
54 }
55 template <typename MaxCountRuleT = MaxCountRule>
57 SetMaxCountRule(std::forward<MaxCountRuleT>(value));
58 return *this;
59 }
61
63
67 inline const MaxAgeRule& GetMaxAgeRule() const { return m_maxAgeRule; }
68 inline bool MaxAgeRuleHasBeenSet() const { return m_maxAgeRuleHasBeenSet; }
69 template <typename MaxAgeRuleT = MaxAgeRule>
70 void SetMaxAgeRule(MaxAgeRuleT&& value) {
71 m_maxAgeRuleHasBeenSet = true;
72 m_maxAgeRule = std::forward<MaxAgeRuleT>(value);
73 }
74 template <typename MaxAgeRuleT = MaxAgeRule>
76 SetMaxAgeRule(std::forward<MaxAgeRuleT>(value));
77 return *this;
78 }
80 private:
81 MaxCountRule m_maxCountRule;
82
83 MaxAgeRule m_maxAgeRule;
84 bool m_maxCountRuleHasBeenSet = false;
85 bool m_maxAgeRuleHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace ElasticBeanstalk
90} // namespace Aws
AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ApplicationVersionLifecycleConfig & WithMaxCountRule(MaxCountRuleT &&value)
ApplicationVersionLifecycleConfig & WithMaxAgeRule(MaxAgeRuleT &&value)
AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig()=default
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream