AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
EnvironmentResourceDescription.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#include <aws/elasticbeanstalk/model/AutoScalingGroup.h>
12#include <aws/elasticbeanstalk/model/Cluster.h>
13#include <aws/elasticbeanstalk/model/Instance.h>
14#include <aws/elasticbeanstalk/model/LaunchConfiguration.h>
15#include <aws/elasticbeanstalk/model/LaunchTemplate.h>
16#include <aws/elasticbeanstalk/model/LoadBalancer.h>
17#include <aws/elasticbeanstalk/model/Queue.h>
18#include <aws/elasticbeanstalk/model/Trigger.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Xml {
25class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace ElasticBeanstalk {
29namespace Model {
30
38 public:
39 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription() = default;
40 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
44 const char* locationValue) const;
45 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
48
51 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
52 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
53 template <typename EnvironmentNameT = Aws::String>
54 void SetEnvironmentName(EnvironmentNameT&& value) {
55 m_environmentNameHasBeenSet = true;
56 m_environmentName = std::forward<EnvironmentNameT>(value);
57 }
58 template <typename EnvironmentNameT = Aws::String>
60 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Vector<AutoScalingGroup>& GetAutoScalingGroups() const { return m_autoScalingGroups; }
70 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
71 template <typename AutoScalingGroupsT = Aws::Vector<AutoScalingGroup>>
72 void SetAutoScalingGroups(AutoScalingGroupsT&& value) {
73 m_autoScalingGroupsHasBeenSet = true;
74 m_autoScalingGroups = std::forward<AutoScalingGroupsT>(value);
75 }
76 template <typename AutoScalingGroupsT = Aws::Vector<AutoScalingGroup>>
78 SetAutoScalingGroups(std::forward<AutoScalingGroupsT>(value));
79 return *this;
80 }
81 template <typename AutoScalingGroupsT = AutoScalingGroup>
83 m_autoScalingGroupsHasBeenSet = true;
84 m_autoScalingGroups.emplace_back(std::forward<AutoScalingGroupsT>(value));
85 return *this;
86 }
88
90
94 inline const Cluster& GetCluster() const { return m_cluster; }
95 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
96 template <typename ClusterT = Cluster>
97 void SetCluster(ClusterT&& value) {
98 m_clusterHasBeenSet = true;
99 m_cluster = std::forward<ClusterT>(value);
100 }
101 template <typename ClusterT = Cluster>
103 SetCluster(std::forward<ClusterT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Instance>& GetInstances() const { return m_instances; }
113 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
114 template <typename InstancesT = Aws::Vector<Instance>>
115 void SetInstances(InstancesT&& value) {
116 m_instancesHasBeenSet = true;
117 m_instances = std::forward<InstancesT>(value);
118 }
119 template <typename InstancesT = Aws::Vector<Instance>>
121 SetInstances(std::forward<InstancesT>(value));
122 return *this;
123 }
124 template <typename InstancesT = Instance>
126 m_instancesHasBeenSet = true;
127 m_instances.emplace_back(std::forward<InstancesT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<LaunchConfiguration>& GetLaunchConfigurations() const { return m_launchConfigurations; }
137 inline bool LaunchConfigurationsHasBeenSet() const { return m_launchConfigurationsHasBeenSet; }
138 template <typename LaunchConfigurationsT = Aws::Vector<LaunchConfiguration>>
139 void SetLaunchConfigurations(LaunchConfigurationsT&& value) {
140 m_launchConfigurationsHasBeenSet = true;
141 m_launchConfigurations = std::forward<LaunchConfigurationsT>(value);
142 }
143 template <typename LaunchConfigurationsT = Aws::Vector<LaunchConfiguration>>
145 SetLaunchConfigurations(std::forward<LaunchConfigurationsT>(value));
146 return *this;
147 }
148 template <typename LaunchConfigurationsT = LaunchConfiguration>
150 m_launchConfigurationsHasBeenSet = true;
151 m_launchConfigurations.emplace_back(std::forward<LaunchConfigurationsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Vector<LaunchTemplate>& GetLaunchTemplates() const { return m_launchTemplates; }
161 inline bool LaunchTemplatesHasBeenSet() const { return m_launchTemplatesHasBeenSet; }
162 template <typename LaunchTemplatesT = Aws::Vector<LaunchTemplate>>
163 void SetLaunchTemplates(LaunchTemplatesT&& value) {
164 m_launchTemplatesHasBeenSet = true;
165 m_launchTemplates = std::forward<LaunchTemplatesT>(value);
166 }
167 template <typename LaunchTemplatesT = Aws::Vector<LaunchTemplate>>
169 SetLaunchTemplates(std::forward<LaunchTemplatesT>(value));
170 return *this;
171 }
172 template <typename LaunchTemplatesT = LaunchTemplate>
174 m_launchTemplatesHasBeenSet = true;
175 m_launchTemplates.emplace_back(std::forward<LaunchTemplatesT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
185 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
186 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
187 void SetLoadBalancers(LoadBalancersT&& value) {
188 m_loadBalancersHasBeenSet = true;
189 m_loadBalancers = std::forward<LoadBalancersT>(value);
190 }
191 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
193 SetLoadBalancers(std::forward<LoadBalancersT>(value));
194 return *this;
195 }
196 template <typename LoadBalancersT = LoadBalancer>
198 m_loadBalancersHasBeenSet = true;
199 m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<Trigger>& GetTriggers() const { return m_triggers; }
209 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
210 template <typename TriggersT = Aws::Vector<Trigger>>
211 void SetTriggers(TriggersT&& value) {
212 m_triggersHasBeenSet = true;
213 m_triggers = std::forward<TriggersT>(value);
214 }
215 template <typename TriggersT = Aws::Vector<Trigger>>
217 SetTriggers(std::forward<TriggersT>(value));
218 return *this;
219 }
220 template <typename TriggersT = Trigger>
222 m_triggersHasBeenSet = true;
223 m_triggers.emplace_back(std::forward<TriggersT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Vector<Queue>& GetQueues() const { return m_queues; }
233 inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
234 template <typename QueuesT = Aws::Vector<Queue>>
235 void SetQueues(QueuesT&& value) {
236 m_queuesHasBeenSet = true;
237 m_queues = std::forward<QueuesT>(value);
238 }
239 template <typename QueuesT = Aws::Vector<Queue>>
241 SetQueues(std::forward<QueuesT>(value));
242 return *this;
243 }
244 template <typename QueuesT = Queue>
246 m_queuesHasBeenSet = true;
247 m_queues.emplace_back(std::forward<QueuesT>(value));
248 return *this;
249 }
251 private:
252 Aws::String m_environmentName;
253
254 Aws::Vector<AutoScalingGroup> m_autoScalingGroups;
255
256 Cluster m_cluster;
257
258 Aws::Vector<Instance> m_instances;
259
260 Aws::Vector<LaunchConfiguration> m_launchConfigurations;
261
262 Aws::Vector<LaunchTemplate> m_launchTemplates;
263
264 Aws::Vector<LoadBalancer> m_loadBalancers;
265
266 Aws::Vector<Trigger> m_triggers;
267
268 Aws::Vector<Queue> m_queues;
269 bool m_environmentNameHasBeenSet = false;
270 bool m_autoScalingGroupsHasBeenSet = false;
271 bool m_clusterHasBeenSet = false;
272 bool m_instancesHasBeenSet = false;
273 bool m_launchConfigurationsHasBeenSet = false;
274 bool m_launchTemplatesHasBeenSet = false;
275 bool m_loadBalancersHasBeenSet = false;
276 bool m_triggersHasBeenSet = false;
277 bool m_queuesHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace ElasticBeanstalk
282} // namespace Aws
EnvironmentResourceDescription & WithLaunchConfigurations(LaunchConfigurationsT &&value)
EnvironmentResourceDescription & AddInstances(InstancesT &&value)
EnvironmentResourceDescription & WithAutoScalingGroups(AutoScalingGroupsT &&value)
EnvironmentResourceDescription & AddLoadBalancers(LoadBalancersT &&value)
EnvironmentResourceDescription & WithCluster(ClusterT &&value)
EnvironmentResourceDescription & WithInstances(InstancesT &&value)
EnvironmentResourceDescription & WithLoadBalancers(LoadBalancersT &&value)
EnvironmentResourceDescription & AddLaunchConfigurations(LaunchConfigurationsT &&value)
EnvironmentResourceDescription & WithTriggers(TriggersT &&value)
const Aws::Vector< AutoScalingGroup > & GetAutoScalingGroups() const
EnvironmentResourceDescription & AddLaunchTemplates(LaunchTemplatesT &&value)
EnvironmentResourceDescription & AddAutoScalingGroups(AutoScalingGroupsT &&value)
EnvironmentResourceDescription & WithLaunchTemplates(LaunchTemplatesT &&value)
AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EnvironmentResourceDescription & AddTriggers(TriggersT &&value)
EnvironmentResourceDescription & WithEnvironmentName(EnvironmentNameT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< LaunchConfiguration > & GetLaunchConfigurations() const
AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription()=default
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