AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartBgpFailoverTestRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectConnect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DIRECTCONNECT_API StartBgpFailoverTestRequest() = 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 "StartBgpFailoverTest"; }
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 StartBgpFailoverTestRequest& WithVirtualInterfaceId(VirtualInterfaceIdT&& value) { SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Aws::String>& GetBgpPeers() const { return m_bgpPeers; }
55 inline bool BgpPeersHasBeenSet() const { return m_bgpPeersHasBeenSet; }
56 template<typename BgpPeersT = Aws::Vector<Aws::String>>
57 void SetBgpPeers(BgpPeersT&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = std::forward<BgpPeersT>(value); }
58 template<typename BgpPeersT = Aws::Vector<Aws::String>>
59 StartBgpFailoverTestRequest& WithBgpPeers(BgpPeersT&& value) { SetBgpPeers(std::forward<BgpPeersT>(value)); return *this;}
60 template<typename BgpPeersT = Aws::String>
61 StartBgpFailoverTestRequest& AddBgpPeers(BgpPeersT&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value)); return *this; }
63
65
70 inline int GetTestDurationInMinutes() const { return m_testDurationInMinutes; }
71 inline bool TestDurationInMinutesHasBeenSet() const { return m_testDurationInMinutesHasBeenSet; }
72 inline void SetTestDurationInMinutes(int value) { m_testDurationInMinutesHasBeenSet = true; m_testDurationInMinutes = value; }
75 private:
76
77 Aws::String m_virtualInterfaceId;
78 bool m_virtualInterfaceIdHasBeenSet = false;
79
80 Aws::Vector<Aws::String> m_bgpPeers;
81 bool m_bgpPeersHasBeenSet = false;
82
83 int m_testDurationInMinutes{0};
84 bool m_testDurationInMinutesHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace DirectConnect
89} // namespace Aws
StartBgpFailoverTestRequest & WithTestDurationInMinutes(int value)
AWS_DIRECTCONNECT_API StartBgpFailoverTestRequest()=default
StartBgpFailoverTestRequest & AddBgpPeers(BgpPeersT &&value)
StartBgpFailoverTestRequest & WithBgpPeers(BgpPeersT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
StartBgpFailoverTestRequest & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector