AWS SDK for C++  0.14.3
AWS SDK for C++
LoadBalancerTargetGroupState.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace AutoScaling
30 {
31 namespace Model
32 {
33 
44  {
45  public:
48  LoadBalancerTargetGroupState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
56  inline const Aws::String& GetLoadBalancerTargetGroupARN() const{ return m_loadBalancerTargetGroupARN; }
57 
61  inline void SetLoadBalancerTargetGroupARN(const Aws::String& value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN = value; }
62 
66  inline void SetLoadBalancerTargetGroupARN(Aws::String&& value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN = value; }
67 
71  inline void SetLoadBalancerTargetGroupARN(const char* value) { m_loadBalancerTargetGroupARNHasBeenSet = true; m_loadBalancerTargetGroupARN.assign(value); }
72 
76  inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(const Aws::String& value) { SetLoadBalancerTargetGroupARN(value); return *this;}
77 
81  inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(Aws::String&& value) { SetLoadBalancerTargetGroupARN(value); return *this;}
82 
86  inline LoadBalancerTargetGroupState& WithLoadBalancerTargetGroupARN(const char* value) { SetLoadBalancerTargetGroupARN(value); return *this;}
87 
100  inline const Aws::String& GetState() const{ return m_state; }
101 
114  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
115 
128  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = value; }
129 
142  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
143 
156  inline LoadBalancerTargetGroupState& WithState(const Aws::String& value) { SetState(value); return *this;}
157 
170  inline LoadBalancerTargetGroupState& WithState(Aws::String&& value) { SetState(value); return *this;}
171 
184  inline LoadBalancerTargetGroupState& WithState(const char* value) { SetState(value); return *this;}
185 
186  private:
187  Aws::String m_loadBalancerTargetGroupARN;
188  bool m_loadBalancerTargetGroupARNHasBeenSet;
189  Aws::String m_state;
190  bool m_stateHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace AutoScaling
195 } // namespace Aws
LoadBalancerTargetGroupState & WithState(const char *value)
LoadBalancerTargetGroupState & WithState(const Aws::String &value)
LoadBalancerTargetGroupState & WithLoadBalancerTargetGroupARN(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
LoadBalancerTargetGroupState & WithState(Aws::String &&value)
LoadBalancerTargetGroupState & WithLoadBalancerTargetGroupARN(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LoadBalancerTargetGroupState & WithLoadBalancerTargetGroupARN(const char *value)
#define AWS_AUTOSCALING_API
JSON (JavaScript Object Notation).