AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceState.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancing
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ELASTICLOADBALANCING_API InstanceState();
35 AWS_ELASTICLOADBALANCING_API InstanceState(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICLOADBALANCING_API InstanceState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline InstanceState& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline InstanceState& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline InstanceState& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
61 inline const Aws::String& GetState() const{ return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
64 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
65 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
66 inline InstanceState& WithState(const Aws::String& value) { SetState(value); return *this;}
67 inline InstanceState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
68 inline InstanceState& WithState(const char* value) { SetState(value); return *this;}
70
72
78 inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
79 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
80 inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
81 inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); }
82 inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
83 inline InstanceState& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
84 inline InstanceState& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;}
85 inline InstanceState& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
87
89
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline InstanceState& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline InstanceState& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline InstanceState& WithDescription(const char* value) { SetDescription(value); return *this;}
115 private:
116
117 Aws::String m_instanceId;
118 bool m_instanceIdHasBeenSet = false;
119
120 Aws::String m_state;
121 bool m_stateHasBeenSet = false;
122
123 Aws::String m_reasonCode;
124 bool m_reasonCodeHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ElasticLoadBalancing
132} // namespace Aws
InstanceState & WithReasonCode(const char *value)
void SetDescription(const Aws::String &value)
InstanceState & WithState(const char *value)
InstanceState & WithState(Aws::String &&value)
void SetReasonCode(const Aws::String &value)
InstanceState & WithReasonCode(const Aws::String &value)
InstanceState & WithInstanceId(const char *value)
AWS_ELASTICLOADBALANCING_API InstanceState(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceState & WithInstanceId(Aws::String &&value)
InstanceState & WithReasonCode(Aws::String &&value)
void SetState(const Aws::String &value)
InstanceState & WithInstanceId(const Aws::String &value)
InstanceState & WithDescription(const char *value)
InstanceState & WithState(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstanceId(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API InstanceState()
InstanceState & WithDescription(Aws::String &&value)
InstanceState & WithDescription(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API InstanceState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream