AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadBalancerState.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticloadbalancingv2/model/LoadBalancerStateEnum.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticLoadBalancingv2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerState();
37 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerState(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
53 inline const LoadBalancerStateEnum& GetCode() const{ return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 inline void SetCode(const LoadBalancerStateEnum& value) { m_codeHasBeenSet = true; m_code = value; }
56 inline void SetCode(LoadBalancerStateEnum&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
57 inline LoadBalancerState& WithCode(const LoadBalancerStateEnum& value) { SetCode(value); return *this;}
58 inline LoadBalancerState& WithCode(LoadBalancerStateEnum&& value) { SetCode(std::move(value)); return *this;}
60
62
65 inline const Aws::String& GetReason() const{ return m_reason; }
66 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
67 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
68 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
69 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
70 inline LoadBalancerState& WithReason(const Aws::String& value) { SetReason(value); return *this;}
71 inline LoadBalancerState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
72 inline LoadBalancerState& WithReason(const char* value) { SetReason(value); return *this;}
74 private:
75
77 bool m_codeHasBeenSet = false;
78
79 Aws::String m_reason;
80 bool m_reasonHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ElasticLoadBalancingv2
85} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerState()
LoadBalancerState & WithReason(const Aws::String &value)
LoadBalancerState & WithReason(Aws::String &&value)
LoadBalancerState & WithCode(const LoadBalancerStateEnum &value)
LoadBalancerState & WithReason(const char *value)
LoadBalancerState & WithCode(LoadBalancerStateEnum &&value)
const LoadBalancerStateEnum & GetCode() const
void SetCode(const LoadBalancerStateEnum &value)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream