AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateBGPPeerRequest.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/directconnect/model/NewBGPPeer.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectConnect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DIRECTCONNECT_API CreateBGPPeerRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateBGPPeer"; }
32
33 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
34
35 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
43 inline bool VirtualInterfaceIdHasBeenSet() const { return m_virtualInterfaceIdHasBeenSet; }
44 template<typename VirtualInterfaceIdT = Aws::String>
45 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value); }
46 template<typename VirtualInterfaceIdT = Aws::String>
47 CreateBGPPeerRequest& WithVirtualInterfaceId(VirtualInterfaceIdT&& value) { SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value)); return *this;}
49
51
54 inline const NewBGPPeer& GetNewBGPPeer() const { return m_newBGPPeer; }
55 inline bool NewBGPPeerHasBeenSet() const { return m_newBGPPeerHasBeenSet; }
56 template<typename NewBGPPeerT = NewBGPPeer>
57 void SetNewBGPPeer(NewBGPPeerT&& value) { m_newBGPPeerHasBeenSet = true; m_newBGPPeer = std::forward<NewBGPPeerT>(value); }
58 template<typename NewBGPPeerT = NewBGPPeer>
59 CreateBGPPeerRequest& WithNewBGPPeer(NewBGPPeerT&& value) { SetNewBGPPeer(std::forward<NewBGPPeerT>(value)); return *this;}
61 private:
62
63 Aws::String m_virtualInterfaceId;
64 bool m_virtualInterfaceIdHasBeenSet = false;
65
66 NewBGPPeer m_newBGPPeer;
67 bool m_newBGPPeerHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace DirectConnect
72} // namespace Aws
void SetVirtualInterfaceId(VirtualInterfaceIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateBGPPeerRequest & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
AWS_DIRECTCONNECT_API CreateBGPPeerRequest()=default
CreateBGPPeerRequest & WithNewBGPPeer(NewBGPPeerT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String