AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ApplicationResourceLifecycleConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10#include <aws/elasticbeanstalk/model/ApplicationVersionLifecycleConfig.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
33 public:
34 AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig() = default;
35 AWS_ELASTICBEANSTALK_API ApplicationResourceLifecycleConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
39 const char* locationValue) const;
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
54 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
55 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
56 template <typename ServiceRoleT = Aws::String>
57 void SetServiceRole(ServiceRoleT&& value) {
58 m_serviceRoleHasBeenSet = true;
59 m_serviceRole = std::forward<ServiceRoleT>(value);
60 }
61 template <typename ServiceRoleT = Aws::String>
63 SetServiceRole(std::forward<ServiceRoleT>(value));
64 return *this;
65 }
67
69
72 inline const ApplicationVersionLifecycleConfig& GetVersionLifecycleConfig() const { return m_versionLifecycleConfig; }
73 inline bool VersionLifecycleConfigHasBeenSet() const { return m_versionLifecycleConfigHasBeenSet; }
74 template <typename VersionLifecycleConfigT = ApplicationVersionLifecycleConfig>
75 void SetVersionLifecycleConfig(VersionLifecycleConfigT&& value) {
76 m_versionLifecycleConfigHasBeenSet = true;
77 m_versionLifecycleConfig = std::forward<VersionLifecycleConfigT>(value);
78 }
79 template <typename VersionLifecycleConfigT = ApplicationVersionLifecycleConfig>
81 SetVersionLifecycleConfig(std::forward<VersionLifecycleConfigT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_serviceRole;
87
88 ApplicationVersionLifecycleConfig m_versionLifecycleConfig;
89 bool m_serviceRoleHasBeenSet = false;
90 bool m_versionLifecycleConfigHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ElasticBeanstalk
95} // 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