AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancing {
20namespace Model {
21
28 public:
29 AWS_ELASTICLOADBALANCING_API InstanceState() = default;
30 AWS_ELASTICLOADBALANCING_API InstanceState(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCING_API InstanceState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
49 InstanceState& WithInstanceId(InstanceIdT&& value) {
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 template <typename StateT = Aws::String>
63 void SetState(StateT&& value) {
64 m_stateHasBeenSet = true;
65 m_state = std::forward<StateT>(value);
66 }
67 template <typename StateT = Aws::String>
68 InstanceState& WithState(StateT&& value) {
69 SetState(std::forward<StateT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetReasonCode() const { return m_reasonCode; }
82 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
83 template <typename ReasonCodeT = Aws::String>
84 void SetReasonCode(ReasonCodeT&& value) {
85 m_reasonCodeHasBeenSet = true;
86 m_reasonCode = std::forward<ReasonCodeT>(value);
87 }
88 template <typename ReasonCodeT = Aws::String>
89 InstanceState& WithReasonCode(ReasonCodeT&& value) {
90 SetReasonCode(std::forward<ReasonCodeT>(value));
91 return *this;
92 }
94
96
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 InstanceState& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_instanceId;
128
129 Aws::String m_state;
130
131 Aws::String m_reasonCode;
132
133 Aws::String m_description;
134 bool m_instanceIdHasBeenSet = false;
135 bool m_stateHasBeenSet = false;
136 bool m_reasonCodeHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace ElasticLoadBalancing
142} // namespace Aws
InstanceState & WithDescription(DescriptionT &&value)
AWS_ELASTICLOADBALANCING_API InstanceState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API InstanceState()=default
InstanceState & WithState(StateT &&value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API InstanceState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceState & WithReasonCode(ReasonCodeT &&value)
InstanceState & WithInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream