/**
* 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
{
template
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // 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.
See Also:
AWS
* API Reference
*/
class GetDeploymentResult
{
public:
AWS_APIGATEWAY_API GetDeploymentResult();
AWS_APIGATEWAY_API GetDeploymentResult(const Aws::AmazonWebServiceResult& result);
AWS_APIGATEWAY_API GetDeploymentResult& operator=(const Aws::AmazonWebServiceResult& result);
///@{
/**
* The identifier for the deployment resource.
*/
inline const Aws::String& GetId() const{ return m_id; }
inline void SetId(const Aws::String& value) { m_id = value; }
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
inline void SetId(const char* value) { m_id.assign(value); }
inline GetDeploymentResult& WithId(const Aws::String& value) { SetId(value); return *this;}
inline GetDeploymentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
inline GetDeploymentResult& WithId(const char* value) { SetId(value); return *this;}
///@}
///@{
/**
* The description for the deployment resource.
*/
inline const Aws::String& GetDescription() const{ return m_description; }
inline void SetDescription(const Aws::String& value) { m_description = value; }
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
inline void SetDescription(const char* value) { m_description.assign(value); }
inline GetDeploymentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
inline GetDeploymentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
inline GetDeploymentResult& 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; }
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
inline GetDeploymentResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
inline GetDeploymentResult& 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; }
inline void SetApiSummary(const Aws::Map>& value) { m_apiSummary = value; }
inline void SetApiSummary(Aws::Map>&& value) { m_apiSummary = std::move(value); }
inline GetDeploymentResult& WithApiSummary(const Aws::Map>& value) { SetApiSummary(value); return *this;}
inline GetDeploymentResult& WithApiSummary(Aws::Map>&& value) { SetApiSummary(std::move(value)); return *this;}
inline GetDeploymentResult& AddApiSummary(const Aws::String& key, const Aws::Map& value) { m_apiSummary.emplace(key, value); return *this; }
inline GetDeploymentResult& AddApiSummary(Aws::String&& key, const Aws::Map& value) { m_apiSummary.emplace(std::move(key), value); return *this; }
inline GetDeploymentResult& AddApiSummary(const Aws::String& key, Aws::Map&& value) { m_apiSummary.emplace(key, std::move(value)); return *this; }
inline GetDeploymentResult& AddApiSummary(Aws::String&& key, Aws::Map&& value) { m_apiSummary.emplace(std::move(key), std::move(value)); return *this; }
inline GetDeploymentResult& AddApiSummary(const char* key, Aws::Map&& value) { m_apiSummary.emplace(key, std::move(value)); return *this; }
inline GetDeploymentResult& AddApiSummary(const char* key, const Aws::Map& value) { m_apiSummary.emplace(key, value); return *this; }
///@}
///@{
inline const Aws::String& GetRequestId() const{ return m_requestId; }
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
inline GetDeploymentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline GetDeploymentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline GetDeploymentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
///@}
private:
Aws::String m_id;
Aws::String m_description;
Aws::Utils::DateTime m_createdDate;
Aws::Map> m_apiSummary;
Aws::String m_requestId;
};
} // namespace Model
} // namespace APIGateway
} // namespace Aws