AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/Instance.h>
13#include <aws/elasticbeanstalk/model/LaunchConfiguration.h>
14#include <aws/elasticbeanstalk/model/LaunchTemplate.h>
15#include <aws/elasticbeanstalk/model/LoadBalancer.h>
16#include <aws/elasticbeanstalk/model/Queue.h>
17#include <aws/elasticbeanstalk/model/Trigger.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Xml {
24class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace ElasticBeanstalk {
28namespace Model {
29
37 public:
38 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription() = default;
39 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
43 const char* locationValue) const;
44 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
47
50 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
51 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
52 template <typename EnvironmentNameT = Aws::String>
53 void SetEnvironmentName(EnvironmentNameT&& value) {
54 m_environmentNameHasBeenSet = true;
55 m_environmentName = std::forward<EnvironmentNameT>(value);
56 }
57 template <typename EnvironmentNameT = Aws::String>
59 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<AutoScalingGroup>& GetAutoScalingGroups() const { return m_autoScalingGroups; }
69 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
70 template <typename AutoScalingGroupsT = Aws::Vector<AutoScalingGroup>>
71 void SetAutoScalingGroups(AutoScalingGroupsT&& value) {
72 m_autoScalingGroupsHasBeenSet = true;
73 m_autoScalingGroups = std::forward<AutoScalingGroupsT>(value);
74 }
75 template <typename AutoScalingGroupsT = Aws::Vector<AutoScalingGroup>>
77 SetAutoScalingGroups(std::forward<AutoScalingGroupsT>(value));
78 return *this;
79 }
80 template <typename AutoScalingGroupsT = AutoScalingGroup>
82 m_autoScalingGroupsHasBeenSet = true;
83 m_autoScalingGroups.emplace_back(std::forward<AutoScalingGroupsT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Instance>& GetInstances() const { return m_instances; }
93 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
94 template <typename InstancesT = Aws::Vector<Instance>>
95 void SetInstances(InstancesT&& value) {
96 m_instancesHasBeenSet = true;
97 m_instances = std::forward<InstancesT>(value);
98 }
99 template <typename InstancesT = Aws::Vector<Instance>>
101 SetInstances(std::forward<InstancesT>(value));
102 return *this;
103 }
104 template <typename InstancesT = Instance>
106 m_instancesHasBeenSet = true;
107 m_instances.emplace_back(std::forward<InstancesT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<LaunchConfiguration>& GetLaunchConfigurations() const { return m_launchConfigurations; }
117 inline bool LaunchConfigurationsHasBeenSet() const { return m_launchConfigurationsHasBeenSet; }
118 template <typename LaunchConfigurationsT = Aws::Vector<LaunchConfiguration>>
119 void SetLaunchConfigurations(LaunchConfigurationsT&& value) {
120 m_launchConfigurationsHasBeenSet = true;
121 m_launchConfigurations = std::forward<LaunchConfigurationsT>(value);
122 }
123 template <typename LaunchConfigurationsT = Aws::Vector<LaunchConfiguration>>
125 SetLaunchConfigurations(std::forward<LaunchConfigurationsT>(value));
126 return *this;
127 }
128 template <typename LaunchConfigurationsT = LaunchConfiguration>
130 m_launchConfigurationsHasBeenSet = true;
131 m_launchConfigurations.emplace_back(std::forward<LaunchConfigurationsT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<LaunchTemplate>& GetLaunchTemplates() const { return m_launchTemplates; }
141 inline bool LaunchTemplatesHasBeenSet() const { return m_launchTemplatesHasBeenSet; }
142 template <typename LaunchTemplatesT = Aws::Vector<LaunchTemplate>>
143 void SetLaunchTemplates(LaunchTemplatesT&& value) {
144 m_launchTemplatesHasBeenSet = true;
145 m_launchTemplates = std::forward<LaunchTemplatesT>(value);
146 }
147 template <typename LaunchTemplatesT = Aws::Vector<LaunchTemplate>>
149 SetLaunchTemplates(std::forward<LaunchTemplatesT>(value));
150 return *this;
151 }
152 template <typename LaunchTemplatesT = LaunchTemplate>
154 m_launchTemplatesHasBeenSet = true;
155 m_launchTemplates.emplace_back(std::forward<LaunchTemplatesT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
165 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
166 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
167 void SetLoadBalancers(LoadBalancersT&& value) {
168 m_loadBalancersHasBeenSet = true;
169 m_loadBalancers = std::forward<LoadBalancersT>(value);
170 }
171 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
173 SetLoadBalancers(std::forward<LoadBalancersT>(value));
174 return *this;
175 }
176 template <typename LoadBalancersT = LoadBalancer>
178 m_loadBalancersHasBeenSet = true;
179 m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Vector<Trigger>& GetTriggers() const { return m_triggers; }
189 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
190 template <typename TriggersT = Aws::Vector<Trigger>>
191 void SetTriggers(TriggersT&& value) {
192 m_triggersHasBeenSet = true;
193 m_triggers = std::forward<TriggersT>(value);
194 }
195 template <typename TriggersT = Aws::Vector<Trigger>>
197 SetTriggers(std::forward<TriggersT>(value));
198 return *this;
199 }
200 template <typename TriggersT = Trigger>
202 m_triggersHasBeenSet = true;
203 m_triggers.emplace_back(std::forward<TriggersT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Vector<Queue>& GetQueues() const { return m_queues; }
213 inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
214 template <typename QueuesT = Aws::Vector<Queue>>
215 void SetQueues(QueuesT&& value) {
216 m_queuesHasBeenSet = true;
217 m_queues = std::forward<QueuesT>(value);
218 }
219 template <typename QueuesT = Aws::Vector<Queue>>
221 SetQueues(std::forward<QueuesT>(value));
222 return *this;
223 }
224 template <typename QueuesT = Queue>
226 m_queuesHasBeenSet = true;
227 m_queues.emplace_back(std::forward<QueuesT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_environmentName;
233
234 Aws::Vector<AutoScalingGroup> m_autoScalingGroups;
235
236 Aws::Vector<Instance> m_instances;
237
238 Aws::Vector<LaunchConfiguration> m_launchConfigurations;
239
240 Aws::Vector<LaunchTemplate> m_launchTemplates;
241
242 Aws::Vector<LoadBalancer> m_loadBalancers;
243
244 Aws::Vector<Trigger> m_triggers;
245
246 Aws::Vector<Queue> m_queues;
247 bool m_environmentNameHasBeenSet = false;
248 bool m_autoScalingGroupsHasBeenSet = false;
249 bool m_instancesHasBeenSet = false;
250 bool m_launchConfigurationsHasBeenSet = false;
251 bool m_launchTemplatesHasBeenSet = false;
252 bool m_loadBalancersHasBeenSet = false;
253 bool m_triggersHasBeenSet = false;
254 bool m_queuesHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace ElasticBeanstalk
259} // namespace Aws
EnvironmentResourceDescription & WithLaunchConfigurations(LaunchConfigurationsT &&value)
EnvironmentResourceDescription & AddInstances(InstancesT &&value)
EnvironmentResourceDescription & WithAutoScalingGroups(AutoScalingGroupsT &&value)
EnvironmentResourceDescription & AddLoadBalancers(LoadBalancersT &&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