/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace APIGateway { namespace Model { /** *

Represents a collection resource that contains zero or more references to * your existing deployments, and links that guide you on how to interact with your * collection. The collection offers a paginated view of the contained * deployments.

To create a new deployment of a * RestApi, make a POST request against this resource. To view, * update, or delete an existing deployment, make a GET, * PATCH, or DELETE request, respectively, on a specified * Deployment resource.

See * Also:

AWS * API Reference

*/ class AWS_APIGATEWAY_API GetDeploymentsResult { public: GetDeploymentsResult(); GetDeploymentsResult(const Aws::AmazonWebServiceResult& result); GetDeploymentsResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Aws::String& GetPosition() const{ return m_position; } inline void SetPosition(const Aws::String& value) { m_position = value; } inline void SetPosition(Aws::String&& value) { m_position = std::move(value); } inline void SetPosition(const char* value) { m_position.assign(value); } inline GetDeploymentsResult& WithPosition(const Aws::String& value) { SetPosition(value); return *this;} inline GetDeploymentsResult& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;} inline GetDeploymentsResult& WithPosition(const char* value) { SetPosition(value); return *this;} /** *

The current page of elements from this collection.

*/ inline const Aws::Vector& GetItems() const{ return m_items; } /** *

The current page of elements from this collection.

*/ inline void SetItems(const Aws::Vector& value) { m_items = value; } /** *

The current page of elements from this collection.

*/ inline void SetItems(Aws::Vector&& value) { m_items = std::move(value); } /** *

The current page of elements from this collection.

*/ inline GetDeploymentsResult& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} /** *

The current page of elements from this collection.

*/ inline GetDeploymentsResult& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} /** *

The current page of elements from this collection.

*/ inline GetDeploymentsResult& AddItems(const Deployment& value) { m_items.push_back(value); return *this; } /** *

The current page of elements from this collection.

*/ inline GetDeploymentsResult& AddItems(Deployment&& value) { m_items.push_back(std::move(value)); return *this; } private: Aws::String m_position; Aws::Vector m_items; }; } // namespace Model } // namespace APIGateway } // namespace Aws