AWS SDK for C++  1.9.108
AWS SDK for C++
LoadBalancerTargetGroupState.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace AutoScaling
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetLoadBalancerTargetGroupARN() const{ return m_loadBalancerTargetGroupARN; }
46 
50  inline bool LoadBalancerTargetGroupARNHasBeenSet() const { return m_loadBalancerTargetGroupARNHasBeenSet; }
51 
55  inline void SetLoadBalancerTargetGroupARN(const Aws::String& value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN = value; }
56 
60  inline void SetLoadBalancerTargetGroupARN(Aws::String&& value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN = std::move(value); }
61 
65  inline void SetLoadBalancerTargetGroupARN(const char* value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN.assign(value); }
66 
70  inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(const Aws::String& value) { SetLoadBalancerTargetGroupARN(value); return *this;}
71 
75  inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(Aws::String&& value) { SetLoadBalancerTargetGroupARN(std::move(value)); return *this;}
76 
80  inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(const char* value) { SetLoadBalancerTargetGroupARN(value); return *this;}
81 
82 
95  inline const Aws::String& GetState() const{ return m_state; }
96 
109  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
110 
123  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
124 
137  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
138 
151  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
152 
165  inline LoadBalancerTargetGroupState& WithState(const Aws::String& value) { SetState(value); return *this;}
166 
179  inline LoadBalancerTargetGroupState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
180 
193  inline LoadBalancerTargetGroupState& WithState(const char* value) { SetState(value); return *this;}
194 
195  private:
196 
197  Aws::String m_loadBalancerTargetGroupARN;
198  bool m_loadBalancerTargetGroupARNHasBeenSet;
199 
200  Aws::String m_state;
201  bool m_stateHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace AutoScaling
206 } // namespace Aws
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::WithLoadBalancerTargetGroupARN
LoadBalancerTargetGroupState & WithLoadBalancerTargetGroupARN(const char *value)
Definition: LoadBalancerTargetGroupState.h:80
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::SetLoadBalancerTargetGroupARN
void SetLoadBalancerTargetGroupARN(const char *value)
Definition: LoadBalancerTargetGroupState.h:65
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::WithState
LoadBalancerTargetGroupState & WithState(const char *value)
Definition: LoadBalancerTargetGroupState.h:193
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::WithLoadBalancerTargetGroupARN
LoadBalancerTargetGroupState & WithLoadBalancerTargetGroupARN(const Aws::String &value)
Definition: LoadBalancerTargetGroupState.h:70
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::GetState
const Aws::String & GetState() const
Definition: LoadBalancerTargetGroupState.h:95
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::SetLoadBalancerTargetGroupARN
void SetLoadBalancerTargetGroupARN(Aws::String &&value)
Definition: LoadBalancerTargetGroupState.h:60
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::WithState
LoadBalancerTargetGroupState & WithState(const Aws::String &value)
Definition: LoadBalancerTargetGroupState.h:165
AWSStreamFwd.h
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::StateHasBeenSet
bool StateHasBeenSet() const
Definition: LoadBalancerTargetGroupState.h:109
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::SetLoadBalancerTargetGroupARN
void SetLoadBalancerTargetGroupARN(const Aws::String &value)
Definition: LoadBalancerTargetGroupState.h:55
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::GetLoadBalancerTargetGroupARN
const Aws::String & GetLoadBalancerTargetGroupARN() const
Definition: LoadBalancerTargetGroupState.h:45
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::SetState
void SetState(const char *value)
Definition: LoadBalancerTargetGroupState.h:151
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::WithLoadBalancerTargetGroupARN
LoadBalancerTargetGroupState & WithLoadBalancerTargetGroupARN(Aws::String &&value)
Definition: LoadBalancerTargetGroupState.h:75
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::SetState
void SetState(Aws::String &&value)
Definition: LoadBalancerTargetGroupState.h:137
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::operator=
LoadBalancerTargetGroupState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::LoadBalancerTargetGroupState
LoadBalancerTargetGroupState()
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::LoadBalancerTargetGroupState
LoadBalancerTargetGroupState(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::WithState
LoadBalancerTargetGroupState & WithState(Aws::String &&value)
Definition: LoadBalancerTargetGroupState.h:179
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::LoadBalancerTargetGroupState
Definition: LoadBalancerTargetGroupState.h:32
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::SetState
void SetState(const Aws::String &value)
Definition: LoadBalancerTargetGroupState.h:123
Aws::AutoScaling::Model::LoadBalancerTargetGroupState::LoadBalancerTargetGroupARNHasBeenSet
bool LoadBalancerTargetGroupARNHasBeenSet() const
Definition: LoadBalancerTargetGroupState.h:50