AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRouteServerPeerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/RouteServerBgpOptionsRequest.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateRouteServerPeerRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRouteServerPeer"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetRouteServerEndpointId() const { return m_routeServerEndpointId; }
43 inline bool RouteServerEndpointIdHasBeenSet() const { return m_routeServerEndpointIdHasBeenSet; }
44 template <typename RouteServerEndpointIdT = Aws::String>
45 void SetRouteServerEndpointId(RouteServerEndpointIdT&& value) {
46 m_routeServerEndpointIdHasBeenSet = true;
47 m_routeServerEndpointId = std::forward<RouteServerEndpointIdT>(value);
48 }
49 template <typename RouteServerEndpointIdT = Aws::String>
51 SetRouteServerEndpointId(std::forward<RouteServerEndpointIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
61 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
62 template <typename PeerAddressT = Aws::String>
63 void SetPeerAddress(PeerAddressT&& value) {
64 m_peerAddressHasBeenSet = true;
65 m_peerAddress = std::forward<PeerAddressT>(value);
66 }
67 template <typename PeerAddressT = Aws::String>
69 SetPeerAddress(std::forward<PeerAddressT>(value));
70 return *this;
71 }
73
75
79 inline const RouteServerBgpOptionsRequest& GetBgpOptions() const { return m_bgpOptions; }
80 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
81 template <typename BgpOptionsT = RouteServerBgpOptionsRequest>
82 void SetBgpOptions(BgpOptionsT&& value) {
83 m_bgpOptionsHasBeenSet = true;
84 m_bgpOptions = std::forward<BgpOptionsT>(value);
85 }
86 template <typename BgpOptionsT = RouteServerBgpOptionsRequest>
88 SetBgpOptions(std::forward<BgpOptionsT>(value));
89 return *this;
90 }
92
94
100 inline bool GetDryRun() const { return m_dryRun; }
101 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
102 inline void SetDryRun(bool value) {
103 m_dryRunHasBeenSet = true;
104 m_dryRun = value;
105 }
107 SetDryRun(value);
108 return *this;
109 }
111
113
116 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
117 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
118 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
119 void SetTagSpecifications(TagSpecificationsT&& value) {
120 m_tagSpecificationsHasBeenSet = true;
121 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
122 }
123 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
125 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
126 return *this;
127 }
128 template <typename TagSpecificationsT = TagSpecification>
130 m_tagSpecificationsHasBeenSet = true;
131 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_routeServerEndpointId;
137
138 Aws::String m_peerAddress;
139
140 RouteServerBgpOptionsRequest m_bgpOptions;
141
142 bool m_dryRun{false};
143
144 Aws::Vector<TagSpecification> m_tagSpecifications;
145 bool m_routeServerEndpointIdHasBeenSet = false;
146 bool m_peerAddressHasBeenSet = false;
147 bool m_bgpOptionsHasBeenSet = false;
148 bool m_dryRunHasBeenSet = false;
149 bool m_tagSpecificationsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace EC2
154} // namespace Aws
const RouteServerBgpOptionsRequest & GetBgpOptions() const
CreateRouteServerPeerRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateRouteServerPeerRequest & WithRouteServerEndpointId(RouteServerEndpointIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetRouteServerEndpointId(RouteServerEndpointIdT &&value)
AWS_EC2_API CreateRouteServerPeerRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateRouteServerPeerRequest & WithDryRun(bool value)
CreateRouteServerPeerRequest & WithBgpOptions(BgpOptionsT &&value)
CreateRouteServerPeerRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateRouteServerPeerRequest & WithPeerAddress(PeerAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector