AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRouteServerPeerRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/RouteServerBgpOptionsRequest.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API CreateRouteServerPeerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRouteServerPeer"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetRouteServerEndpointId() const { return m_routeServerEndpointId; }
47 inline bool RouteServerEndpointIdHasBeenSet() const { return m_routeServerEndpointIdHasBeenSet; }
48 template<typename RouteServerEndpointIdT = Aws::String>
49 void SetRouteServerEndpointId(RouteServerEndpointIdT&& value) { m_routeServerEndpointIdHasBeenSet = true; m_routeServerEndpointId = std::forward<RouteServerEndpointIdT>(value); }
50 template<typename RouteServerEndpointIdT = Aws::String>
51 CreateRouteServerPeerRequest& WithRouteServerEndpointId(RouteServerEndpointIdT&& value) { SetRouteServerEndpointId(std::forward<RouteServerEndpointIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
59 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
60 template<typename PeerAddressT = Aws::String>
61 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
62 template<typename PeerAddressT = Aws::String>
63 CreateRouteServerPeerRequest& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
65
67
71 inline const RouteServerBgpOptionsRequest& GetBgpOptions() const { return m_bgpOptions; }
72 inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; }
73 template<typename BgpOptionsT = RouteServerBgpOptionsRequest>
74 void SetBgpOptions(BgpOptionsT&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::forward<BgpOptionsT>(value); }
75 template<typename BgpOptionsT = RouteServerBgpOptionsRequest>
76 CreateRouteServerPeerRequest& WithBgpOptions(BgpOptionsT&& value) { SetBgpOptions(std::forward<BgpOptionsT>(value)); return *this;}
78
80
86 inline bool GetDryRun() const { return m_dryRun; }
87 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
88 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
89 inline CreateRouteServerPeerRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
91
93
96 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
97 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
98 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
99 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
100 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
101 CreateRouteServerPeerRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
102 template<typename TagSpecificationsT = TagSpecification>
103 CreateRouteServerPeerRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
105 private:
106
107 Aws::String m_routeServerEndpointId;
108 bool m_routeServerEndpointIdHasBeenSet = false;
109
110 Aws::String m_peerAddress;
111 bool m_peerAddressHasBeenSet = false;
112
113 RouteServerBgpOptionsRequest m_bgpOptions;
114 bool m_bgpOptionsHasBeenSet = false;
115
116 bool m_dryRun{false};
117 bool m_dryRunHasBeenSet = false;
118
119 Aws::Vector<TagSpecification> m_tagSpecifications;
120 bool m_tagSpecificationsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace EC2
125} // 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