/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DirectConnect { namespace Model { /** */ class StartBgpFailoverTestRequest : public DirectConnectRequest { public: AWS_DIRECTCONNECT_API StartBgpFailoverTestRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartBgpFailoverTest"; } AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the virtual interface you want to test.

*/ inline const Aws::String& GetVirtualInterfaceId() const{ return m_virtualInterfaceId; } /** *

The ID of the virtual interface you want to test.

*/ inline bool VirtualInterfaceIdHasBeenSet() const { return m_virtualInterfaceIdHasBeenSet; } /** *

The ID of the virtual interface you want to test.

*/ inline void SetVirtualInterfaceId(const Aws::String& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = value; } /** *

The ID of the virtual interface you want to test.

*/ inline void SetVirtualInterfaceId(Aws::String&& value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId = std::move(value); } /** *

The ID of the virtual interface you want to test.

*/ inline void SetVirtualInterfaceId(const char* value) { m_virtualInterfaceIdHasBeenSet = true; m_virtualInterfaceId.assign(value); } /** *

The ID of the virtual interface you want to test.

*/ inline StartBgpFailoverTestRequest& WithVirtualInterfaceId(const Aws::String& value) { SetVirtualInterfaceId(value); return *this;} /** *

The ID of the virtual interface you want to test.

*/ inline StartBgpFailoverTestRequest& WithVirtualInterfaceId(Aws::String&& value) { SetVirtualInterfaceId(std::move(value)); return *this;} /** *

The ID of the virtual interface you want to test.

*/ inline StartBgpFailoverTestRequest& WithVirtualInterfaceId(const char* value) { SetVirtualInterfaceId(value); return *this;} /** *

The BGP peers to place in the DOWN state.

*/ inline const Aws::Vector& GetBgpPeers() const{ return m_bgpPeers; } /** *

The BGP peers to place in the DOWN state.

*/ inline bool BgpPeersHasBeenSet() const { return m_bgpPeersHasBeenSet; } /** *

The BGP peers to place in the DOWN state.

*/ inline void SetBgpPeers(const Aws::Vector& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = value; } /** *

The BGP peers to place in the DOWN state.

*/ inline void SetBgpPeers(Aws::Vector&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers = std::move(value); } /** *

The BGP peers to place in the DOWN state.

*/ inline StartBgpFailoverTestRequest& WithBgpPeers(const Aws::Vector& value) { SetBgpPeers(value); return *this;} /** *

The BGP peers to place in the DOWN state.

*/ inline StartBgpFailoverTestRequest& WithBgpPeers(Aws::Vector&& value) { SetBgpPeers(std::move(value)); return *this;} /** *

The BGP peers to place in the DOWN state.

*/ inline StartBgpFailoverTestRequest& AddBgpPeers(const Aws::String& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.push_back(value); return *this; } /** *

The BGP peers to place in the DOWN state.

*/ inline StartBgpFailoverTestRequest& AddBgpPeers(Aws::String&& value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.push_back(std::move(value)); return *this; } /** *

The BGP peers to place in the DOWN state.

*/ inline StartBgpFailoverTestRequest& AddBgpPeers(const char* value) { m_bgpPeersHasBeenSet = true; m_bgpPeers.push_back(value); return *this; } /** *

The time in minutes that the virtual interface failover test will last.

*

Maximum value: 4,320 minutes (72 hours).

Default: 180 minutes (3 * hours).

*/ inline int GetTestDurationInMinutes() const{ return m_testDurationInMinutes; } /** *

The time in minutes that the virtual interface failover test will last.

*

Maximum value: 4,320 minutes (72 hours).

Default: 180 minutes (3 * hours).

*/ inline bool TestDurationInMinutesHasBeenSet() const { return m_testDurationInMinutesHasBeenSet; } /** *

The time in minutes that the virtual interface failover test will last.

*

Maximum value: 4,320 minutes (72 hours).

Default: 180 minutes (3 * hours).

*/ inline void SetTestDurationInMinutes(int value) { m_testDurationInMinutesHasBeenSet = true; m_testDurationInMinutes = value; } /** *

The time in minutes that the virtual interface failover test will last.

*

Maximum value: 4,320 minutes (72 hours).

Default: 180 minutes (3 * hours).

*/ inline StartBgpFailoverTestRequest& WithTestDurationInMinutes(int value) { SetTestDurationInMinutes(value); return *this;} private: Aws::String m_virtualInterfaceId; bool m_virtualInterfaceIdHasBeenSet = false; Aws::Vector m_bgpPeers; bool m_bgpPeersHasBeenSet = false; int m_testDurationInMinutes; bool m_testDurationInMinutesHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws