AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApplicationVersionLifecycleConfig.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticbeanstalk/model/MaxCountRule.h>
10#include <aws/elasticbeanstalk/model/MaxAgeRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig();
41 AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
53 inline const MaxCountRule& GetMaxCountRule() const{ return m_maxCountRule; }
54 inline bool MaxCountRuleHasBeenSet() const { return m_maxCountRuleHasBeenSet; }
55 inline void SetMaxCountRule(const MaxCountRule& value) { m_maxCountRuleHasBeenSet = true; m_maxCountRule = value; }
56 inline void SetMaxCountRule(MaxCountRule&& value) { m_maxCountRuleHasBeenSet = true; m_maxCountRule = std::move(value); }
58 inline ApplicationVersionLifecycleConfig& WithMaxCountRule(MaxCountRule&& value) { SetMaxCountRule(std::move(value)); return *this;}
60
62
66 inline const MaxAgeRule& GetMaxAgeRule() const{ return m_maxAgeRule; }
67 inline bool MaxAgeRuleHasBeenSet() const { return m_maxAgeRuleHasBeenSet; }
68 inline void SetMaxAgeRule(const MaxAgeRule& value) { m_maxAgeRuleHasBeenSet = true; m_maxAgeRule = value; }
69 inline void SetMaxAgeRule(MaxAgeRule&& value) { m_maxAgeRuleHasBeenSet = true; m_maxAgeRule = std::move(value); }
70 inline ApplicationVersionLifecycleConfig& WithMaxAgeRule(const MaxAgeRule& value) { SetMaxAgeRule(value); return *this;}
71 inline ApplicationVersionLifecycleConfig& WithMaxAgeRule(MaxAgeRule&& value) { SetMaxAgeRule(std::move(value)); return *this;}
73 private:
74
75 MaxCountRule m_maxCountRule;
76 bool m_maxCountRuleHasBeenSet = false;
77
78 MaxAgeRule m_maxAgeRule;
79 bool m_maxAgeRuleHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ElasticBeanstalk
84} // namespace Aws
AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ApplicationVersionLifecycleConfig & WithMaxAgeRule(const MaxAgeRule &value)
ApplicationVersionLifecycleConfig & WithMaxCountRule(MaxCountRule &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ApplicationVersionLifecycleConfig & WithMaxAgeRule(MaxAgeRule &&value)
AWS_ELASTICBEANSTALK_API ApplicationVersionLifecycleConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
ApplicationVersionLifecycleConfig & WithMaxCountRule(const MaxCountRule &value)
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