AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RouteServerAssociation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/RouteServerAssociationState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EC2_API RouteServerAssociation() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetRouteServerId() const { return m_routeServerId; }
50 inline bool RouteServerIdHasBeenSet() const { return m_routeServerIdHasBeenSet; }
51 template<typename RouteServerIdT = Aws::String>
52 void SetRouteServerId(RouteServerIdT&& value) { m_routeServerIdHasBeenSet = true; m_routeServerId = std::forward<RouteServerIdT>(value); }
53 template<typename RouteServerIdT = Aws::String>
54 RouteServerAssociation& WithRouteServerId(RouteServerIdT&& value) { SetRouteServerId(std::forward<RouteServerIdT>(value)); return *this;}
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) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
65 template<typename VpcIdT = Aws::String>
66 RouteServerAssociation& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
68
70
73 inline RouteServerAssociationState GetState() const { return m_state; }
74 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
75 inline void SetState(RouteServerAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
78 private:
79
80 Aws::String m_routeServerId;
81 bool m_routeServerIdHasBeenSet = false;
82
83 Aws::String m_vpcId;
84 bool m_vpcIdHasBeenSet = false;
85
87 bool m_stateHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // 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