AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdministrativeOverride.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/TargetAdministrativeOverrideStateEnum.h>
10#include <aws/elasticloadbalancingv2/model/TargetAdministrativeOverrideReasonEnum.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API AdministrativeOverride();
38 AWS_ELASTICLOADBALANCINGV2_API AdministrativeOverride(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API AdministrativeOverride& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const TargetAdministrativeOverrideStateEnum& GetState() const{ return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 inline void SetState(const TargetAdministrativeOverrideStateEnum& value) { m_stateHasBeenSet = true; m_state = value; }
52 inline void SetState(TargetAdministrativeOverrideStateEnum&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
54 inline AdministrativeOverride& WithState(TargetAdministrativeOverrideStateEnum&& value) { SetState(std::move(value)); return *this;}
56
58
61 inline const TargetAdministrativeOverrideReasonEnum& GetReason() const{ return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
63 inline void SetReason(const TargetAdministrativeOverrideReasonEnum& value) { m_reasonHasBeenSet = true; m_reason = value; }
64 inline void SetReason(TargetAdministrativeOverrideReasonEnum&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
66 inline AdministrativeOverride& WithReason(TargetAdministrativeOverrideReasonEnum&& value) { SetReason(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline AdministrativeOverride& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline AdministrativeOverride& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline AdministrativeOverride& WithDescription(const char* value) { SetDescription(value); return *this;}
82 private:
83
85 bool m_stateHasBeenSet = false;
86
88 bool m_reasonHasBeenSet = false;
89
90 Aws::String m_description;
91 bool m_descriptionHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ElasticLoadBalancingv2
96} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AdministrativeOverride & WithDescription(const Aws::String &value)
void SetReason(const TargetAdministrativeOverrideReasonEnum &value)
AWS_ELASTICLOADBALANCINGV2_API AdministrativeOverride()
const TargetAdministrativeOverrideReasonEnum & GetReason() const
void SetState(TargetAdministrativeOverrideStateEnum &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReason(TargetAdministrativeOverrideReasonEnum &&value)
AdministrativeOverride & WithState(const TargetAdministrativeOverrideStateEnum &value)
AdministrativeOverride & WithReason(TargetAdministrativeOverrideReasonEnum &&value)
const TargetAdministrativeOverrideStateEnum & GetState() const
AdministrativeOverride & WithDescription(const char *value)
AWS_ELASTICLOADBALANCINGV2_API AdministrativeOverride & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(const TargetAdministrativeOverrideStateEnum &value)
AdministrativeOverride & WithState(TargetAdministrativeOverrideStateEnum &&value)
AdministrativeOverride & WithReason(const TargetAdministrativeOverrideReasonEnum &value)
AdministrativeOverride & WithDescription(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API AdministrativeOverride(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