/** * 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 DirectoryService { namespace Model { /** */ class RemoveIpRoutesRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API RemoveIpRoutesRequest(); // 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 "RemoveIpRoutes"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline RemoveIpRoutesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline RemoveIpRoutesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

Identifier (ID) of the directory from which you want to remove the IP * addresses.

*/ inline RemoveIpRoutesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

IP address blocks that you want to remove.

*/ inline const Aws::Vector& GetCidrIps() const{ return m_cidrIps; } /** *

IP address blocks that you want to remove.

*/ inline bool CidrIpsHasBeenSet() const { return m_cidrIpsHasBeenSet; } /** *

IP address blocks that you want to remove.

*/ inline void SetCidrIps(const Aws::Vector& value) { m_cidrIpsHasBeenSet = true; m_cidrIps = value; } /** *

IP address blocks that you want to remove.

*/ inline void SetCidrIps(Aws::Vector&& value) { m_cidrIpsHasBeenSet = true; m_cidrIps = std::move(value); } /** *

IP address blocks that you want to remove.

*/ inline RemoveIpRoutesRequest& WithCidrIps(const Aws::Vector& value) { SetCidrIps(value); return *this;} /** *

IP address blocks that you want to remove.

*/ inline RemoveIpRoutesRequest& WithCidrIps(Aws::Vector&& value) { SetCidrIps(std::move(value)); return *this;} /** *

IP address blocks that you want to remove.

*/ inline RemoveIpRoutesRequest& AddCidrIps(const Aws::String& value) { m_cidrIpsHasBeenSet = true; m_cidrIps.push_back(value); return *this; } /** *

IP address blocks that you want to remove.

*/ inline RemoveIpRoutesRequest& AddCidrIps(Aws::String&& value) { m_cidrIpsHasBeenSet = true; m_cidrIps.push_back(std::move(value)); return *this; } /** *

IP address blocks that you want to remove.

*/ inline RemoveIpRoutesRequest& AddCidrIps(const char* value) { m_cidrIpsHasBeenSet = true; m_cidrIps.push_back(value); return *this; } private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::Vector m_cidrIps; bool m_cidrIpsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws