AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RouteServerAssociation.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/RouteServerAssociationState.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
31 public:
32 AWS_EC2_API RouteServerAssociation() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetRouteServerId() const { return m_routeServerId; }
44 inline bool RouteServerIdHasBeenSet() const { return m_routeServerIdHasBeenSet; }
45 template <typename RouteServerIdT = Aws::String>
46 void SetRouteServerId(RouteServerIdT&& value) {
47 m_routeServerIdHasBeenSet = true;
48 m_routeServerId = std::forward<RouteServerIdT>(value);
49 }
50 template <typename RouteServerIdT = Aws::String>
51 RouteServerAssociation& WithRouteServerId(RouteServerIdT&& value) {
52 SetRouteServerId(std::forward<RouteServerIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetVpcId() const { return m_vpcId; }
62 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
63 template <typename VpcIdT = Aws::String>
64 void SetVpcId(VpcIdT&& value) {
65 m_vpcIdHasBeenSet = true;
66 m_vpcId = std::forward<VpcIdT>(value);
67 }
68 template <typename VpcIdT = Aws::String>
70 SetVpcId(std::forward<VpcIdT>(value));
71 return *this;
72 }
74
76
79 inline RouteServerAssociationState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90 private:
91 Aws::String m_routeServerId;
92
93 Aws::String m_vpcId;
94
96 bool m_routeServerIdHasBeenSet = false;
97 bool m_vpcIdHasBeenSet = false;
98 bool m_stateHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RouteServerAssociation & WithRouteServerId(RouteServerIdT &&value)
AWS_EC2_API RouteServerAssociation()=default
RouteServerAssociation & WithState(RouteServerAssociationState value)
RouteServerAssociation & WithVpcId(VpcIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API RouteServerAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRouteServerId(RouteServerIdT &&value)
RouteServerAssociationState GetState() const
void SetState(RouteServerAssociationState value)
AWS_EC2_API RouteServerAssociation & 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