AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename EnvironmentNameT = Aws::String>
58 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
59 template<typename EnvironmentNameT = Aws::String>
60 EnvironmentResourceDescription& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
62
64
67 inline const Aws::Vector<AutoScalingGroup>& GetAutoScalingGroups() const { return m_autoScalingGroups; }
68 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
69 template<typename AutoScalingGroupsT = Aws::Vector<AutoScalingGroup>>
70 void SetAutoScalingGroups(AutoScalingGroupsT&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = std::forward<AutoScalingGroupsT>(value); }
71 template<typename AutoScalingGroupsT = Aws::Vector<AutoScalingGroup>>
72 EnvironmentResourceDescription& WithAutoScalingGroups(AutoScalingGroupsT&& value) { SetAutoScalingGroups(std::forward<AutoScalingGroupsT>(value)); return *this;}
73 template<typename AutoScalingGroupsT = AutoScalingGroup>
74 EnvironmentResourceDescription& AddAutoScalingGroups(AutoScalingGroupsT&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.emplace_back(std::forward<AutoScalingGroupsT>(value)); return *this; }
76
78
81 inline const Aws::Vector<Instance>& GetInstances() const { return m_instances; }
82 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
83 template<typename InstancesT = Aws::Vector<Instance>>
84 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances = std::forward<InstancesT>(value); }
85 template<typename InstancesT = Aws::Vector<Instance>>
86 EnvironmentResourceDescription& WithInstances(InstancesT&& value) { SetInstances(std::forward<InstancesT>(value)); return *this;}
87 template<typename InstancesT = Instance>
88 EnvironmentResourceDescription& AddInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances.emplace_back(std::forward<InstancesT>(value)); return *this; }
90
92
95 inline const Aws::Vector<LaunchConfiguration>& GetLaunchConfigurations() const { return m_launchConfigurations; }
96 inline bool LaunchConfigurationsHasBeenSet() const { return m_launchConfigurationsHasBeenSet; }
97 template<typename LaunchConfigurationsT = Aws::Vector<LaunchConfiguration>>
98 void SetLaunchConfigurations(LaunchConfigurationsT&& value) { m_launchConfigurationsHasBeenSet = true; m_launchConfigurations = std::forward<LaunchConfigurationsT>(value); }
99 template<typename LaunchConfigurationsT = Aws::Vector<LaunchConfiguration>>
100 EnvironmentResourceDescription& WithLaunchConfigurations(LaunchConfigurationsT&& value) { SetLaunchConfigurations(std::forward<LaunchConfigurationsT>(value)); return *this;}
101 template<typename LaunchConfigurationsT = LaunchConfiguration>
102 EnvironmentResourceDescription& AddLaunchConfigurations(LaunchConfigurationsT&& value) { m_launchConfigurationsHasBeenSet = true; m_launchConfigurations.emplace_back(std::forward<LaunchConfigurationsT>(value)); return *this; }
104
106
109 inline const Aws::Vector<LaunchTemplate>& GetLaunchTemplates() const { return m_launchTemplates; }
110 inline bool LaunchTemplatesHasBeenSet() const { return m_launchTemplatesHasBeenSet; }
111 template<typename LaunchTemplatesT = Aws::Vector<LaunchTemplate>>
112 void SetLaunchTemplates(LaunchTemplatesT&& value) { m_launchTemplatesHasBeenSet = true; m_launchTemplates = std::forward<LaunchTemplatesT>(value); }
113 template<typename LaunchTemplatesT = Aws::Vector<LaunchTemplate>>
114 EnvironmentResourceDescription& WithLaunchTemplates(LaunchTemplatesT&& value) { SetLaunchTemplates(std::forward<LaunchTemplatesT>(value)); return *this;}
115 template<typename LaunchTemplatesT = LaunchTemplate>
116 EnvironmentResourceDescription& AddLaunchTemplates(LaunchTemplatesT&& value) { m_launchTemplatesHasBeenSet = true; m_launchTemplates.emplace_back(std::forward<LaunchTemplatesT>(value)); return *this; }
118
120
123 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
124 inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; }
125 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
126 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
127 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
128 EnvironmentResourceDescription& WithLoadBalancers(LoadBalancersT&& value) { SetLoadBalancers(std::forward<LoadBalancersT>(value)); return *this;}
129 template<typename LoadBalancersT = LoadBalancer>
130 EnvironmentResourceDescription& AddLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value)); return *this; }
132
134
137 inline const Aws::Vector<Trigger>& GetTriggers() const { return m_triggers; }
138 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
139 template<typename TriggersT = Aws::Vector<Trigger>>
140 void SetTriggers(TriggersT&& value) { m_triggersHasBeenSet = true; m_triggers = std::forward<TriggersT>(value); }
141 template<typename TriggersT = Aws::Vector<Trigger>>
142 EnvironmentResourceDescription& WithTriggers(TriggersT&& value) { SetTriggers(std::forward<TriggersT>(value)); return *this;}
143 template<typename TriggersT = Trigger>
144 EnvironmentResourceDescription& AddTriggers(TriggersT&& value) { m_triggersHasBeenSet = true; m_triggers.emplace_back(std::forward<TriggersT>(value)); return *this; }
146
148
151 inline const Aws::Vector<Queue>& GetQueues() const { return m_queues; }
152 inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
153 template<typename QueuesT = Aws::Vector<Queue>>
154 void SetQueues(QueuesT&& value) { m_queuesHasBeenSet = true; m_queues = std::forward<QueuesT>(value); }
155 template<typename QueuesT = Aws::Vector<Queue>>
156 EnvironmentResourceDescription& WithQueues(QueuesT&& value) { SetQueues(std::forward<QueuesT>(value)); return *this;}
157 template<typename QueuesT = Queue>
158 EnvironmentResourceDescription& AddQueues(QueuesT&& value) { m_queuesHasBeenSet = true; m_queues.emplace_back(std::forward<QueuesT>(value)); return *this; }
160 private:
161
162 Aws::String m_environmentName;
163 bool m_environmentNameHasBeenSet = false;
164
165 Aws::Vector<AutoScalingGroup> m_autoScalingGroups;
166 bool m_autoScalingGroupsHasBeenSet = false;
167
168 Aws::Vector<Instance> m_instances;
169 bool m_instancesHasBeenSet = false;
170
171 Aws::Vector<LaunchConfiguration> m_launchConfigurations;
172 bool m_launchConfigurationsHasBeenSet = false;
173
174 Aws::Vector<LaunchTemplate> m_launchTemplates;
175 bool m_launchTemplatesHasBeenSet = false;
176
177 Aws::Vector<LoadBalancer> m_loadBalancers;
178 bool m_loadBalancersHasBeenSet = false;
179
180 Aws::Vector<Trigger> m_triggers;
181 bool m_triggersHasBeenSet = false;
182
183 Aws::Vector<Queue> m_queues;
184 bool m_queuesHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace ElasticBeanstalk
189} // 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