AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TrafficSourceState.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
28 public:
29 AWS_AUTOSCALING_API TrafficSourceState() = default;
30 AWS_AUTOSCALING_API TrafficSourceState(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_AUTOSCALING_API TrafficSourceState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
53 inline const Aws::String& GetState() const { return m_state; }
54 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
55 template <typename StateT = Aws::String>
56 void SetState(StateT&& value) {
57 m_stateHasBeenSet = true;
58 m_state = std::forward<StateT>(value);
59 }
60 template <typename StateT = Aws::String>
61 TrafficSourceState& WithState(StateT&& value) {
62 SetState(std::forward<StateT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetIdentifier() const { return m_identifier; }
72 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
73 template <typename IdentifierT = Aws::String>
74 void SetIdentifier(IdentifierT&& value) {
75 m_identifierHasBeenSet = true;
76 m_identifier = std::forward<IdentifierT>(value);
77 }
78 template <typename IdentifierT = Aws::String>
79 TrafficSourceState& WithIdentifier(IdentifierT&& value) {
80 SetIdentifier(std::forward<IdentifierT>(value));
81 return *this;
82 }
84
86
96 inline const Aws::String& GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 template <typename TypeT = Aws::String>
99 void SetType(TypeT&& value) {
100 m_typeHasBeenSet = true;
101 m_type = std::forward<TypeT>(value);
102 }
103 template <typename TypeT = Aws::String>
104 TrafficSourceState& WithType(TypeT&& value) {
105 SetType(std::forward<TypeT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_state;
111
112 Aws::String m_identifier;
113
114 Aws::String m_type;
115 bool m_stateHasBeenSet = false;
116 bool m_identifierHasBeenSet = false;
117 bool m_typeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace AutoScaling
122} // namespace Aws
TrafficSourceState & WithState(StateT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TrafficSourceState & WithType(TypeT &&value)
AWS_AUTOSCALING_API TrafficSourceState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TrafficSourceState & WithIdentifier(IdentifierT &&value)
AWS_AUTOSCALING_API TrafficSourceState()=default
AWS_AUTOSCALING_API TrafficSourceState & 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