AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RouteServerPropagation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/RouteServerPropagationState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
32 public:
33 AWS_EC2_API RouteServerPropagation() = default;
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetRouteServerId() const { return m_routeServerId; }
45 inline bool RouteServerIdHasBeenSet() const { return m_routeServerIdHasBeenSet; }
46 template <typename RouteServerIdT = Aws::String>
47 void SetRouteServerId(RouteServerIdT&& value) {
48 m_routeServerIdHasBeenSet = true;
49 m_routeServerId = std::forward<RouteServerIdT>(value);
50 }
51 template <typename RouteServerIdT = Aws::String>
52 RouteServerPropagation& WithRouteServerId(RouteServerIdT&& value) {
53 SetRouteServerId(std::forward<RouteServerIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
63 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
64 template <typename RouteTableIdT = Aws::String>
65 void SetRouteTableId(RouteTableIdT&& value) {
66 m_routeTableIdHasBeenSet = true;
67 m_routeTableId = std::forward<RouteTableIdT>(value);
68 }
69 template <typename RouteTableIdT = Aws::String>
70 RouteServerPropagation& WithRouteTableId(RouteTableIdT&& value) {
71 SetRouteTableId(std::forward<RouteTableIdT>(value));
72 return *this;
73 }
75
77
80 inline RouteServerPropagationState GetState() const { return m_state; }
81 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 m_stateHasBeenSet = true;
84 m_state = value;
85 }
87 SetState(value);
88 return *this;
89 }
91 private:
92 Aws::String m_routeServerId;
93
94 Aws::String m_routeTableId;
95
97 bool m_routeServerIdHasBeenSet = false;
98 bool m_routeTableIdHasBeenSet = false;
99 bool m_stateHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
AWS_EC2_API RouteServerPropagation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRouteServerId(RouteServerIdT &&value)
RouteServerPropagation & WithRouteServerId(RouteServerIdT &&value)
AWS_EC2_API RouteServerPropagation()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RouteServerPropagation & WithRouteTableId(RouteTableIdT &&value)
RouteServerPropagationState GetState() const
AWS_EC2_API RouteServerPropagation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(RouteServerPropagationState value)
RouteServerPropagation & WithState(RouteServerPropagationState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream