AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVirtualInterfaceId(const Aws::String& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = value; }
45 inline void SetVirtualInterfaceId(Aws::String&& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = std::move(value); }
46 inline void SetVirtualInterfaceId(const char* value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId.assign(value); }
48 inline StartBgpFailoverTestRequest& WithVirtualInterfaceId(Aws::String&& value) { SetVirtualInterfaceId(std::move(value)); return *this;}
49 inline StartBgpFailoverTestRequest& WithVirtualInterfaceId(const char* value) { SetVirtualInterfaceId(value); return *this;}
51
53
56 inline const Aws::Vector<Aws::String>& GetBgpPeers() const{ return m_bgpPeers; }
57 inline bool BgpPeersHasBeenSet() const { return m_bgpPeersHasBeenSet; }
58 inline void SetBgpPeers(const Aws::Vector<Aws::String>& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = value; }
59 inline void SetBgpPeers(Aws::Vector<Aws::String>&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = std::move(value); }
61 inline StartBgpFailoverTestRequest& WithBgpPeers(Aws::Vector<Aws::String>&& value) { SetBgpPeers(std::move(value)); return *this;}
62 inline StartBgpFailoverTestRequest& AddBgpPeers(const Aws::String& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.push_back(value); return *this; }
63 inline StartBgpFailoverTestRequest& AddBgpPeers(Aws::String&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.push_back(std::move(value)); return *this; }
64 inline StartBgpFailoverTestRequest& AddBgpPeers(const char* value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.push_back(value); return *this; }
66
68
73 inline int GetTestDurationInMinutes() const{ return m_testDurationInMinutes; }
74 inline bool TestDurationInMinutesHasBeenSet() const { return m_testDurationInMinutesHasBeenSet; }
75 inline void SetTestDurationInMinutes(int value) { m_testDurationInMinutesHasBeenSet = true; m_testDurationInMinutes = value; }
78 private:
79
80 Aws::String m_virtualInterfaceId;
81 bool m_virtualInterfaceIdHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_bgpPeers;
84 bool m_bgpPeersHasBeenSet = false;
85
86 int m_testDurationInMinutes;
87 bool m_testDurationInMinutesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DirectConnect
92} // namespace Aws
StartBgpFailoverTestRequest & AddBgpPeers(Aws::String &&value)
StartBgpFailoverTestRequest & WithTestDurationInMinutes(int value)
StartBgpFailoverTestRequest & AddBgpPeers(const Aws::String &value)
StartBgpFailoverTestRequest & WithVirtualInterfaceId(const char *value)
StartBgpFailoverTestRequest & WithVirtualInterfaceId(Aws::String &&value)
StartBgpFailoverTestRequest & WithVirtualInterfaceId(const Aws::String &value)
StartBgpFailoverTestRequest & AddBgpPeers(const char *value)
void SetBgpPeers(const Aws::Vector< Aws::String > &value)
StartBgpFailoverTestRequest & WithBgpPeers(const Aws::Vector< Aws::String > &value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
StartBgpFailoverTestRequest & WithBgpPeers(Aws::Vector< Aws::String > &&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