/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DirectConnect { namespace Model { /** */ class UpdateDirectConnectGatewayAssociationRequest : public DirectConnectRequest { public: AWS_DIRECTCONNECT_API UpdateDirectConnectGatewayAssociationRequest(); // 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 "UpdateDirectConnectGatewayAssociation"; } AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override; AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the Direct Connect gateway association.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The ID of the Direct Connect gateway association.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The ID of the Direct Connect gateway association.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The ID of the Direct Connect gateway association.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The ID of the Direct Connect gateway association.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The ID of the Direct Connect gateway association.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The ID of the Direct Connect gateway association.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The ID of the Direct Connect gateway association.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline const Aws::Vector& GetAddAllowedPrefixesToDirectConnectGateway() const{ return m_addAllowedPrefixesToDirectConnectGateway; } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline bool AddAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet; } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline void SetAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = value; } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline void SetAddAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway = std::move(value); } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithAddAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { SetAddAllowedPrefixesToDirectConnectGateway(value); return *this;} /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithAddAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { SetAddAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;} /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; } /** *

The Amazon VPC prefixes to advertise to the Direct Connect gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& AddAddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_addAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; } /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline const Aws::Vector& GetRemoveAllowedPrefixesToDirectConnectGateway() const{ return m_removeAllowedPrefixesToDirectConnectGateway; } /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline bool RemoveAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet; } /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline void SetRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway = value; } /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline void SetRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway = std::move(value); } /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithRemoveAllowedPrefixesToDirectConnectGateway(const Aws::Vector& value) { SetRemoveAllowedPrefixesToDirectConnectGateway(value); return *this;} /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& WithRemoveAllowedPrefixesToDirectConnectGateway(Aws::Vector&& value) { SetRemoveAllowedPrefixesToDirectConnectGateway(std::move(value)); return *this;} /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& AddRemoveAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway.push_back(value); return *this; } /** *

The Amazon VPC prefixes to no longer advertise to the Direct Connect * gateway.

*/ inline UpdateDirectConnectGatewayAssociationRequest& AddRemoveAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_removeAllowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; } private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::Vector m_addAllowedPrefixesToDirectConnectGateway; bool m_addAllowedPrefixesToDirectConnectGatewayHasBeenSet = false; Aws::Vector m_removeAllowedPrefixesToDirectConnectGateway; bool m_removeAllowedPrefixesToDirectConnectGatewayHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws