/** * 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 the usage data of a usage plan.

See Also:

AWS * API Reference

*/ class GetUsageResult { public: AWS_APIGATEWAY_API GetUsageResult(); AWS_APIGATEWAY_API GetUsageResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAY_API GetUsageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The plan Id associated with this usage data.

*/ inline const Aws::String& GetUsagePlanId() const{ return m_usagePlanId; } /** *

The plan Id associated with this usage data.

*/ inline void SetUsagePlanId(const Aws::String& value) { m_usagePlanId = value; } /** *

The plan Id associated with this usage data.

*/ inline void SetUsagePlanId(Aws::String&& value) { m_usagePlanId = std::move(value); } /** *

The plan Id associated with this usage data.

*/ inline void SetUsagePlanId(const char* value) { m_usagePlanId.assign(value); } /** *

The plan Id associated with this usage data.

*/ inline GetUsageResult& WithUsagePlanId(const Aws::String& value) { SetUsagePlanId(value); return *this;} /** *

The plan Id associated with this usage data.

*/ inline GetUsageResult& WithUsagePlanId(Aws::String&& value) { SetUsagePlanId(std::move(value)); return *this;} /** *

The plan Id associated with this usage data.

*/ inline GetUsageResult& WithUsagePlanId(const char* value) { SetUsagePlanId(value); return *this;} /** *

The starting date of the usage data.

*/ inline const Aws::String& GetStartDate() const{ return m_startDate; } /** *

The starting date of the usage data.

*/ inline void SetStartDate(const Aws::String& value) { m_startDate = value; } /** *

The starting date of the usage data.

*/ inline void SetStartDate(Aws::String&& value) { m_startDate = std::move(value); } /** *

The starting date of the usage data.

*/ inline void SetStartDate(const char* value) { m_startDate.assign(value); } /** *

The starting date of the usage data.

*/ inline GetUsageResult& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;} /** *

The starting date of the usage data.

*/ inline GetUsageResult& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;} /** *

The starting date of the usage data.

*/ inline GetUsageResult& WithStartDate(const char* value) { SetStartDate(value); return *this;} /** *

The ending date of the usage data.

*/ inline const Aws::String& GetEndDate() const{ return m_endDate; } /** *

The ending date of the usage data.

*/ inline void SetEndDate(const Aws::String& value) { m_endDate = value; } /** *

The ending date of the usage data.

*/ inline void SetEndDate(Aws::String&& value) { m_endDate = std::move(value); } /** *

The ending date of the usage data.

*/ inline void SetEndDate(const char* value) { m_endDate.assign(value); } /** *

The ending date of the usage data.

*/ inline GetUsageResult& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;} /** *

The ending date of the usage data.

*/ inline GetUsageResult& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;} /** *

The ending date of the usage data.

*/ inline GetUsageResult& WithEndDate(const char* value) { SetEndDate(value); return *this;} 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 GetUsageResult& WithPosition(const Aws::String& value) { SetPosition(value); return *this;} inline GetUsageResult& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;} inline GetUsageResult& WithPosition(const char* value) { SetPosition(value); return *this;} /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

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

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

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

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

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

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& WithItems(const Aws::Map>>& value) { SetItems(value); return *this;} /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& WithItems(Aws::Map>>&& value) { SetItems(std::move(value)); return *this;} /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& AddItems(const Aws::String& key, const Aws::Vector>& value) { m_items.emplace(key, value); return *this; } /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& AddItems(Aws::String&& key, const Aws::Vector>& value) { m_items.emplace(std::move(key), value); return *this; } /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& AddItems(const Aws::String& key, Aws::Vector>&& value) { m_items.emplace(key, std::move(value)); return *this; } /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& AddItems(Aws::String&& key, Aws::Vector>&& value) { m_items.emplace(std::move(key), std::move(value)); return *this; } /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& AddItems(const char* key, Aws::Vector>&& value) { m_items.emplace(key, std::move(value)); return *this; } /** *

The usage data, as daily logs of used and remaining quotas, over the * specified time interval indexed over the API keys in a usage plan. For example, * {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, * where {api_key} stands for an API key value and the daily log entry * is of the format [used quota, remaining quota].

*/ inline GetUsageResult& AddItems(const char* key, const Aws::Vector>& value) { m_items.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 GetUsageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetUsageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetUsageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_usagePlanId; Aws::String m_startDate; Aws::String m_endDate; Aws::String m_position; Aws::Map>> m_items; Aws::String m_requestId; }; } // namespace Model } // namespace APIGateway } // namespace Aws