AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_AUTOSCALING_API TrafficSourceState() = default;
35 AWS_AUTOSCALING_API TrafficSourceState(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_AUTOSCALING_API TrafficSourceState& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
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 TrafficSourceState& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
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) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
75 template<typename IdentifierT = Aws::String>
76 TrafficSourceState& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
78
80
90 inline const Aws::String& GetType() const { return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 template<typename TypeT = Aws::String>
93 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
94 template<typename TypeT = Aws::String>
95 TrafficSourceState& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
97 private:
98
99 Aws::String m_state;
100 bool m_stateHasBeenSet = false;
101
102 Aws::String m_identifier;
103 bool m_identifierHasBeenSet = false;
104
105 Aws::String m_type;
106 bool m_typeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AutoScaling
111} // 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