AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
62 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
63 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
64 inline TrafficSourceState& WithState(const Aws::String& value) { SetState(value); return *this;}
65 inline TrafficSourceState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
66 inline TrafficSourceState& WithState(const char* value) { SetState(value); return *this;}
68
70
73 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
74 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
75 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
76 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
77 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
78 inline TrafficSourceState& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
79 inline TrafficSourceState& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
80 inline TrafficSourceState& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
82
84
94 inline const Aws::String& GetType() const{ return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
97 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
98 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
99 inline TrafficSourceState& WithType(const Aws::String& value) { SetType(value); return *this;}
100 inline TrafficSourceState& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
101 inline TrafficSourceState& WithType(const char* value) { SetType(value); return *this;}
103 private:
104
105 Aws::String m_state;
106 bool m_stateHasBeenSet = false;
107
108 Aws::String m_identifier;
109 bool m_identifierHasBeenSet = false;
110
111 Aws::String m_type;
112 bool m_typeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AutoScaling
117} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API TrafficSourceState(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficSourceState & WithIdentifier(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TrafficSourceState & WithState(Aws::String &&value)
TrafficSourceState & WithState(const char *value)
TrafficSourceState & WithType(const Aws::String &value)
TrafficSourceState & WithIdentifier(const Aws::String &value)
TrafficSourceState & WithType(Aws::String &&value)
TrafficSourceState & WithIdentifier(const char *value)
TrafficSourceState & WithState(const Aws::String &value)
AWS_AUTOSCALING_API TrafficSourceState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficSourceState & WithType(const char *value)
void SetIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream