AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ApplicationResourceLifecycleConfig.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/model/ApplicationVersionLifecycleConfig.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
37 {
38 public:
39 AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig() = default;
40 AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
59 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
60 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
61 template<typename ServiceRoleT = Aws::String>
62 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
63 template<typename ServiceRoleT = Aws::String>
64 ApplicationResourceLifecycleConfig& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
66
68
71 inline const ApplicationVersionLifecycleConfig& GetVersionLifecycleConfig() const { return m_versionLifecycleConfig; }
72 inline bool VersionLifecycleConfigHasBeenSet() const { return m_versionLifecycleConfigHasBeenSet; }
73 template<typename VersionLifecycleConfigT = ApplicationVersionLifecycleConfig>
74 void SetVersionLifecycleConfig(VersionLifecycleConfigT&& value) { m_versionLifecycleConfigHasBeenSet = true; m_versionLifecycleConfig = std::forward<VersionLifecycleConfigT>(value); }
75 template<typename VersionLifecycleConfigT = ApplicationVersionLifecycleConfig>
76 ApplicationResourceLifecycleConfig& WithVersionLifecycleConfig(VersionLifecycleConfigT&& value) { SetVersionLifecycleConfig(std::forward<VersionLifecycleConfigT>(value)); return *this;}
78 private:
79
80 Aws::String m_serviceRole;
81 bool m_serviceRoleHasBeenSet = false;
82
83 ApplicationVersionLifecycleConfig m_versionLifecycleConfig;
84 bool m_versionLifecycleConfigHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace ElasticBeanstalk
89} // namespace Aws
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ApplicationResourceLifecycleConfig & WithServiceRole(ServiceRoleT &&value)
AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig()=default
AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ApplicationResourceLifecycleConfig & WithVersionLifecycleConfig(VersionLifecycleConfigT &&value)
AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream