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

An immutable representation of a RestApi resource that can be called * by users using Stages. A deployment must be associated with a * Stage for it to be callable over the Internet.

To create a deployment, call POST on the * Deployments resource of a RestApi. To view, update, or delete a * deployment, call GET, PATCH, or DELETE on * the specified deployment resource * (/restapis/{restapi_id}/deployments/{deployment_id}).

See * Also:

AWS * API Reference

*/ class AWS_APIGATEWAY_API Deployment { public: Deployment(); Deployment(Aws::Utils::Json::JsonView jsonValue); Deployment& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier for the deployment resource.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier for the deployment resource.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the deployment resource.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the deployment resource.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier for the deployment resource.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier for the deployment resource.

*/ inline Deployment& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier for the deployment resource.

*/ inline Deployment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier for the deployment resource.

*/ inline Deployment& WithId(const char* value) { SetId(value); return *this;} /** *

The description for the deployment resource.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the deployment resource.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the deployment resource.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for the deployment resource.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for the deployment resource.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for the deployment resource.

*/ inline Deployment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the deployment resource.

*/ inline Deployment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the deployment resource.

*/ inline Deployment& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The date and time that the deployment resource was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date and time that the deployment resource was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date and time that the deployment resource was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date and time that the deployment resource was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The date and time that the deployment resource was created.

*/ inline Deployment& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date and time that the deployment resource was created.

*/ inline Deployment& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline const Aws::Map>& GetApiSummary() const{ return m_apiSummary; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline bool ApiSummaryHasBeenSet() const { return m_apiSummaryHasBeenSet; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline void SetApiSummary(const Aws::Map>& value) { m_apiSummaryHasBeenSet = true; m_apiSummary = value; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline void SetApiSummary(Aws::Map>&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary = std::move(value); } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& WithApiSummary(const Aws::Map>& value) { SetApiSummary(value); return *this;} /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& WithApiSummary(Aws::Map>&& value) { SetApiSummary(std::move(value)); return *this;} /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& AddApiSummary(const Aws::String& key, const Aws::Map& value) { m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(key, value); return *this; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& AddApiSummary(Aws::String&& key, const Aws::Map& value) { m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(std::move(key), value); return *this; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& AddApiSummary(const Aws::String& key, Aws::Map&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(key, std::move(value)); return *this; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& AddApiSummary(Aws::String&& key, Aws::Map&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(std::move(key), std::move(value)); return *this; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& AddApiSummary(const char* key, Aws::Map&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(key, std::move(value)); return *this; } /** *

A summary of the RestApi at the date and time that the deployment * resource was created.

*/ inline Deployment& AddApiSummary(const char* key, const Aws::Map& value) { m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(key, value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet; Aws::Map> m_apiSummary; bool m_apiSummaryHasBeenSet; }; } // namespace Model } // namespace APIGateway } // namespace Aws