AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
50 template<typename InstanceIdT = Aws::String>
51 InstanceState& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 template<typename StateT = Aws::String>
62 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
63 template<typename StateT = Aws::String>
64 InstanceState& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
66
68
74 inline const Aws::String& GetReasonCode() const { return m_reasonCode; }
75 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
76 template<typename ReasonCodeT = Aws::String>
77 void SetReasonCode(ReasonCodeT&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::forward<ReasonCodeT>(value); }
78 template<typename ReasonCodeT = Aws::String>
79 InstanceState& WithReasonCode(ReasonCodeT&& value) { SetReasonCode(std::forward<ReasonCodeT>(value)); return *this;}
81
83
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 InstanceState& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107 private:
108
109 Aws::String m_instanceId;
110 bool m_instanceIdHasBeenSet = false;
111
112 Aws::String m_state;
113 bool m_stateHasBeenSet = false;
114
115 Aws::String m_reasonCode;
116 bool m_reasonCodeHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace ElasticLoadBalancing
124} // 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