/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateConnectPeerRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateConnectPeerRequest(); // 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 "CreateConnectPeer"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

The ID of the connection attachment.

*/ inline const Aws::String& GetConnectAttachmentId() const{ return m_connectAttachmentId; } /** *

The ID of the connection attachment.

*/ inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; } /** *

The ID of the connection attachment.

*/ inline void SetConnectAttachmentId(const Aws::String& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = value; } /** *

The ID of the connection attachment.

*/ inline void SetConnectAttachmentId(Aws::String&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::move(value); } /** *

The ID of the connection attachment.

*/ inline void SetConnectAttachmentId(const char* value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId.assign(value); } /** *

The ID of the connection attachment.

*/ inline CreateConnectPeerRequest& WithConnectAttachmentId(const Aws::String& value) { SetConnectAttachmentId(value); return *this;} /** *

The ID of the connection attachment.

*/ inline CreateConnectPeerRequest& WithConnectAttachmentId(Aws::String&& value) { SetConnectAttachmentId(std::move(value)); return *this;} /** *

The ID of the connection attachment.

*/ inline CreateConnectPeerRequest& WithConnectAttachmentId(const char* value) { SetConnectAttachmentId(value); return *this;} /** *

A Connect peer core network address.

*/ inline const Aws::String& GetCoreNetworkAddress() const{ return m_coreNetworkAddress; } /** *

A Connect peer core network address.

*/ inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; } /** *

A Connect peer core network address.

*/ inline void SetCoreNetworkAddress(const Aws::String& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = value; } /** *

A Connect peer core network address.

*/ inline void SetCoreNetworkAddress(Aws::String&& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = std::move(value); } /** *

A Connect peer core network address.

*/ inline void SetCoreNetworkAddress(const char* value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress.assign(value); } /** *

A Connect peer core network address.

*/ inline CreateConnectPeerRequest& WithCoreNetworkAddress(const Aws::String& value) { SetCoreNetworkAddress(value); return *this;} /** *

A Connect peer core network address.

*/ inline CreateConnectPeerRequest& WithCoreNetworkAddress(Aws::String&& value) { SetCoreNetworkAddress(std::move(value)); return *this;} /** *

A Connect peer core network address.

*/ inline CreateConnectPeerRequest& WithCoreNetworkAddress(const char* value) { SetCoreNetworkAddress(value); return *this;} /** *

The Connect peer address.

*/ inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; } /** *

The Connect peer address.

*/ inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; } /** *

The Connect peer address.

*/ inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; } /** *

The Connect peer address.

*/ inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); } /** *

The Connect peer address.

*/ inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); } /** *

The Connect peer address.

*/ inline CreateConnectPeerRequest& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;} /** *

The Connect peer address.

*/ inline CreateConnectPeerRequest& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;} /** *

The Connect peer address.

*/ inline CreateConnectPeerRequest& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;} /** *

The Connect peer BGP options.

*/ inline const BgpOptions& GetBgpOptions() const{ return m_bgpOptions; } /** *

The Connect peer BGP options.

*/ inline bool BgpOptionsHasBeenSet() const { return m_bgpOptionsHasBeenSet; } /** *

The Connect peer BGP options.

*/ inline void SetBgpOptions(const BgpOptions& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = value; } /** *

The Connect peer BGP options.

*/ inline void SetBgpOptions(BgpOptions&& value) { m_bgpOptionsHasBeenSet = true; m_bgpOptions = std::move(value); } /** *

The Connect peer BGP options.

*/ inline CreateConnectPeerRequest& WithBgpOptions(const BgpOptions& value) { SetBgpOptions(value); return *this;} /** *

The Connect peer BGP options.

*/ inline CreateConnectPeerRequest& WithBgpOptions(BgpOptions&& value) { SetBgpOptions(std::move(value)); return *this;} /** *

The inside IP addresses used for BGP peering.

*/ inline const Aws::Vector& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; } /** *

The inside IP addresses used for BGP peering.

*/ inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; } /** *

The inside IP addresses used for BGP peering.

*/ inline void SetInsideCidrBlocks(const Aws::Vector& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; } /** *

The inside IP addresses used for BGP peering.

*/ inline void SetInsideCidrBlocks(Aws::Vector&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); } /** *

The inside IP addresses used for BGP peering.

*/ inline CreateConnectPeerRequest& WithInsideCidrBlocks(const Aws::Vector& value) { SetInsideCidrBlocks(value); return *this;} /** *

The inside IP addresses used for BGP peering.

*/ inline CreateConnectPeerRequest& WithInsideCidrBlocks(Aws::Vector&& value) { SetInsideCidrBlocks(std::move(value)); return *this;} /** *

The inside IP addresses used for BGP peering.

*/ inline CreateConnectPeerRequest& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; } /** *

The inside IP addresses used for BGP peering.

*/ inline CreateConnectPeerRequest& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; } /** *

The inside IP addresses used for BGP peering.

*/ inline CreateConnectPeerRequest& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; } /** *

The tags associated with the peer request.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags associated with the peer request.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags associated with the peer request.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags associated with the peer request.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags associated with the peer request.

*/ inline CreateConnectPeerRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags associated with the peer request.

*/ inline CreateConnectPeerRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with the peer request.

*/ inline CreateConnectPeerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags associated with the peer request.

*/ inline CreateConnectPeerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The client token associated with the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token associated with the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token associated with the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token associated with the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token associated with the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token associated with the request.

*/ inline CreateConnectPeerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token associated with the request.

*/ inline CreateConnectPeerRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token associated with the request.

*/ inline CreateConnectPeerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_connectAttachmentId; bool m_connectAttachmentIdHasBeenSet = false; Aws::String m_coreNetworkAddress; bool m_coreNetworkAddressHasBeenSet = false; Aws::String m_peerAddress; bool m_peerAddressHasBeenSet = false; BgpOptions m_bgpOptions; bool m_bgpOptionsHasBeenSet = false; Aws::Vector m_insideCidrBlocks; bool m_insideCidrBlocksHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws