AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentResourceDescription.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/core/utils/memory/stl/AWSVector.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/Trigger.h>
17#include <aws/elasticbeanstalk/model/Queue.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Xml
25{
26 class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace ElasticBeanstalk
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription();
44 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
56 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
57 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
58 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
59 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
61 inline EnvironmentResourceDescription& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
62 inline EnvironmentResourceDescription& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
64
66
69 inline const Aws::Vector<AutoScalingGroup>& GetAutoScalingGroups() const{ return m_autoScalingGroups; }
70 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
71 inline void SetAutoScalingGroups(const Aws::Vector<AutoScalingGroup>& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = value; }
72 inline void SetAutoScalingGroups(Aws::Vector<AutoScalingGroup>&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = std::move(value); }
75 inline EnvironmentResourceDescription& AddAutoScalingGroups(const AutoScalingGroup& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(value); return *this; }
76 inline EnvironmentResourceDescription& AddAutoScalingGroups(AutoScalingGroup&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.push_back(std::move(value)); return *this; }
78
80
83 inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
84 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
85 inline void SetInstances(const Aws::Vector<Instance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
86 inline void SetInstances(Aws::Vector<Instance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
88 inline EnvironmentResourceDescription& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
89 inline EnvironmentResourceDescription& AddInstances(const Instance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
90 inline EnvironmentResourceDescription& AddInstances(Instance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
92
94
97 inline const Aws::Vector<LaunchConfiguration>& GetLaunchConfigurations() const{ return m_launchConfigurations; }
98 inline bool LaunchConfigurationsHasBeenSet() const { return m_launchConfigurationsHasBeenSet; }
99 inline void SetLaunchConfigurations(const Aws::Vector<LaunchConfiguration>& value) { m_launchConfigurationsHasBeenSet = true; m_launchConfigurations = value; }
100 inline void SetLaunchConfigurations(Aws::Vector<LaunchConfiguration>&& value) { m_launchConfigurationsHasBeenSet = true; m_launchConfigurations = std::move(value); }
103 inline EnvironmentResourceDescription& AddLaunchConfigurations(const LaunchConfiguration& value) { m_launchConfigurationsHasBeenSet = true; m_launchConfigurations.push_back(value); return *this; }
104 inline EnvironmentResourceDescription& AddLaunchConfigurations(LaunchConfiguration&& value) { m_launchConfigurationsHasBeenSet = true; m_launchConfigurations.push_back(std::move(value)); return *this; }
106
108
111 inline const Aws::Vector<LaunchTemplate>& GetLaunchTemplates() const{ return m_launchTemplates; }
112 inline bool LaunchTemplatesHasBeenSet() const { return m_launchTemplatesHasBeenSet; }
113 inline void SetLaunchTemplates(const Aws::Vector<LaunchTemplate>& value) { m_launchTemplatesHasBeenSet = true; m_launchTemplates = value; }
114 inline void SetLaunchTemplates(Aws::Vector<LaunchTemplate>&& value) { m_launchTemplatesHasBeenSet = true; m_launchTemplates = std::move(value); }
117 inline EnvironmentResourceDescription& AddLaunchTemplates(const LaunchTemplate& value) { m_launchTemplatesHasBeenSet = true; m_launchTemplates.push_back(value); return *this; }
118 inline EnvironmentResourceDescription& AddLaunchTemplates(LaunchTemplate&& value) { m_launchTemplatesHasBeenSet = true; m_launchTemplates.push_back(std::move(value)); return *this; }
120
122
125 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const{ return m_loadBalancers; }
126 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
127 inline void SetLoadBalancers(const Aws::Vector<LoadBalancer>& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = value; }
128 inline void SetLoadBalancers(Aws::Vector<LoadBalancer>&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::move(value); }
131 inline EnvironmentResourceDescription& AddLoadBalancers(const LoadBalancer& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(value); return *this; }
132 inline EnvironmentResourceDescription& AddLoadBalancers(LoadBalancer&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(std::move(value)); return *this; }
134
136
139 inline const Aws::Vector<Trigger>& GetTriggers() const{ return m_triggers; }
140 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
141 inline void SetTriggers(const Aws::Vector<Trigger>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
142 inline void SetTriggers(Aws::Vector<Trigger>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
144 inline EnvironmentResourceDescription& WithTriggers(Aws::Vector<Trigger>&& value) { SetTriggers(std::move(value)); return *this;}
145 inline EnvironmentResourceDescription& AddTriggers(const Trigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
146 inline EnvironmentResourceDescription& AddTriggers(Trigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
148
150
153 inline const Aws::Vector<Queue>& GetQueues() const{ return m_queues; }
154 inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
155 inline void SetQueues(const Aws::Vector<Queue>& value) { m_queuesHasBeenSet = true; m_queues = value; }
156 inline void SetQueues(Aws::Vector<Queue>&& value) { m_queuesHasBeenSet = true; m_queues = std::move(value); }
157 inline EnvironmentResourceDescription& WithQueues(const Aws::Vector<Queue>& value) { SetQueues(value); return *this;}
158 inline EnvironmentResourceDescription& WithQueues(Aws::Vector<Queue>&& value) { SetQueues(std::move(value)); return *this;}
159 inline EnvironmentResourceDescription& AddQueues(const Queue& value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
160 inline EnvironmentResourceDescription& AddQueues(Queue&& value) { m_queuesHasBeenSet = true; m_queues.push_back(std::move(value)); return *this; }
162 private:
163
164 Aws::String m_environmentName;
165 bool m_environmentNameHasBeenSet = false;
166
167 Aws::Vector<AutoScalingGroup> m_autoScalingGroups;
168 bool m_autoScalingGroupsHasBeenSet = false;
169
170 Aws::Vector<Instance> m_instances;
171 bool m_instancesHasBeenSet = false;
172
173 Aws::Vector<LaunchConfiguration> m_launchConfigurations;
174 bool m_launchConfigurationsHasBeenSet = false;
175
176 Aws::Vector<LaunchTemplate> m_launchTemplates;
177 bool m_launchTemplatesHasBeenSet = false;
178
179 Aws::Vector<LoadBalancer> m_loadBalancers;
180 bool m_loadBalancersHasBeenSet = false;
181
182 Aws::Vector<Trigger> m_triggers;
183 bool m_triggersHasBeenSet = false;
184
185 Aws::Vector<Queue> m_queues;
186 bool m_queuesHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace ElasticBeanstalk
191} // namespace Aws
EnvironmentResourceDescription & WithLoadBalancers(const Aws::Vector< LoadBalancer > &value)
EnvironmentResourceDescription & AddLaunchConfigurations(const LaunchConfiguration &value)
void SetAutoScalingGroups(const Aws::Vector< AutoScalingGroup > &value)
EnvironmentResourceDescription & WithAutoScalingGroups(const Aws::Vector< AutoScalingGroup > &value)
EnvironmentResourceDescription & WithLaunchConfigurations(const Aws::Vector< LaunchConfiguration > &value)
EnvironmentResourceDescription & WithEnvironmentName(const Aws::String &value)
EnvironmentResourceDescription & AddLaunchTemplates(LaunchTemplate &&value)
EnvironmentResourceDescription & WithEnvironmentName(Aws::String &&value)
EnvironmentResourceDescription & AddInstances(const Instance &value)
void SetLaunchConfigurations(const Aws::Vector< LaunchConfiguration > &value)
EnvironmentResourceDescription & AddLaunchConfigurations(LaunchConfiguration &&value)
EnvironmentResourceDescription & WithLaunchTemplates(Aws::Vector< LaunchTemplate > &&value)
const Aws::Vector< AutoScalingGroup > & GetAutoScalingGroups() const
EnvironmentResourceDescription & AddLaunchTemplates(const LaunchTemplate &value)
EnvironmentResourceDescription & AddQueues(const Queue &value)
EnvironmentResourceDescription & AddLoadBalancers(const LoadBalancer &value)
EnvironmentResourceDescription & AddTriggers(const Trigger &value)
EnvironmentResourceDescription & AddInstances(Instance &&value)
AWS_ELASTICBEANSTALK_API EnvironmentResourceDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EnvironmentResourceDescription & WithTriggers(const Aws::Vector< Trigger > &value)
EnvironmentResourceDescription & WithQueues(Aws::Vector< Queue > &&value)
void SetLaunchConfigurations(Aws::Vector< LaunchConfiguration > &&value)
EnvironmentResourceDescription & WithAutoScalingGroups(Aws::Vector< AutoScalingGroup > &&value)
EnvironmentResourceDescription & WithLaunchTemplates(const Aws::Vector< LaunchTemplate > &value)
EnvironmentResourceDescription & WithInstances(Aws::Vector< Instance > &&value)
EnvironmentResourceDescription & WithTriggers(Aws::Vector< Trigger > &&value)
EnvironmentResourceDescription & WithInstances(const Aws::Vector< Instance > &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)
EnvironmentResourceDescription & WithLaunchConfigurations(Aws::Vector< LaunchConfiguration > &&value)
EnvironmentResourceDescription & AddAutoScalingGroups(AutoScalingGroup &&value)
void SetLaunchTemplates(const Aws::Vector< LaunchTemplate > &value)
EnvironmentResourceDescription & AddAutoScalingGroups(const AutoScalingGroup &value)
EnvironmentResourceDescription & WithQueues(const Aws::Vector< Queue > &value)
EnvironmentResourceDescription & AddLoadBalancers(LoadBalancer &&value)
EnvironmentResourceDescription & WithEnvironmentName(const char *value)
EnvironmentResourceDescription & WithLoadBalancers(Aws::Vector< LoadBalancer > &&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