/** * 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 EC2 { namespace Model { /** */ class ReleaseHostsRequest : public EC2Request { public: AWS_EC2_API ReleaseHostsRequest(); // 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 "ReleaseHosts"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The IDs of the Dedicated Hosts to release.

*/ inline const Aws::Vector& GetHostIds() const{ return m_hostIds; } /** *

The IDs of the Dedicated Hosts to release.

*/ inline bool HostIdsHasBeenSet() const { return m_hostIdsHasBeenSet; } /** *

The IDs of the Dedicated Hosts to release.

*/ inline void SetHostIds(const Aws::Vector& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; } /** *

The IDs of the Dedicated Hosts to release.

*/ inline void SetHostIds(Aws::Vector&& value) { m_hostIdsHasBeenSet = true; m_hostIds = std::move(value); } /** *

The IDs of the Dedicated Hosts to release.

*/ inline ReleaseHostsRequest& WithHostIds(const Aws::Vector& value) { SetHostIds(value); return *this;} /** *

The IDs of the Dedicated Hosts to release.

*/ inline ReleaseHostsRequest& WithHostIds(Aws::Vector&& value) { SetHostIds(std::move(value)); return *this;} /** *

The IDs of the Dedicated Hosts to release.

*/ inline ReleaseHostsRequest& AddHostIds(const Aws::String& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; } /** *

The IDs of the Dedicated Hosts to release.

*/ inline ReleaseHostsRequest& AddHostIds(Aws::String&& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(std::move(value)); return *this; } /** *

The IDs of the Dedicated Hosts to release.

*/ inline ReleaseHostsRequest& AddHostIds(const char* value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; } private: Aws::Vector m_hostIds; bool m_hostIdsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws