AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PlatformBranchSummary.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.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
29 public:
30 AWS_ELASTICBEANSTALK_API PlatformBranchSummary() = default;
31 AWS_ELASTICBEANSTALK_API PlatformBranchSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICBEANSTALK_API PlatformBranchSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetPlatformName() const { return m_platformName; }
43 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
44 template <typename PlatformNameT = Aws::String>
45 void SetPlatformName(PlatformNameT&& value) {
46 m_platformNameHasBeenSet = true;
47 m_platformName = std::forward<PlatformNameT>(value);
48 }
49 template <typename PlatformNameT = Aws::String>
50 PlatformBranchSummary& WithPlatformName(PlatformNameT&& value) {
51 SetPlatformName(std::forward<PlatformNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetBranchName() const { return m_branchName; }
61 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
62 template <typename BranchNameT = Aws::String>
63 void SetBranchName(BranchNameT&& value) {
64 m_branchNameHasBeenSet = true;
65 m_branchName = std::forward<BranchNameT>(value);
66 }
67 template <typename BranchNameT = Aws::String>
68 PlatformBranchSummary& WithBranchName(BranchNameT&& value) {
69 SetBranchName(std::forward<BranchNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetLifecycleState() const { return m_lifecycleState; }
81 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
82 template <typename LifecycleStateT = Aws::String>
83 void SetLifecycleState(LifecycleStateT&& value) {
84 m_lifecycleStateHasBeenSet = true;
85 m_lifecycleState = std::forward<LifecycleStateT>(value);
86 }
87 template <typename LifecycleStateT = Aws::String>
88 PlatformBranchSummary& WithLifecycleState(LifecycleStateT&& value) {
89 SetLifecycleState(std::forward<LifecycleStateT>(value));
90 return *this;
91 }
93
95
102 inline int GetBranchOrder() const { return m_branchOrder; }
103 inline bool BranchOrderHasBeenSet() const { return m_branchOrderHasBeenSet; }
104 inline void SetBranchOrder(int value) {
105 m_branchOrderHasBeenSet = true;
106 m_branchOrder = value;
107 }
109 SetBranchOrder(value);
110 return *this;
111 }
113
115
120 inline const Aws::Vector<Aws::String>& GetSupportedTierList() const { return m_supportedTierList; }
121 inline bool SupportedTierListHasBeenSet() const { return m_supportedTierListHasBeenSet; }
122 template <typename SupportedTierListT = Aws::Vector<Aws::String>>
123 void SetSupportedTierList(SupportedTierListT&& value) {
124 m_supportedTierListHasBeenSet = true;
125 m_supportedTierList = std::forward<SupportedTierListT>(value);
126 }
127 template <typename SupportedTierListT = Aws::Vector<Aws::String>>
128 PlatformBranchSummary& WithSupportedTierList(SupportedTierListT&& value) {
129 SetSupportedTierList(std::forward<SupportedTierListT>(value));
130 return *this;
131 }
132 template <typename SupportedTierListT = Aws::String>
133 PlatformBranchSummary& AddSupportedTierList(SupportedTierListT&& value) {
134 m_supportedTierListHasBeenSet = true;
135 m_supportedTierList.emplace_back(std::forward<SupportedTierListT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_platformName;
141
142 Aws::String m_branchName;
143
144 Aws::String m_lifecycleState;
145
146 int m_branchOrder{0};
147
148 Aws::Vector<Aws::String> m_supportedTierList;
149 bool m_platformNameHasBeenSet = false;
150 bool m_branchNameHasBeenSet = false;
151 bool m_lifecycleStateHasBeenSet = false;
152 bool m_branchOrderHasBeenSet = false;
153 bool m_supportedTierListHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace ElasticBeanstalk
158} // namespace Aws
const Aws::Vector< Aws::String > & GetSupportedTierList() const
PlatformBranchSummary & WithPlatformName(PlatformNameT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PlatformBranchSummary & WithSupportedTierList(SupportedTierListT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PlatformBranchSummary & AddSupportedTierList(SupportedTierListT &&value)
AWS_ELASTICBEANSTALK_API PlatformBranchSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PlatformBranchSummary & WithBranchName(BranchNameT &&value)
AWS_ELASTICBEANSTALK_API PlatformBranchSummary()=default
AWS_ELASTICBEANSTALK_API PlatformBranchSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
PlatformBranchSummary & WithLifecycleState(LifecycleStateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream