AWS SDK for C++  0.14.3
AWS SDK for C++
InstanceState.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 ElasticLoadBalancing
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  InstanceState();
42  InstanceState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
51 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
61 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
70  inline InstanceState& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
75  inline InstanceState& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
76 
80  inline InstanceState& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81 
86  inline const Aws::String& GetState() const{ return m_state; }
87 
92  inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
93 
98  inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = value; }
99 
104  inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
105 
110  inline InstanceState& WithState(const Aws::String& value) { SetState(value); return *this;}
111 
116  inline InstanceState& WithState(Aws::String&& value) { SetState(value); return *this;}
117 
122  inline InstanceState& WithState(const char* value) { SetState(value); return *this;}
123 
130  inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
131 
138  inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
139 
146  inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
147 
154  inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
155 
162  inline InstanceState& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
163 
170  inline InstanceState& WithReasonCode(Aws::String&& value) { SetReasonCode(value); return *this;}
171 
178  inline InstanceState& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
179 
197  inline const Aws::String& GetDescription() const{ return m_description; }
198 
216  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
217 
235  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
236 
254  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
255 
273  inline InstanceState& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
274 
292  inline InstanceState& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
293 
311  inline InstanceState& WithDescription(const char* value) { SetDescription(value); return *this;}
312 
313  private:
314  Aws::String m_instanceId;
315  bool m_instanceIdHasBeenSet;
316  Aws::String m_state;
317  bool m_stateHasBeenSet;
318  Aws::String m_reasonCode;
319  bool m_reasonCodeHasBeenSet;
320  Aws::String m_description;
321  bool m_descriptionHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace ElasticLoadBalancing
326 } // namespace Aws
void SetDescription(const Aws::String &value)
InstanceState & WithReasonCode(const char *value)
InstanceState & WithState(const char *value)
const Aws::String & GetDescription() const
InstanceState & WithInstanceId(const Aws::String &value)
Definition: InstanceState.h:70
InstanceState & WithDescription(Aws::String &&value)
const Aws::String & GetInstanceId() const
Definition: InstanceState.h:50
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
InstanceState & WithState(const Aws::String &value)
void SetState(const Aws::String &value)
Definition: InstanceState.h:92
InstanceState & WithInstanceId(Aws::String &&value)
Definition: InstanceState.h:75
const Aws::String & GetReasonCode() const
InstanceState & WithReasonCode(const Aws::String &value)
InstanceState & WithReasonCode(Aws::String &&value)
InstanceState & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetReasonCode(const Aws::String &value)
InstanceState & WithState(Aws::String &&value)
InstanceState & WithDescription(const char *value)
#define AWS_ELASTICLOADBALANCING_API
InstanceState & WithInstanceId(const char *value)
Definition: InstanceState.h:80
JSON (JavaScript Object Notation).
void SetInstanceId(const Aws::String &value)
Definition: InstanceState.h:55