AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
StartBgpFailoverTestRequest.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/directconnect/DirectConnectRequest.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DirectConnect {
16namespace Model {
17
21 public:
22 AWS_DIRECTCONNECT_API StartBgpFailoverTestRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "StartBgpFailoverTest"; }
29
30 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
31
32 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
39 inline bool VirtualInterfaceIdHasBeenSet() const { return m_virtualInterfaceIdHasBeenSet; }
40 template <typename VirtualInterfaceIdT = Aws::String>
41 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) {
42 m_virtualInterfaceIdHasBeenSet = true;
43 m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value);
44 }
45 template <typename VirtualInterfaceIdT = Aws::String>
47 SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetBgpPeers() const { return m_bgpPeers; }
57 inline bool BgpPeersHasBeenSet() const { return m_bgpPeersHasBeenSet; }
58 template <typename BgpPeersT = Aws::Vector<Aws::String>>
59 void SetBgpPeers(BgpPeersT&& value) {
60 m_bgpPeersHasBeenSet = true;
61 m_bgpPeers = std::forward<BgpPeersT>(value);
62 }
63 template <typename BgpPeersT = Aws::Vector<Aws::String>>
65 SetBgpPeers(std::forward<BgpPeersT>(value));
66 return *this;
67 }
68 template <typename BgpPeersT = Aws::String>
70 m_bgpPeersHasBeenSet = true;
71 m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value));
72 return *this;
73 }
75
77
82 inline int GetTestDurationInMinutes() const { return m_testDurationInMinutes; }
83 inline bool TestDurationInMinutesHasBeenSet() const { return m_testDurationInMinutesHasBeenSet; }
84 inline void SetTestDurationInMinutes(int value) {
85 m_testDurationInMinutesHasBeenSet = true;
86 m_testDurationInMinutes = value;
87 }
90 return *this;
91 }
93 private:
94 Aws::String m_virtualInterfaceId;
95
96 Aws::Vector<Aws::String> m_bgpPeers;
97
98 int m_testDurationInMinutes{0};
99 bool m_virtualInterfaceIdHasBeenSet = false;
100 bool m_bgpPeersHasBeenSet = false;
101 bool m_testDurationInMinutesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DirectConnect
106} // 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