feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,76 @@
add_project(aws-cpp-sdk-service-quotas "C++ SDK for the AWS service-quotas service" aws-cpp-sdk-core)
file(GLOB AWS_SERVICE-QUOTAS_HEADERS
"include/aws/service-quotas/*.h"
)
file(GLOB AWS_SERVICE-QUOTAS_MODEL_HEADERS
"include/aws/service-quotas/model/*.h"
)
file(GLOB AWS_SERVICE-QUOTAS_SOURCE
"source/*.cpp"
)
file(GLOB AWS_SERVICE-QUOTAS_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB SERVICE-QUOTAS_UNIFIED_HEADERS
${AWS_SERVICE-QUOTAS_HEADERS}
${AWS_SERVICE-QUOTAS_MODEL_HEADERS}
)
file(GLOB SERVICE-QUOTAS_UNITY_SRC
${AWS_SERVICE-QUOTAS_SOURCE}
${AWS_SERVICE-QUOTAS_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("SERVICE-QUOTAS" SERVICE-QUOTAS_UNITY_SRC)
endif()
file(GLOB SERVICE-QUOTAS_SRC
${SERVICE-QUOTAS_UNIFIED_HEADERS}
${SERVICE-QUOTAS_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\service-quotas" FILES ${AWS_SERVICE-QUOTAS_HEADERS})
source_group("Header Files\\aws\\service-quotas\\model" FILES ${AWS_SERVICE-QUOTAS_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_SERVICE-QUOTAS_SOURCE})
source_group("Source Files\\model" FILES ${AWS_SERVICE-QUOTAS_MODEL_SOURCE})
endif(MSVC)
endif()
set(SERVICE-QUOTAS_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${SERVICE-QUOTAS_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_SERVICEQUOTAS_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_SERVICE-QUOTAS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/service-quotas)
install (FILES ${AWS_SERVICE-QUOTAS_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/service-quotas/model)
do_packaging()

View File

@@ -0,0 +1,777 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/service-quotas/model/AssociateServiceQuotaTemplateResult.h>
#include <aws/service-quotas/model/DeleteServiceQuotaIncreaseRequestFromTemplateResult.h>
#include <aws/service-quotas/model/DisassociateServiceQuotaTemplateResult.h>
#include <aws/service-quotas/model/GetAWSDefaultServiceQuotaResult.h>
#include <aws/service-quotas/model/GetAssociationForServiceQuotaTemplateResult.h>
#include <aws/service-quotas/model/GetRequestedServiceQuotaChangeResult.h>
#include <aws/service-quotas/model/GetServiceQuotaResult.h>
#include <aws/service-quotas/model/GetServiceQuotaIncreaseRequestFromTemplateResult.h>
#include <aws/service-quotas/model/ListAWSDefaultServiceQuotasResult.h>
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryResult.h>
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryByQuotaResult.h>
#include <aws/service-quotas/model/ListServiceQuotaIncreaseRequestsInTemplateResult.h>
#include <aws/service-quotas/model/ListServiceQuotasResult.h>
#include <aws/service-quotas/model/ListServicesResult.h>
#include <aws/service-quotas/model/PutServiceQuotaIncreaseRequestIntoTemplateResult.h>
#include <aws/service-quotas/model/RequestServiceQuotaIncreaseResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace ServiceQuotas
{
namespace Model
{
class AssociateServiceQuotaTemplateRequest;
class DeleteServiceQuotaIncreaseRequestFromTemplateRequest;
class DisassociateServiceQuotaTemplateRequest;
class GetAWSDefaultServiceQuotaRequest;
class GetAssociationForServiceQuotaTemplateRequest;
class GetRequestedServiceQuotaChangeRequest;
class GetServiceQuotaRequest;
class GetServiceQuotaIncreaseRequestFromTemplateRequest;
class ListAWSDefaultServiceQuotasRequest;
class ListRequestedServiceQuotaChangeHistoryRequest;
class ListRequestedServiceQuotaChangeHistoryByQuotaRequest;
class ListServiceQuotaIncreaseRequestsInTemplateRequest;
class ListServiceQuotasRequest;
class ListServicesRequest;
class PutServiceQuotaIncreaseRequestIntoTemplateRequest;
class RequestServiceQuotaIncreaseRequest;
typedef Aws::Utils::Outcome<AssociateServiceQuotaTemplateResult, ServiceQuotasError> AssociateServiceQuotaTemplateOutcome;
typedef Aws::Utils::Outcome<DeleteServiceQuotaIncreaseRequestFromTemplateResult, ServiceQuotasError> DeleteServiceQuotaIncreaseRequestFromTemplateOutcome;
typedef Aws::Utils::Outcome<DisassociateServiceQuotaTemplateResult, ServiceQuotasError> DisassociateServiceQuotaTemplateOutcome;
typedef Aws::Utils::Outcome<GetAWSDefaultServiceQuotaResult, ServiceQuotasError> GetAWSDefaultServiceQuotaOutcome;
typedef Aws::Utils::Outcome<GetAssociationForServiceQuotaTemplateResult, ServiceQuotasError> GetAssociationForServiceQuotaTemplateOutcome;
typedef Aws::Utils::Outcome<GetRequestedServiceQuotaChangeResult, ServiceQuotasError> GetRequestedServiceQuotaChangeOutcome;
typedef Aws::Utils::Outcome<GetServiceQuotaResult, ServiceQuotasError> GetServiceQuotaOutcome;
typedef Aws::Utils::Outcome<GetServiceQuotaIncreaseRequestFromTemplateResult, ServiceQuotasError> GetServiceQuotaIncreaseRequestFromTemplateOutcome;
typedef Aws::Utils::Outcome<ListAWSDefaultServiceQuotasResult, ServiceQuotasError> ListAWSDefaultServiceQuotasOutcome;
typedef Aws::Utils::Outcome<ListRequestedServiceQuotaChangeHistoryResult, ServiceQuotasError> ListRequestedServiceQuotaChangeHistoryOutcome;
typedef Aws::Utils::Outcome<ListRequestedServiceQuotaChangeHistoryByQuotaResult, ServiceQuotasError> ListRequestedServiceQuotaChangeHistoryByQuotaOutcome;
typedef Aws::Utils::Outcome<ListServiceQuotaIncreaseRequestsInTemplateResult, ServiceQuotasError> ListServiceQuotaIncreaseRequestsInTemplateOutcome;
typedef Aws::Utils::Outcome<ListServiceQuotasResult, ServiceQuotasError> ListServiceQuotasOutcome;
typedef Aws::Utils::Outcome<ListServicesResult, ServiceQuotasError> ListServicesOutcome;
typedef Aws::Utils::Outcome<PutServiceQuotaIncreaseRequestIntoTemplateResult, ServiceQuotasError> PutServiceQuotaIncreaseRequestIntoTemplateOutcome;
typedef Aws::Utils::Outcome<RequestServiceQuotaIncreaseResult, ServiceQuotasError> RequestServiceQuotaIncreaseOutcome;
typedef std::future<AssociateServiceQuotaTemplateOutcome> AssociateServiceQuotaTemplateOutcomeCallable;
typedef std::future<DeleteServiceQuotaIncreaseRequestFromTemplateOutcome> DeleteServiceQuotaIncreaseRequestFromTemplateOutcomeCallable;
typedef std::future<DisassociateServiceQuotaTemplateOutcome> DisassociateServiceQuotaTemplateOutcomeCallable;
typedef std::future<GetAWSDefaultServiceQuotaOutcome> GetAWSDefaultServiceQuotaOutcomeCallable;
typedef std::future<GetAssociationForServiceQuotaTemplateOutcome> GetAssociationForServiceQuotaTemplateOutcomeCallable;
typedef std::future<GetRequestedServiceQuotaChangeOutcome> GetRequestedServiceQuotaChangeOutcomeCallable;
typedef std::future<GetServiceQuotaOutcome> GetServiceQuotaOutcomeCallable;
typedef std::future<GetServiceQuotaIncreaseRequestFromTemplateOutcome> GetServiceQuotaIncreaseRequestFromTemplateOutcomeCallable;
typedef std::future<ListAWSDefaultServiceQuotasOutcome> ListAWSDefaultServiceQuotasOutcomeCallable;
typedef std::future<ListRequestedServiceQuotaChangeHistoryOutcome> ListRequestedServiceQuotaChangeHistoryOutcomeCallable;
typedef std::future<ListRequestedServiceQuotaChangeHistoryByQuotaOutcome> ListRequestedServiceQuotaChangeHistoryByQuotaOutcomeCallable;
typedef std::future<ListServiceQuotaIncreaseRequestsInTemplateOutcome> ListServiceQuotaIncreaseRequestsInTemplateOutcomeCallable;
typedef std::future<ListServiceQuotasOutcome> ListServiceQuotasOutcomeCallable;
typedef std::future<ListServicesOutcome> ListServicesOutcomeCallable;
typedef std::future<PutServiceQuotaIncreaseRequestIntoTemplateOutcome> PutServiceQuotaIncreaseRequestIntoTemplateOutcomeCallable;
typedef std::future<RequestServiceQuotaIncreaseOutcome> RequestServiceQuotaIncreaseOutcomeCallable;
} // namespace Model
class ServiceQuotasClient;
typedef std::function<void(const ServiceQuotasClient*, const Model::AssociateServiceQuotaTemplateRequest&, const Model::AssociateServiceQuotaTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > AssociateServiceQuotaTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::DeleteServiceQuotaIncreaseRequestFromTemplateRequest&, const Model::DeleteServiceQuotaIncreaseRequestFromTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::DisassociateServiceQuotaTemplateRequest&, const Model::DisassociateServiceQuotaTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DisassociateServiceQuotaTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::GetAWSDefaultServiceQuotaRequest&, const Model::GetAWSDefaultServiceQuotaOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetAWSDefaultServiceQuotaResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::GetAssociationForServiceQuotaTemplateRequest&, const Model::GetAssociationForServiceQuotaTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetAssociationForServiceQuotaTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::GetRequestedServiceQuotaChangeRequest&, const Model::GetRequestedServiceQuotaChangeOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetRequestedServiceQuotaChangeResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::GetServiceQuotaRequest&, const Model::GetServiceQuotaOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetServiceQuotaResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::GetServiceQuotaIncreaseRequestFromTemplateRequest&, const Model::GetServiceQuotaIncreaseRequestFromTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::ListAWSDefaultServiceQuotasRequest&, const Model::ListAWSDefaultServiceQuotasOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListAWSDefaultServiceQuotasResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::ListRequestedServiceQuotaChangeHistoryRequest&, const Model::ListRequestedServiceQuotaChangeHistoryOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRequestedServiceQuotaChangeHistoryResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::ListRequestedServiceQuotaChangeHistoryByQuotaRequest&, const Model::ListRequestedServiceQuotaChangeHistoryByQuotaOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRequestedServiceQuotaChangeHistoryByQuotaResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::ListServiceQuotaIncreaseRequestsInTemplateRequest&, const Model::ListServiceQuotaIncreaseRequestsInTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListServiceQuotaIncreaseRequestsInTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::ListServiceQuotasRequest&, const Model::ListServiceQuotasOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListServiceQuotasResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::ListServicesRequest&, const Model::ListServicesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListServicesResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::PutServiceQuotaIncreaseRequestIntoTemplateRequest&, const Model::PutServiceQuotaIncreaseRequestIntoTemplateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutServiceQuotaIncreaseRequestIntoTemplateResponseReceivedHandler;
typedef std::function<void(const ServiceQuotasClient*, const Model::RequestServiceQuotaIncreaseRequest&, const Model::RequestServiceQuotaIncreaseOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RequestServiceQuotaIncreaseResponseReceivedHandler;
/**
* <p> Service Quotas is a web service that you can use to manage many of your AWS
* service quotas. Quotas, also referred to as limits, are the maximum values for a
* resource, item, or operation. This guide provide descriptions of the Service
* Quotas actions that you can call from an API. For the Service Quotas user guide,
* which explains how to use Service Quotas from the console, see <a
* href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">What
* is Service Quotas</a>. </p> <p>AWS provides SDKs that consist of
* libraries and sample code for programming languages and platforms (Java, Ruby,
* .NET, iOS, Android, etc...,). The SDKs provide a convenient way to create
* programmatic access to Service Quotas and AWS. For information about the AWS
* SDKs, including how to download and install them, see the <a
* href="https://docs.aws.amazon.com/aws.amazon.com/tools">Tools for Amazon Web
* Services</a> page.</p>
*/
class AWS_SERVICEQUOTAS_API ServiceQuotasClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
ServiceQuotasClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
ServiceQuotasClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
ServiceQuotasClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~ServiceQuotasClient();
/**
* <p>Associates the Service Quotas template with your organization so that when
* new accounts are created in your organization, the template submits increase
* requests for the specified service quotas. Use the Service Quotas template to
* request an increase for any adjustable quota value. After you define the Service
* Quotas template, use this operation to associate, or enable, the template.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/AssociateServiceQuotaTemplate">AWS
* API Reference</a></p>
*/
virtual Model::AssociateServiceQuotaTemplateOutcome AssociateServiceQuotaTemplate(const Model::AssociateServiceQuotaTemplateRequest& request) const;
/**
* <p>Associates the Service Quotas template with your organization so that when
* new accounts are created in your organization, the template submits increase
* requests for the specified service quotas. Use the Service Quotas template to
* request an increase for any adjustable quota value. After you define the Service
* Quotas template, use this operation to associate, or enable, the template.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/AssociateServiceQuotaTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::AssociateServiceQuotaTemplateOutcomeCallable AssociateServiceQuotaTemplateCallable(const Model::AssociateServiceQuotaTemplateRequest& request) const;
/**
* <p>Associates the Service Quotas template with your organization so that when
* new accounts are created in your organization, the template submits increase
* requests for the specified service quotas. Use the Service Quotas template to
* request an increase for any adjustable quota value. After you define the Service
* Quotas template, use this operation to associate, or enable, the template.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/AssociateServiceQuotaTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void AssociateServiceQuotaTemplateAsync(const Model::AssociateServiceQuotaTemplateRequest& request, const AssociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Removes a service quota increase request from the Service Quotas template.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DeleteServiceQuotaIncreaseRequestFromTemplate">AWS
* API Reference</a></p>
*/
virtual Model::DeleteServiceQuotaIncreaseRequestFromTemplateOutcome DeleteServiceQuotaIncreaseRequestFromTemplate(const Model::DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request) const;
/**
* <p>Removes a service quota increase request from the Service Quotas template.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DeleteServiceQuotaIncreaseRequestFromTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteServiceQuotaIncreaseRequestFromTemplateOutcomeCallable DeleteServiceQuotaIncreaseRequestFromTemplateCallable(const Model::DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request) const;
/**
* <p>Removes a service quota increase request from the Service Quotas template.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DeleteServiceQuotaIncreaseRequestFromTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteServiceQuotaIncreaseRequestFromTemplateAsync(const Model::DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request, const DeleteServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Disables the Service Quotas template. Once the template is disabled, it does
* not request quota increases for new accounts in your organization. Disabling the
* quota template does not apply the quota increase requests from the template.
* </p> <p> <b>Related operations</b> </p> <ul> <li> <p>To enable the quota
* template, call <a>AssociateServiceQuotaTemplate</a>. </p> </li> <li> <p>To
* delete a specific service quota from the template, use
* <a>DeleteServiceQuotaIncreaseRequestFromTemplate</a>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DisassociateServiceQuotaTemplate">AWS
* API Reference</a></p>
*/
virtual Model::DisassociateServiceQuotaTemplateOutcome DisassociateServiceQuotaTemplate(const Model::DisassociateServiceQuotaTemplateRequest& request) const;
/**
* <p>Disables the Service Quotas template. Once the template is disabled, it does
* not request quota increases for new accounts in your organization. Disabling the
* quota template does not apply the quota increase requests from the template.
* </p> <p> <b>Related operations</b> </p> <ul> <li> <p>To enable the quota
* template, call <a>AssociateServiceQuotaTemplate</a>. </p> </li> <li> <p>To
* delete a specific service quota from the template, use
* <a>DeleteServiceQuotaIncreaseRequestFromTemplate</a>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DisassociateServiceQuotaTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DisassociateServiceQuotaTemplateOutcomeCallable DisassociateServiceQuotaTemplateCallable(const Model::DisassociateServiceQuotaTemplateRequest& request) const;
/**
* <p>Disables the Service Quotas template. Once the template is disabled, it does
* not request quota increases for new accounts in your organization. Disabling the
* quota template does not apply the quota increase requests from the template.
* </p> <p> <b>Related operations</b> </p> <ul> <li> <p>To enable the quota
* template, call <a>AssociateServiceQuotaTemplate</a>. </p> </li> <li> <p>To
* delete a specific service quota from the template, use
* <a>DeleteServiceQuotaIncreaseRequestFromTemplate</a>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DisassociateServiceQuotaTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DisassociateServiceQuotaTemplateAsync(const Model::DisassociateServiceQuotaTemplateRequest& request, const DisassociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Retrieves the default service quotas values. The Value returned for each
* quota is the AWS default value, even if the quotas have been increased..
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAWSDefaultServiceQuota">AWS
* API Reference</a></p>
*/
virtual Model::GetAWSDefaultServiceQuotaOutcome GetAWSDefaultServiceQuota(const Model::GetAWSDefaultServiceQuotaRequest& request) const;
/**
* <p>Retrieves the default service quotas values. The Value returned for each
* quota is the AWS default value, even if the quotas have been increased..
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAWSDefaultServiceQuota">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetAWSDefaultServiceQuotaOutcomeCallable GetAWSDefaultServiceQuotaCallable(const Model::GetAWSDefaultServiceQuotaRequest& request) const;
/**
* <p>Retrieves the default service quotas values. The Value returned for each
* quota is the AWS default value, even if the quotas have been increased..
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAWSDefaultServiceQuota">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetAWSDefaultServiceQuotaAsync(const Model::GetAWSDefaultServiceQuotaRequest& request, const GetAWSDefaultServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Retrieves the <code>ServiceQuotaTemplateAssociationStatus</code> value from
* the service. Use this action to determine if the Service Quota template is
* associated, or enabled. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAssociationForServiceQuotaTemplate">AWS
* API Reference</a></p>
*/
virtual Model::GetAssociationForServiceQuotaTemplateOutcome GetAssociationForServiceQuotaTemplate(const Model::GetAssociationForServiceQuotaTemplateRequest& request) const;
/**
* <p>Retrieves the <code>ServiceQuotaTemplateAssociationStatus</code> value from
* the service. Use this action to determine if the Service Quota template is
* associated, or enabled. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAssociationForServiceQuotaTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetAssociationForServiceQuotaTemplateOutcomeCallable GetAssociationForServiceQuotaTemplateCallable(const Model::GetAssociationForServiceQuotaTemplateRequest& request) const;
/**
* <p>Retrieves the <code>ServiceQuotaTemplateAssociationStatus</code> value from
* the service. Use this action to determine if the Service Quota template is
* associated, or enabled. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAssociationForServiceQuotaTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetAssociationForServiceQuotaTemplateAsync(const Model::GetAssociationForServiceQuotaTemplateRequest& request, const GetAssociationForServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Retrieves the details for a particular increase request. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetRequestedServiceQuotaChange">AWS
* API Reference</a></p>
*/
virtual Model::GetRequestedServiceQuotaChangeOutcome GetRequestedServiceQuotaChange(const Model::GetRequestedServiceQuotaChangeRequest& request) const;
/**
* <p>Retrieves the details for a particular increase request. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetRequestedServiceQuotaChange">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetRequestedServiceQuotaChangeOutcomeCallable GetRequestedServiceQuotaChangeCallable(const Model::GetRequestedServiceQuotaChangeRequest& request) const;
/**
* <p>Retrieves the details for a particular increase request. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetRequestedServiceQuotaChange">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetRequestedServiceQuotaChangeAsync(const Model::GetRequestedServiceQuotaChangeRequest& request, const GetRequestedServiceQuotaChangeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns the details for the specified service quota. This operation provides
* a different Value than the <code>GetAWSDefaultServiceQuota</code> operation.
* This operation returns the applied value for each quota.
* <code>GetAWSDefaultServiceQuota</code> returns the default AWS value for each
* quota. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuota">AWS
* API Reference</a></p>
*/
virtual Model::GetServiceQuotaOutcome GetServiceQuota(const Model::GetServiceQuotaRequest& request) const;
/**
* <p>Returns the details for the specified service quota. This operation provides
* a different Value than the <code>GetAWSDefaultServiceQuota</code> operation.
* This operation returns the applied value for each quota.
* <code>GetAWSDefaultServiceQuota</code> returns the default AWS value for each
* quota. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuota">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetServiceQuotaOutcomeCallable GetServiceQuotaCallable(const Model::GetServiceQuotaRequest& request) const;
/**
* <p>Returns the details for the specified service quota. This operation provides
* a different Value than the <code>GetAWSDefaultServiceQuota</code> operation.
* This operation returns the applied value for each quota.
* <code>GetAWSDefaultServiceQuota</code> returns the default AWS value for each
* quota. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuota">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetServiceQuotaAsync(const Model::GetServiceQuotaRequest& request, const GetServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns the details of the service quota increase request in your
* template.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuotaIncreaseRequestFromTemplate">AWS
* API Reference</a></p>
*/
virtual Model::GetServiceQuotaIncreaseRequestFromTemplateOutcome GetServiceQuotaIncreaseRequestFromTemplate(const Model::GetServiceQuotaIncreaseRequestFromTemplateRequest& request) const;
/**
* <p>Returns the details of the service quota increase request in your
* template.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuotaIncreaseRequestFromTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetServiceQuotaIncreaseRequestFromTemplateOutcomeCallable GetServiceQuotaIncreaseRequestFromTemplateCallable(const Model::GetServiceQuotaIncreaseRequestFromTemplateRequest& request) const;
/**
* <p>Returns the details of the service quota increase request in your
* template.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuotaIncreaseRequestFromTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetServiceQuotaIncreaseRequestFromTemplateAsync(const Model::GetServiceQuotaIncreaseRequestFromTemplateRequest& request, const GetServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists all default service quotas for the specified AWS service or all AWS
* services. ListAWSDefaultServiceQuotas is similar to <a>ListServiceQuotas</a>
* except for the Value object. The Value object returned by
* <code>ListAWSDefaultServiceQuotas</code> is the default value assigned by AWS.
* This request returns a list of all service quotas for the specified service. The
* listing of each you'll see the default values are the values that AWS provides
* for the quotas. </p> <p>Always check the <code>NextToken</code> response
* parameter when calling any of the <code>List*</code> operations. These
* operations can return an unexpected list of results, even when there are more
* results available. When this happens, the <code>NextToken</code> response
* parameter contains a value to pass the next call to the same API to request the
* next part of the list.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListAWSDefaultServiceQuotas">AWS
* API Reference</a></p>
*/
virtual Model::ListAWSDefaultServiceQuotasOutcome ListAWSDefaultServiceQuotas(const Model::ListAWSDefaultServiceQuotasRequest& request) const;
/**
* <p>Lists all default service quotas for the specified AWS service or all AWS
* services. ListAWSDefaultServiceQuotas is similar to <a>ListServiceQuotas</a>
* except for the Value object. The Value object returned by
* <code>ListAWSDefaultServiceQuotas</code> is the default value assigned by AWS.
* This request returns a list of all service quotas for the specified service. The
* listing of each you'll see the default values are the values that AWS provides
* for the quotas. </p> <p>Always check the <code>NextToken</code> response
* parameter when calling any of the <code>List*</code> operations. These
* operations can return an unexpected list of results, even when there are more
* results available. When this happens, the <code>NextToken</code> response
* parameter contains a value to pass the next call to the same API to request the
* next part of the list.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListAWSDefaultServiceQuotas">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListAWSDefaultServiceQuotasOutcomeCallable ListAWSDefaultServiceQuotasCallable(const Model::ListAWSDefaultServiceQuotasRequest& request) const;
/**
* <p>Lists all default service quotas for the specified AWS service or all AWS
* services. ListAWSDefaultServiceQuotas is similar to <a>ListServiceQuotas</a>
* except for the Value object. The Value object returned by
* <code>ListAWSDefaultServiceQuotas</code> is the default value assigned by AWS.
* This request returns a list of all service quotas for the specified service. The
* listing of each you'll see the default values are the values that AWS provides
* for the quotas. </p> <p>Always check the <code>NextToken</code> response
* parameter when calling any of the <code>List*</code> operations. These
* operations can return an unexpected list of results, even when there are more
* results available. When this happens, the <code>NextToken</code> response
* parameter contains a value to pass the next call to the same API to request the
* next part of the list.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListAWSDefaultServiceQuotas">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListAWSDefaultServiceQuotasAsync(const Model::ListAWSDefaultServiceQuotasRequest& request, const ListAWSDefaultServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Requests a list of the changes to quotas for a service.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistory">AWS
* API Reference</a></p>
*/
virtual Model::ListRequestedServiceQuotaChangeHistoryOutcome ListRequestedServiceQuotaChangeHistory(const Model::ListRequestedServiceQuotaChangeHistoryRequest& request) const;
/**
* <p>Requests a list of the changes to quotas for a service.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistory">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRequestedServiceQuotaChangeHistoryOutcomeCallable ListRequestedServiceQuotaChangeHistoryCallable(const Model::ListRequestedServiceQuotaChangeHistoryRequest& request) const;
/**
* <p>Requests a list of the changes to quotas for a service.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistory">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRequestedServiceQuotaChangeHistoryAsync(const Model::ListRequestedServiceQuotaChangeHistoryRequest& request, const ListRequestedServiceQuotaChangeHistoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Requests a list of the changes to specific service quotas. This command
* provides additional granularity over the
* <code>ListRequestedServiceQuotaChangeHistory</code> command. Once a quota change
* request has reached <code>CASE_CLOSED, APPROVED,</code> or <code>DENIED</code>,
* the history has been kept for 90 days.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistoryByQuota">AWS
* API Reference</a></p>
*/
virtual Model::ListRequestedServiceQuotaChangeHistoryByQuotaOutcome ListRequestedServiceQuotaChangeHistoryByQuota(const Model::ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request) const;
/**
* <p>Requests a list of the changes to specific service quotas. This command
* provides additional granularity over the
* <code>ListRequestedServiceQuotaChangeHistory</code> command. Once a quota change
* request has reached <code>CASE_CLOSED, APPROVED,</code> or <code>DENIED</code>,
* the history has been kept for 90 days.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistoryByQuota">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRequestedServiceQuotaChangeHistoryByQuotaOutcomeCallable ListRequestedServiceQuotaChangeHistoryByQuotaCallable(const Model::ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request) const;
/**
* <p>Requests a list of the changes to specific service quotas. This command
* provides additional granularity over the
* <code>ListRequestedServiceQuotaChangeHistory</code> command. Once a quota change
* request has reached <code>CASE_CLOSED, APPROVED,</code> or <code>DENIED</code>,
* the history has been kept for 90 days.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistoryByQuota">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRequestedServiceQuotaChangeHistoryByQuotaAsync(const Model::ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request, const ListRequestedServiceQuotaChangeHistoryByQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns a list of the quota increase requests in the template. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotaIncreaseRequestsInTemplate">AWS
* API Reference</a></p>
*/
virtual Model::ListServiceQuotaIncreaseRequestsInTemplateOutcome ListServiceQuotaIncreaseRequestsInTemplate(const Model::ListServiceQuotaIncreaseRequestsInTemplateRequest& request) const;
/**
* <p>Returns a list of the quota increase requests in the template. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotaIncreaseRequestsInTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListServiceQuotaIncreaseRequestsInTemplateOutcomeCallable ListServiceQuotaIncreaseRequestsInTemplateCallable(const Model::ListServiceQuotaIncreaseRequestsInTemplateRequest& request) const;
/**
* <p>Returns a list of the quota increase requests in the template. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotaIncreaseRequestsInTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListServiceQuotaIncreaseRequestsInTemplateAsync(const Model::ListServiceQuotaIncreaseRequestsInTemplateRequest& request, const ListServiceQuotaIncreaseRequestsInTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists all service quotas for the specified AWS service. This request returns
* a list of the service quotas for the specified service. you'll see the default
* values are the values that AWS provides for the quotas. </p> <p>Always
* check the <code>NextToken</code> response parameter when calling any of the
* <code>List*</code> operations. These operations can return an unexpected list of
* results, even when there are more results available. When this happens, the
* <code>NextToken</code> response parameter contains a value to pass the next call
* to the same API to request the next part of the list.</p> <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotas">AWS
* API Reference</a></p>
*/
virtual Model::ListServiceQuotasOutcome ListServiceQuotas(const Model::ListServiceQuotasRequest& request) const;
/**
* <p>Lists all service quotas for the specified AWS service. This request returns
* a list of the service quotas for the specified service. you'll see the default
* values are the values that AWS provides for the quotas. </p> <p>Always
* check the <code>NextToken</code> response parameter when calling any of the
* <code>List*</code> operations. These operations can return an unexpected list of
* results, even when there are more results available. When this happens, the
* <code>NextToken</code> response parameter contains a value to pass the next call
* to the same API to request the next part of the list.</p> <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotas">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListServiceQuotasOutcomeCallable ListServiceQuotasCallable(const Model::ListServiceQuotasRequest& request) const;
/**
* <p>Lists all service quotas for the specified AWS service. This request returns
* a list of the service quotas for the specified service. you'll see the default
* values are the values that AWS provides for the quotas. </p> <p>Always
* check the <code>NextToken</code> response parameter when calling any of the
* <code>List*</code> operations. These operations can return an unexpected list of
* results, even when there are more results available. When this happens, the
* <code>NextToken</code> response parameter contains a value to pass the next call
* to the same API to request the next part of the list.</p> <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotas">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListServiceQuotasAsync(const Model::ListServiceQuotasRequest& request, const ListServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the AWS services available in Service Quotas. Not all AWS services are
* available in Service Quotas. To list the see the list of the service quotas for
* a specific service, use <a>ListServiceQuotas</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServices">AWS
* API Reference</a></p>
*/
virtual Model::ListServicesOutcome ListServices(const Model::ListServicesRequest& request) const;
/**
* <p>Lists the AWS services available in Service Quotas. Not all AWS services are
* available in Service Quotas. To list the see the list of the service quotas for
* a specific service, use <a>ListServiceQuotas</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServices">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListServicesOutcomeCallable ListServicesCallable(const Model::ListServicesRequest& request) const;
/**
* <p>Lists the AWS services available in Service Quotas. Not all AWS services are
* available in Service Quotas. To list the see the list of the service quotas for
* a specific service, use <a>ListServiceQuotas</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServices">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListServicesAsync(const Model::ListServicesRequest& request, const ListServicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Defines and adds a quota to the service quota template. To add a quota to the
* template, you must provide the <code>ServiceCode</code>, <code>QuotaCode</code>,
* <code>AwsRegion</code>, and <code>DesiredValue</code>. Once you add a quota to
* the template, use <a>ListServiceQuotaIncreaseRequestsInTemplate</a> to see the
* list of quotas in the template.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/PutServiceQuotaIncreaseRequestIntoTemplate">AWS
* API Reference</a></p>
*/
virtual Model::PutServiceQuotaIncreaseRequestIntoTemplateOutcome PutServiceQuotaIncreaseRequestIntoTemplate(const Model::PutServiceQuotaIncreaseRequestIntoTemplateRequest& request) const;
/**
* <p>Defines and adds a quota to the service quota template. To add a quota to the
* template, you must provide the <code>ServiceCode</code>, <code>QuotaCode</code>,
* <code>AwsRegion</code>, and <code>DesiredValue</code>. Once you add a quota to
* the template, use <a>ListServiceQuotaIncreaseRequestsInTemplate</a> to see the
* list of quotas in the template.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/PutServiceQuotaIncreaseRequestIntoTemplate">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::PutServiceQuotaIncreaseRequestIntoTemplateOutcomeCallable PutServiceQuotaIncreaseRequestIntoTemplateCallable(const Model::PutServiceQuotaIncreaseRequestIntoTemplateRequest& request) const;
/**
* <p>Defines and adds a quota to the service quota template. To add a quota to the
* template, you must provide the <code>ServiceCode</code>, <code>QuotaCode</code>,
* <code>AwsRegion</code>, and <code>DesiredValue</code>. Once you add a quota to
* the template, use <a>ListServiceQuotaIncreaseRequestsInTemplate</a> to see the
* list of quotas in the template.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/PutServiceQuotaIncreaseRequestIntoTemplate">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void PutServiceQuotaIncreaseRequestIntoTemplateAsync(const Model::PutServiceQuotaIncreaseRequestIntoTemplateRequest& request, const PutServiceQuotaIncreaseRequestIntoTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Retrieves the details of a service quota increase request. The response to
* this command provides the details in the <a>RequestedServiceQuotaChange</a>
* object. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/RequestServiceQuotaIncrease">AWS
* API Reference</a></p>
*/
virtual Model::RequestServiceQuotaIncreaseOutcome RequestServiceQuotaIncrease(const Model::RequestServiceQuotaIncreaseRequest& request) const;
/**
* <p>Retrieves the details of a service quota increase request. The response to
* this command provides the details in the <a>RequestedServiceQuotaChange</a>
* object. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/RequestServiceQuotaIncrease">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::RequestServiceQuotaIncreaseOutcomeCallable RequestServiceQuotaIncreaseCallable(const Model::RequestServiceQuotaIncreaseRequest& request) const;
/**
* <p>Retrieves the details of a service quota increase request. The response to
* this command provides the details in the <a>RequestedServiceQuotaChange</a>
* object. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/RequestServiceQuotaIncrease">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void RequestServiceQuotaIncreaseAsync(const Model::RequestServiceQuotaIncreaseRequest& request, const RequestServiceQuotaIncreaseResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void AssociateServiceQuotaTemplateAsyncHelper(const Model::AssociateServiceQuotaTemplateRequest& request, const AssociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteServiceQuotaIncreaseRequestFromTemplateAsyncHelper(const Model::DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request, const DeleteServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DisassociateServiceQuotaTemplateAsyncHelper(const Model::DisassociateServiceQuotaTemplateRequest& request, const DisassociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetAWSDefaultServiceQuotaAsyncHelper(const Model::GetAWSDefaultServiceQuotaRequest& request, const GetAWSDefaultServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetAssociationForServiceQuotaTemplateAsyncHelper(const Model::GetAssociationForServiceQuotaTemplateRequest& request, const GetAssociationForServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetRequestedServiceQuotaChangeAsyncHelper(const Model::GetRequestedServiceQuotaChangeRequest& request, const GetRequestedServiceQuotaChangeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetServiceQuotaAsyncHelper(const Model::GetServiceQuotaRequest& request, const GetServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetServiceQuotaIncreaseRequestFromTemplateAsyncHelper(const Model::GetServiceQuotaIncreaseRequestFromTemplateRequest& request, const GetServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListAWSDefaultServiceQuotasAsyncHelper(const Model::ListAWSDefaultServiceQuotasRequest& request, const ListAWSDefaultServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRequestedServiceQuotaChangeHistoryAsyncHelper(const Model::ListRequestedServiceQuotaChangeHistoryRequest& request, const ListRequestedServiceQuotaChangeHistoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRequestedServiceQuotaChangeHistoryByQuotaAsyncHelper(const Model::ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request, const ListRequestedServiceQuotaChangeHistoryByQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListServiceQuotaIncreaseRequestsInTemplateAsyncHelper(const Model::ListServiceQuotaIncreaseRequestsInTemplateRequest& request, const ListServiceQuotaIncreaseRequestsInTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListServiceQuotasAsyncHelper(const Model::ListServiceQuotasRequest& request, const ListServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListServicesAsyncHelper(const Model::ListServicesRequest& request, const ListServicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void PutServiceQuotaIncreaseRequestIntoTemplateAsyncHelper(const Model::PutServiceQuotaIncreaseRequestIntoTemplateRequest& request, const PutServiceQuotaIncreaseRequestIntoTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void RequestServiceQuotaIncreaseAsyncHelper(const Model::RequestServiceQuotaIncreaseRequest& request, const RequestServiceQuotaIncreaseResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace ServiceQuotasEndpoint
{
AWS_SERVICEQUOTAS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace ServiceQuotasEndpoint
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_SERVICEQUOTAS_API ServiceQuotasErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
namespace Aws
{
namespace ServiceQuotas
{
enum class ServiceQuotasErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
A_W_S_SERVICE_ACCESS_NOT_ENABLED= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
DEPENDENCY_ACCESS_DENIED,
ILLEGAL_ARGUMENT,
INVALID_PAGINATION_TOKEN,
INVALID_RESOURCE_STATE,
NO_AVAILABLE_ORGANIZATION,
NO_SUCH_RESOURCE,
ORGANIZATION_NOT_IN_ALL_FEATURES_MODE,
QUOTA_EXCEEDED,
RESOURCE_ALREADY_EXISTS,
SERVICE,
SERVICE_QUOTA_TEMPLATE_NOT_IN_USE,
TEMPLATES_NOT_AVAILABLE_IN_REGION,
TOO_MANY_REQUESTS
};
class AWS_SERVICEQUOTAS_API ServiceQuotasError : public Aws::Client::AWSError<ServiceQuotasErrors>
{
public:
ServiceQuotasError() {}
ServiceQuotasError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<ServiceQuotasErrors>(rhs) {}
ServiceQuotasError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<ServiceQuotasErrors>(rhs) {}
ServiceQuotasError(const Aws::Client::AWSError<ServiceQuotasErrors>& rhs) : Aws::Client::AWSError<ServiceQuotasErrors>(rhs) {}
ServiceQuotasError(Aws::Client::AWSError<ServiceQuotasErrors>&& rhs) : Aws::Client::AWSError<ServiceQuotasErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace ServiceQuotasErrorMapper
{
AWS_SERVICEQUOTAS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace ServiceQuotas
{
class AWS_SERVICEQUOTAS_API ServiceQuotasRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~ServiceQuotasRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2019-06-24"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_SERVICEQUOTAS_EXPORTS
#define AWS_SERVICEQUOTAS_API __declspec(dllexport)
#else
#define AWS_SERVICEQUOTAS_API __declspec(dllimport)
#endif /* AWS_SERVICEQUOTAS_EXPORTS */
#else
#define AWS_SERVICEQUOTAS_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_SERVICEQUOTAS_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API AssociateServiceQuotaTemplateRequest : public ServiceQuotasRequest
{
public:
AssociateServiceQuotaTemplateRequest();
// 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 "AssociateServiceQuotaTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API AssociateServiceQuotaTemplateResult
{
public:
AssociateServiceQuotaTemplateResult();
AssociateServiceQuotaTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateServiceQuotaTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API DeleteServiceQuotaIncreaseRequestFromTemplateRequest : public ServiceQuotasRequest
{
public:
DeleteServiceQuotaIncreaseRequestFromTemplateRequest();
// 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 "DeleteServiceQuotaIncreaseRequestFromTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the code for the service that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Specifies the code for the quota that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to delete.</p>
*/
inline DeleteServiceQuotaIncreaseRequestFromTemplateRequest& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
Aws::String m_awsRegion;
bool m_awsRegionHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API DeleteServiceQuotaIncreaseRequestFromTemplateResult
{
public:
DeleteServiceQuotaIncreaseRequestFromTemplateResult();
DeleteServiceQuotaIncreaseRequestFromTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteServiceQuotaIncreaseRequestFromTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API DisassociateServiceQuotaTemplateRequest : public ServiceQuotasRequest
{
public:
DisassociateServiceQuotaTemplateRequest();
// 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 "DisassociateServiceQuotaTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API DisassociateServiceQuotaTemplateResult
{
public:
DisassociateServiceQuotaTemplateResult();
DisassociateServiceQuotaTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateServiceQuotaTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
enum class ErrorCode
{
NOT_SET,
DEPENDENCY_ACCESS_DENIED_ERROR,
DEPENDENCY_THROTTLING_ERROR,
DEPENDENCY_SERVICE_ERROR,
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
};
namespace ErrorCodeMapper
{
AWS_SERVICEQUOTAS_API ErrorCode GetErrorCodeForName(const Aws::String& name);
AWS_SERVICEQUOTAS_API Aws::String GetNameForErrorCode(ErrorCode value);
} // namespace ErrorCodeMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,172 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/ErrorCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>Returns an error that explains why the action did not succeed.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ErrorReason">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API ErrorReason
{
public:
ErrorReason();
ErrorReason(Aws::Utils::Json::JsonView jsonValue);
ErrorReason& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Service Quotas returns the following error values. </p> <p>
* <code>DEPENDENCY_ACCESS_DENIED_ERROR</code> is returned when the caller does not
* have permission to call the service or service quota. To resolve the error, you
* need permission to access the service or service quota.</p> <p>
* <code>DEPENDENCY_THROTTLING_ERROR</code> is returned when the service being
* called is throttling Service Quotas.</p> <p>
* <code>DEPENDENCY_SERVICE_ERROR</code> is returned when the service being called
* has availability issues.</p> <p> <code>SERVICE_QUOTA_NOT_AVAILABLE_ERROR</code>
* is returned when there was an error in Service Quotas.</p>
*/
inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
/**
* <p>Service Quotas returns the following error values. </p> <p>
* <code>DEPENDENCY_ACCESS_DENIED_ERROR</code> is returned when the caller does not
* have permission to call the service or service quota. To resolve the error, you
* need permission to access the service or service quota.</p> <p>
* <code>DEPENDENCY_THROTTLING_ERROR</code> is returned when the service being
* called is throttling Service Quotas.</p> <p>
* <code>DEPENDENCY_SERVICE_ERROR</code> is returned when the service being called
* has availability issues.</p> <p> <code>SERVICE_QUOTA_NOT_AVAILABLE_ERROR</code>
* is returned when there was an error in Service Quotas.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>Service Quotas returns the following error values. </p> <p>
* <code>DEPENDENCY_ACCESS_DENIED_ERROR</code> is returned when the caller does not
* have permission to call the service or service quota. To resolve the error, you
* need permission to access the service or service quota.</p> <p>
* <code>DEPENDENCY_THROTTLING_ERROR</code> is returned when the service being
* called is throttling Service Quotas.</p> <p>
* <code>DEPENDENCY_SERVICE_ERROR</code> is returned when the service being called
* has availability issues.</p> <p> <code>SERVICE_QUOTA_NOT_AVAILABLE_ERROR</code>
* is returned when there was an error in Service Quotas.</p>
*/
inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>Service Quotas returns the following error values. </p> <p>
* <code>DEPENDENCY_ACCESS_DENIED_ERROR</code> is returned when the caller does not
* have permission to call the service or service quota. To resolve the error, you
* need permission to access the service or service quota.</p> <p>
* <code>DEPENDENCY_THROTTLING_ERROR</code> is returned when the service being
* called is throttling Service Quotas.</p> <p>
* <code>DEPENDENCY_SERVICE_ERROR</code> is returned when the service being called
* has availability issues.</p> <p> <code>SERVICE_QUOTA_NOT_AVAILABLE_ERROR</code>
* is returned when there was an error in Service Quotas.</p>
*/
inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>Service Quotas returns the following error values. </p> <p>
* <code>DEPENDENCY_ACCESS_DENIED_ERROR</code> is returned when the caller does not
* have permission to call the service or service quota. To resolve the error, you
* need permission to access the service or service quota.</p> <p>
* <code>DEPENDENCY_THROTTLING_ERROR</code> is returned when the service being
* called is throttling Service Quotas.</p> <p>
* <code>DEPENDENCY_SERVICE_ERROR</code> is returned when the service being called
* has availability issues.</p> <p> <code>SERVICE_QUOTA_NOT_AVAILABLE_ERROR</code>
* is returned when there was an error in Service Quotas.</p>
*/
inline ErrorReason& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
/**
* <p>Service Quotas returns the following error values. </p> <p>
* <code>DEPENDENCY_ACCESS_DENIED_ERROR</code> is returned when the caller does not
* have permission to call the service or service quota. To resolve the error, you
* need permission to access the service or service quota.</p> <p>
* <code>DEPENDENCY_THROTTLING_ERROR</code> is returned when the service being
* called is throttling Service Quotas.</p> <p>
* <code>DEPENDENCY_SERVICE_ERROR</code> is returned when the service being called
* has availability issues.</p> <p> <code>SERVICE_QUOTA_NOT_AVAILABLE_ERROR</code>
* is returned when there was an error in Service Quotas.</p>
*/
inline ErrorReason& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error message that provides more detail.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The error message that provides more detail.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The error message that provides more detail.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The error message that provides more detail.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The error message that provides more detail.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The error message that provides more detail.</p>
*/
inline ErrorReason& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The error message that provides more detail.</p>
*/
inline ErrorReason& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The error message that provides more detail.</p>
*/
inline ErrorReason& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
ErrorCode m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API GetAWSDefaultServiceQuotaRequest : public ServiceQuotasRequest
{
public:
GetAWSDefaultServiceQuotaRequest();
// 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 "GetAWSDefaultServiceQuota"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetAWSDefaultServiceQuotaRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetAWSDefaultServiceQuotaRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetAWSDefaultServiceQuotaRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline GetAWSDefaultServiceQuotaRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline GetAWSDefaultServiceQuotaRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline GetAWSDefaultServiceQuotaRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/ServiceQuota.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API GetAWSDefaultServiceQuotaResult
{
public:
GetAWSDefaultServiceQuotaResult();
GetAWSDefaultServiceQuotaResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAWSDefaultServiceQuotaResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline const ServiceQuota& GetQuota() const{ return m_quota; }
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline void SetQuota(const ServiceQuota& value) { m_quota = value; }
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline void SetQuota(ServiceQuota&& value) { m_quota = std::move(value); }
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline GetAWSDefaultServiceQuotaResult& WithQuota(const ServiceQuota& value) { SetQuota(value); return *this;}
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline GetAWSDefaultServiceQuotaResult& WithQuota(ServiceQuota&& value) { SetQuota(std::move(value)); return *this;}
private:
ServiceQuota m_quota;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API GetAssociationForServiceQuotaTemplateRequest : public ServiceQuotasRequest
{
public:
GetAssociationForServiceQuotaTemplateRequest();
// 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 "GetAssociationForServiceQuotaTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/ServiceQuotaTemplateAssociationStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API GetAssociationForServiceQuotaTemplateResult
{
public:
GetAssociationForServiceQuotaTemplateResult();
GetAssociationForServiceQuotaTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAssociationForServiceQuotaTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Specifies whether the template is <code>ASSOCIATED</code> or
* <code>DISASSOCIATED</code>. If the template is <code>ASSOCIATED</code>, then it
* requests service quota increases for all new accounts created in your
* organization. </p>
*/
inline const ServiceQuotaTemplateAssociationStatus& GetServiceQuotaTemplateAssociationStatus() const{ return m_serviceQuotaTemplateAssociationStatus; }
/**
* <p>Specifies whether the template is <code>ASSOCIATED</code> or
* <code>DISASSOCIATED</code>. If the template is <code>ASSOCIATED</code>, then it
* requests service quota increases for all new accounts created in your
* organization. </p>
*/
inline void SetServiceQuotaTemplateAssociationStatus(const ServiceQuotaTemplateAssociationStatus& value) { m_serviceQuotaTemplateAssociationStatus = value; }
/**
* <p>Specifies whether the template is <code>ASSOCIATED</code> or
* <code>DISASSOCIATED</code>. If the template is <code>ASSOCIATED</code>, then it
* requests service quota increases for all new accounts created in your
* organization. </p>
*/
inline void SetServiceQuotaTemplateAssociationStatus(ServiceQuotaTemplateAssociationStatus&& value) { m_serviceQuotaTemplateAssociationStatus = std::move(value); }
/**
* <p>Specifies whether the template is <code>ASSOCIATED</code> or
* <code>DISASSOCIATED</code>. If the template is <code>ASSOCIATED</code>, then it
* requests service quota increases for all new accounts created in your
* organization. </p>
*/
inline GetAssociationForServiceQuotaTemplateResult& WithServiceQuotaTemplateAssociationStatus(const ServiceQuotaTemplateAssociationStatus& value) { SetServiceQuotaTemplateAssociationStatus(value); return *this;}
/**
* <p>Specifies whether the template is <code>ASSOCIATED</code> or
* <code>DISASSOCIATED</code>. If the template is <code>ASSOCIATED</code>, then it
* requests service quota increases for all new accounts created in your
* organization. </p>
*/
inline GetAssociationForServiceQuotaTemplateResult& WithServiceQuotaTemplateAssociationStatus(ServiceQuotaTemplateAssociationStatus&& value) { SetServiceQuotaTemplateAssociationStatus(std::move(value)); return *this;}
private:
ServiceQuotaTemplateAssociationStatus m_serviceQuotaTemplateAssociationStatus;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API GetRequestedServiceQuotaChangeRequest : public ServiceQuotasRequest
{
public:
GetRequestedServiceQuotaChangeRequest();
// 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 "GetRequestedServiceQuotaChange"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Identifies the quota increase request.</p>
*/
inline const Aws::String& GetRequestId() const{ return m_requestId; }
/**
* <p>Identifies the quota increase request.</p>
*/
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
/**
* <p>Identifies the quota increase request.</p>
*/
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
/**
* <p>Identifies the quota increase request.</p>
*/
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
/**
* <p>Identifies the quota increase request.</p>
*/
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
/**
* <p>Identifies the quota increase request.</p>
*/
inline GetRequestedServiceQuotaChangeRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
/**
* <p>Identifies the quota increase request.</p>
*/
inline GetRequestedServiceQuotaChangeRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
/**
* <p>Identifies the quota increase request.</p>
*/
inline GetRequestedServiceQuotaChangeRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
private:
Aws::String m_requestId;
bool m_requestIdHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/RequestedServiceQuotaChange.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API GetRequestedServiceQuotaChangeResult
{
public:
GetRequestedServiceQuotaChangeResult();
GetRequestedServiceQuotaChangeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRequestedServiceQuotaChangeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Returns the <code>RequestedServiceQuotaChange</code> object for the specific
* increase request.</p>
*/
inline const RequestedServiceQuotaChange& GetRequestedQuota() const{ return m_requestedQuota; }
/**
* <p>Returns the <code>RequestedServiceQuotaChange</code> object for the specific
* increase request.</p>
*/
inline void SetRequestedQuota(const RequestedServiceQuotaChange& value) { m_requestedQuota = value; }
/**
* <p>Returns the <code>RequestedServiceQuotaChange</code> object for the specific
* increase request.</p>
*/
inline void SetRequestedQuota(RequestedServiceQuotaChange&& value) { m_requestedQuota = std::move(value); }
/**
* <p>Returns the <code>RequestedServiceQuotaChange</code> object for the specific
* increase request.</p>
*/
inline GetRequestedServiceQuotaChangeResult& WithRequestedQuota(const RequestedServiceQuotaChange& value) { SetRequestedQuota(value); return *this;}
/**
* <p>Returns the <code>RequestedServiceQuotaChange</code> object for the specific
* increase request.</p>
*/
inline GetRequestedServiceQuotaChangeResult& WithRequestedQuota(RequestedServiceQuotaChange&& value) { SetRequestedQuota(std::move(value)); return *this;}
private:
RequestedServiceQuotaChange m_requestedQuota;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API GetServiceQuotaIncreaseRequestFromTemplateRequest : public ServiceQuotasRequest
{
public:
GetServiceQuotaIncreaseRequestFromTemplateRequest();
// 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 "GetServiceQuotaIncreaseRequestFromTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the quota you want.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Specifies the quota you want.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Specifies the quota you want.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Specifies the quota you want.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Specifies the quota you want.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Specifies the quota you want.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the quota you want.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Specifies the quota you want.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateRequest& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
Aws::String m_awsRegion;
bool m_awsRegionHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/ServiceQuotaIncreaseRequestInTemplate.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API GetServiceQuotaIncreaseRequestFromTemplateResult
{
public:
GetServiceQuotaIncreaseRequestFromTemplateResult();
GetServiceQuotaIncreaseRequestFromTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetServiceQuotaIncreaseRequestFromTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>This object contains the details about the quota increase request.</p>
*/
inline const ServiceQuotaIncreaseRequestInTemplate& GetServiceQuotaIncreaseRequestInTemplate() const{ return m_serviceQuotaIncreaseRequestInTemplate; }
/**
* <p>This object contains the details about the quota increase request.</p>
*/
inline void SetServiceQuotaIncreaseRequestInTemplate(const ServiceQuotaIncreaseRequestInTemplate& value) { m_serviceQuotaIncreaseRequestInTemplate = value; }
/**
* <p>This object contains the details about the quota increase request.</p>
*/
inline void SetServiceQuotaIncreaseRequestInTemplate(ServiceQuotaIncreaseRequestInTemplate&& value) { m_serviceQuotaIncreaseRequestInTemplate = std::move(value); }
/**
* <p>This object contains the details about the quota increase request.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateResult& WithServiceQuotaIncreaseRequestInTemplate(const ServiceQuotaIncreaseRequestInTemplate& value) { SetServiceQuotaIncreaseRequestInTemplate(value); return *this;}
/**
* <p>This object contains the details about the quota increase request.</p>
*/
inline GetServiceQuotaIncreaseRequestFromTemplateResult& WithServiceQuotaIncreaseRequestInTemplate(ServiceQuotaIncreaseRequestInTemplate&& value) { SetServiceQuotaIncreaseRequestInTemplate(std::move(value)); return *this;}
private:
ServiceQuotaIncreaseRequestInTemplate m_serviceQuotaIncreaseRequestInTemplate;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API GetServiceQuotaRequest : public ServiceQuotasRequest
{
public:
GetServiceQuotaRequest();
// 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 "GetServiceQuota"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetServiceQuotaRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetServiceQuotaRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline GetServiceQuotaRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline GetServiceQuotaRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline GetServiceQuotaRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Identifies the service quota you want to select.</p>
*/
inline GetServiceQuotaRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/ServiceQuota.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API GetServiceQuotaResult
{
public:
GetServiceQuotaResult();
GetServiceQuotaResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetServiceQuotaResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline const ServiceQuota& GetQuota() const{ return m_quota; }
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline void SetQuota(const ServiceQuota& value) { m_quota = value; }
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline void SetQuota(ServiceQuota&& value) { m_quota = std::move(value); }
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline GetServiceQuotaResult& WithQuota(const ServiceQuota& value) { SetQuota(value); return *this;}
/**
* <p>Returns the <a>ServiceQuota</a> object which contains all values for a
* quota.</p>
*/
inline GetServiceQuotaResult& WithQuota(ServiceQuota&& value) { SetQuota(std::move(value)); return *this;}
private:
ServiceQuota m_quota;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,253 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API ListAWSDefaultServiceQuotasRequest : public ServiceQuotasRequest
{
public:
ListAWSDefaultServiceQuotasRequest();
// 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 "ListAWSDefaultServiceQuotas"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from. If additional items exist beyond the specified maximum,
* the <code>NextToken</code> element is present and has a value (isn't null).
* Include that value as the <code>NextToken</code> request parameter in the call
* to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListAWSDefaultServiceQuotasRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/service-quotas/model/ServiceQuota.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API ListAWSDefaultServiceQuotasResult
{
public:
ListAWSDefaultServiceQuotasResult();
ListAWSDefaultServiceQuotasResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListAWSDefaultServiceQuotasResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListAWSDefaultServiceQuotasResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListAWSDefaultServiceQuotasResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListAWSDefaultServiceQuotasResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline const Aws::Vector<ServiceQuota>& GetQuotas() const{ return m_quotas; }
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline void SetQuotas(const Aws::Vector<ServiceQuota>& value) { m_quotas = value; }
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline void SetQuotas(Aws::Vector<ServiceQuota>&& value) { m_quotas = std::move(value); }
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline ListAWSDefaultServiceQuotasResult& WithQuotas(const Aws::Vector<ServiceQuota>& value) { SetQuotas(value); return *this;}
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline ListAWSDefaultServiceQuotasResult& WithQuotas(Aws::Vector<ServiceQuota>&& value) { SetQuotas(std::move(value)); return *this;}
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline ListAWSDefaultServiceQuotasResult& AddQuotas(const ServiceQuota& value) { m_quotas.push_back(value); return *this; }
/**
* <p>A list of the quotas in the account with the AWS default values. </p>
*/
inline ListAWSDefaultServiceQuotasResult& AddQuotas(ServiceQuota&& value) { m_quotas.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<ServiceQuota> m_quotas;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,292 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/service-quotas/model/RequestStatus.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API ListRequestedServiceQuotaChangeHistoryByQuotaRequest : public ServiceQuotasRequest
{
public:
ListRequestedServiceQuotaChangeHistoryByQuotaRequest();
// 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 "ListRequestedServiceQuotaChangeHistoryByQuota"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Specifies the service quota that you want to use</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline const RequestStatus& GetStatus() const{ return m_status; }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline void SetStatus(const RequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline void SetStatus(RequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithStatus(const RequestStatus& value) { SetStatus(value); return *this;}
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithStatus(RequestStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
RequestStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/service-quotas/model/RequestedServiceQuotaChange.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API ListRequestedServiceQuotaChangeHistoryByQuotaResult
{
public:
ListRequestedServiceQuotaChangeHistoryByQuotaResult();
ListRequestedServiceQuotaChangeHistoryByQuotaResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRequestedServiceQuotaChangeHistoryByQuotaResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline const Aws::Vector<RequestedServiceQuotaChange>& GetRequestedQuotas() const{ return m_requestedQuotas; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline void SetRequestedQuotas(const Aws::Vector<RequestedServiceQuotaChange>& value) { m_requestedQuotas = value; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline void SetRequestedQuotas(Aws::Vector<RequestedServiceQuotaChange>&& value) { m_requestedQuotas = std::move(value); }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& WithRequestedQuotas(const Aws::Vector<RequestedServiceQuotaChange>& value) { SetRequestedQuotas(value); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& WithRequestedQuotas(Aws::Vector<RequestedServiceQuotaChange>&& value) { SetRequestedQuotas(std::move(value)); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& AddRequestedQuotas(const RequestedServiceQuotaChange& value) { m_requestedQuotas.push_back(value); return *this; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryByQuotaResult& AddRequestedQuotas(RequestedServiceQuotaChange&& value) { m_requestedQuotas.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<RequestedServiceQuotaChange> m_requestedQuotas;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,248 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/service-quotas/model/RequestStatus.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API ListRequestedServiceQuotaChangeHistoryRequest : public ServiceQuotasRequest
{
public:
ListRequestedServiceQuotaChangeHistoryRequest();
// 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 "ListRequestedServiceQuotaChangeHistory"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline const RequestStatus& GetStatus() const{ return m_status; }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline void SetStatus(const RequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline void SetStatus(RequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithStatus(const RequestStatus& value) { SetStatus(value); return *this;}
/**
* <p>Specifies the status value of the quota increase request.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithStatus(RequestStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
RequestStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/service-quotas/model/RequestedServiceQuotaChange.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API ListRequestedServiceQuotaChangeHistoryResult
{
public:
ListRequestedServiceQuotaChangeHistoryResult();
ListRequestedServiceQuotaChangeHistoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRequestedServiceQuotaChangeHistoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline const Aws::Vector<RequestedServiceQuotaChange>& GetRequestedQuotas() const{ return m_requestedQuotas; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline void SetRequestedQuotas(const Aws::Vector<RequestedServiceQuotaChange>& value) { m_requestedQuotas = value; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline void SetRequestedQuotas(Aws::Vector<RequestedServiceQuotaChange>&& value) { m_requestedQuotas = std::move(value); }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& WithRequestedQuotas(const Aws::Vector<RequestedServiceQuotaChange>& value) { SetRequestedQuotas(value); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& WithRequestedQuotas(Aws::Vector<RequestedServiceQuotaChange>&& value) { SetRequestedQuotas(std::move(value)); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& AddRequestedQuotas(const RequestedServiceQuotaChange& value) { m_requestedQuotas.push_back(value); return *this; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline ListRequestedServiceQuotaChangeHistoryResult& AddRequestedQuotas(RequestedServiceQuotaChange&& value) { m_requestedQuotas.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<RequestedServiceQuotaChange> m_requestedQuotas;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,265 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API ListServiceQuotaIncreaseRequestsInTemplateRequest : public ServiceQuotasRequest
{
public:
ListServiceQuotaIncreaseRequestsInTemplateRequest();
// 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 "ListServiceQuotaIncreaseRequestsInTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
/**
* <p>Specifies the AWS Region for the quota that you want to use.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_awsRegion;
bool m_awsRegionHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/service-quotas/model/ServiceQuotaIncreaseRequestInTemplate.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API ListServiceQuotaIncreaseRequestsInTemplateResult
{
public:
ListServiceQuotaIncreaseRequestsInTemplateResult();
ListServiceQuotaIncreaseRequestsInTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListServiceQuotaIncreaseRequestsInTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline const Aws::Vector<ServiceQuotaIncreaseRequestInTemplate>& GetServiceQuotaIncreaseRequestInTemplateList() const{ return m_serviceQuotaIncreaseRequestInTemplateList; }
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline void SetServiceQuotaIncreaseRequestInTemplateList(const Aws::Vector<ServiceQuotaIncreaseRequestInTemplate>& value) { m_serviceQuotaIncreaseRequestInTemplateList = value; }
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline void SetServiceQuotaIncreaseRequestInTemplateList(Aws::Vector<ServiceQuotaIncreaseRequestInTemplate>&& value) { m_serviceQuotaIncreaseRequestInTemplateList = std::move(value); }
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& WithServiceQuotaIncreaseRequestInTemplateList(const Aws::Vector<ServiceQuotaIncreaseRequestInTemplate>& value) { SetServiceQuotaIncreaseRequestInTemplateList(value); return *this;}
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& WithServiceQuotaIncreaseRequestInTemplateList(Aws::Vector<ServiceQuotaIncreaseRequestInTemplate>&& value) { SetServiceQuotaIncreaseRequestInTemplateList(std::move(value)); return *this;}
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& AddServiceQuotaIncreaseRequestInTemplateList(const ServiceQuotaIncreaseRequestInTemplate& value) { m_serviceQuotaIncreaseRequestInTemplateList.push_back(value); return *this; }
/**
* <p>Returns the list of values of the quota increase request in the template.</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& AddServiceQuotaIncreaseRequestInTemplateList(ServiceQuotaIncreaseRequestInTemplate&& value) { m_serviceQuotaIncreaseRequestInTemplateList.push_back(std::move(value)); return *this; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServiceQuotaIncreaseRequestsInTemplateResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ServiceQuotaIncreaseRequestInTemplate> m_serviceQuotaIncreaseRequestInTemplateList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,221 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API ListServiceQuotasRequest : public ServiceQuotasRequest
{
public:
ListServiceQuotasRequest();
// 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 "ListServiceQuotas"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline ListServiceQuotasRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline ListServiceQuotasRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>The identifier for a service. When performing an operation, use the
* <code>ServiceCode</code> to specify a particular service. </p>
*/
inline ListServiceQuotasRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServiceQuotasRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServiceQuotasRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServiceQuotasRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListServiceQuotasRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/service-quotas/model/ServiceQuota.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API ListServiceQuotasResult
{
public:
ListServiceQuotasResult();
ListServiceQuotasResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListServiceQuotasResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServiceQuotasResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServiceQuotasResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServiceQuotasResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline const Aws::Vector<ServiceQuota>& GetQuotas() const{ return m_quotas; }
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline void SetQuotas(const Aws::Vector<ServiceQuota>& value) { m_quotas = value; }
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline void SetQuotas(Aws::Vector<ServiceQuota>&& value) { m_quotas = std::move(value); }
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline ListServiceQuotasResult& WithQuotas(const Aws::Vector<ServiceQuota>& value) { SetQuotas(value); return *this;}
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline ListServiceQuotasResult& WithQuotas(Aws::Vector<ServiceQuota>&& value) { SetQuotas(std::move(value)); return *this;}
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline ListServiceQuotasResult& AddQuotas(const ServiceQuota& value) { m_quotas.push_back(value); return *this; }
/**
* <p>The response information for a quota lists all attribute information for the
* quota. </p>
*/
inline ListServiceQuotasResult& AddQuotas(ServiceQuota&& value) { m_quotas.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<ServiceQuota> m_quotas;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,169 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API ListServicesRequest : public ServiceQuotasRequest
{
public:
ListServicesRequest();
// 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 "ListServices"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>(Optional) Use this parameter in a request if you receive a
* <code>NextToken</code> response in a previous request that indicates that
* there's more output available. In a subsequent call, set it to the value of the
* previous call's <code>NextToken</code> response to indicate where the output
* should continue from.</p>
*/
inline ListServicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>(Optional) Limits the number of results that you want to include in the
* response. If you don't include this parameter, the response defaults to a value
* that's specific to the operation. If additional items exist beyond the specified
* maximum, the <code>NextToken</code> element is present and has a value (isn't
* null). Include that value as the <code>NextToken</code> request parameter in the
* call to the operation to get the next part of the results. You should check
* <code>NextToken</code> after every operation to ensure that you receive all of
* the results.</p>
*/
inline ListServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/service-quotas/model/ServiceInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API ListServicesResult
{
public:
ListServicesResult();
ListServicesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListServicesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If present in the response, this value indicates there's more output
* available that what's included in the current response. This can occur even when
* the response includes no values at all, such as when you ask for a filtered view
* of a very long list. Use this value in the <code>NextToken</code> request
* parameter in a subsequent call to the operation to continue processing and get
* the next part of the output. You should repeat this until the
* <code>NextToken</code> response element comes back empty (as
* <code>null</code>).</p>
*/
inline ListServicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Returns a list of services. </p>
*/
inline const Aws::Vector<ServiceInfo>& GetServices() const{ return m_services; }
/**
* <p>Returns a list of services. </p>
*/
inline void SetServices(const Aws::Vector<ServiceInfo>& value) { m_services = value; }
/**
* <p>Returns a list of services. </p>
*/
inline void SetServices(Aws::Vector<ServiceInfo>&& value) { m_services = std::move(value); }
/**
* <p>Returns a list of services. </p>
*/
inline ListServicesResult& WithServices(const Aws::Vector<ServiceInfo>& value) { SetServices(value); return *this;}
/**
* <p>Returns a list of services. </p>
*/
inline ListServicesResult& WithServices(Aws::Vector<ServiceInfo>&& value) { SetServices(std::move(value)); return *this;}
/**
* <p>Returns a list of services. </p>
*/
inline ListServicesResult& AddServices(const ServiceInfo& value) { m_services.push_back(value); return *this; }
/**
* <p>Returns a list of services. </p>
*/
inline ListServicesResult& AddServices(ServiceInfo&& value) { m_services.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<ServiceInfo> m_services;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,331 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>A structure that uses CloudWatch metrics to gather data about the service
* quota.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/MetricInfo">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API MetricInfo
{
public:
MetricInfo();
MetricInfo(Aws::Utils::Json::JsonView jsonValue);
MetricInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::move(value); }
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline MetricInfo& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline MetricInfo& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(std::move(value)); return *this;}
/**
* <p>The namespace of the metric. The namespace is a container for CloudWatch
* metrics. You can specify a name for the namespace when you create a metric.</p>
*/
inline MetricInfo& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline const Aws::String& GetMetricName() const{ return m_metricName; }
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline MetricInfo& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline MetricInfo& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
/**
* <p>The name of the CloudWatch metric that measures usage of a service quota.
* This is a required field.</p>
*/
inline MetricInfo& WithMetricName(const char* value) { SetMetricName(value); return *this;}
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetMetricDimensions() const{ return m_metricDimensions; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline bool MetricDimensionsHasBeenSet() const { return m_metricDimensionsHasBeenSet; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline void SetMetricDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions = value; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline void SetMetricDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions = std::move(value); }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& WithMetricDimensions(const Aws::Map<Aws::String, Aws::String>& value) { SetMetricDimensions(value); return *this;}
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& WithMetricDimensions(Aws::Map<Aws::String, Aws::String>&& value) { SetMetricDimensions(std::move(value)); return *this;}
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(const Aws::String& key, const Aws::String& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, value); return *this; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(Aws::String&& key, const Aws::String& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::move(key), value); return *this; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(const Aws::String& key, Aws::String&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, std::move(value)); return *this; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(Aws::String&& key, Aws::String&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(const char* key, Aws::String&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, std::move(value)); return *this; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(Aws::String&& key, const char* value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::move(key), value); return *this; }
/**
* <p>A dimension is a name/value pair that is part of the identity of a metric.
* Every metric has specific characteristics that describe it, and you can think of
* dimensions as categories for those characteristics. These dimensions are part of
* the CloudWatch Metric Identity that measures usage against a particular service
* quota.</p>
*/
inline MetricInfo& AddMetricDimensions(const char* key, const char* value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, value); return *this; }
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline const Aws::String& GetMetricStatisticRecommendation() const{ return m_metricStatisticRecommendation; }
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline bool MetricStatisticRecommendationHasBeenSet() const { return m_metricStatisticRecommendationHasBeenSet; }
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline void SetMetricStatisticRecommendation(const Aws::String& value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation = value; }
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline void SetMetricStatisticRecommendation(Aws::String&& value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation = std::move(value); }
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline void SetMetricStatisticRecommendation(const char* value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation.assign(value); }
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline MetricInfo& WithMetricStatisticRecommendation(const Aws::String& value) { SetMetricStatisticRecommendation(value); return *this;}
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline MetricInfo& WithMetricStatisticRecommendation(Aws::String&& value) { SetMetricStatisticRecommendation(std::move(value)); return *this;}
/**
* <p>Statistics are metric data aggregations over specified periods of time. This
* is the recommended statistic to use when comparing usage in the CloudWatch
* Metric against your Service Quota.</p>
*/
inline MetricInfo& WithMetricStatisticRecommendation(const char* value) { SetMetricStatisticRecommendation(value); return *this;}
private:
Aws::String m_metricNamespace;
bool m_metricNamespaceHasBeenSet;
Aws::String m_metricName;
bool m_metricNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_metricDimensions;
bool m_metricDimensionsHasBeenSet;
Aws::String m_metricStatisticRecommendation;
bool m_metricStatisticRecommendationHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
enum class PeriodUnit
{
NOT_SET,
MICROSECOND,
MILLISECOND,
SECOND,
MINUTE,
HOUR,
DAY,
WEEK
};
namespace PeriodUnitMapper
{
AWS_SERVICEQUOTAS_API PeriodUnit GetPeriodUnitForName(const Aws::String& name);
AWS_SERVICEQUOTAS_API Aws::String GetNameForPeriodUnit(PeriodUnit value);
} // namespace PeriodUnitMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API PutServiceQuotaIncreaseRequestIntoTemplateRequest : public ServiceQuotasRequest
{
public:
PutServiceQuotaIncreaseRequestIntoTemplateRequest();
// 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 "PutServiceQuotaIncreaseRequestIntoTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
/**
* <p>Specifies the AWS Region for the quota. </p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
/**
* <p>Specifies the new, increased value for the quota. </p>
*/
inline double GetDesiredValue() const{ return m_desiredValue; }
/**
* <p>Specifies the new, increased value for the quota. </p>
*/
inline bool DesiredValueHasBeenSet() const { return m_desiredValueHasBeenSet; }
/**
* <p>Specifies the new, increased value for the quota. </p>
*/
inline void SetDesiredValue(double value) { m_desiredValueHasBeenSet = true; m_desiredValue = value; }
/**
* <p>Specifies the new, increased value for the quota. </p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateRequest& WithDesiredValue(double value) { SetDesiredValue(value); return *this;}
private:
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_awsRegion;
bool m_awsRegionHasBeenSet;
double m_desiredValue;
bool m_desiredValueHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/ServiceQuotaIncreaseRequestInTemplate.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API PutServiceQuotaIncreaseRequestIntoTemplateResult
{
public:
PutServiceQuotaIncreaseRequestIntoTemplateResult();
PutServiceQuotaIncreaseRequestIntoTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutServiceQuotaIncreaseRequestIntoTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A structure that contains information about one service quota increase
* request.</p>
*/
inline const ServiceQuotaIncreaseRequestInTemplate& GetServiceQuotaIncreaseRequestInTemplate() const{ return m_serviceQuotaIncreaseRequestInTemplate; }
/**
* <p>A structure that contains information about one service quota increase
* request.</p>
*/
inline void SetServiceQuotaIncreaseRequestInTemplate(const ServiceQuotaIncreaseRequestInTemplate& value) { m_serviceQuotaIncreaseRequestInTemplate = value; }
/**
* <p>A structure that contains information about one service quota increase
* request.</p>
*/
inline void SetServiceQuotaIncreaseRequestInTemplate(ServiceQuotaIncreaseRequestInTemplate&& value) { m_serviceQuotaIncreaseRequestInTemplate = std::move(value); }
/**
* <p>A structure that contains information about one service quota increase
* request.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateResult& WithServiceQuotaIncreaseRequestInTemplate(const ServiceQuotaIncreaseRequestInTemplate& value) { SetServiceQuotaIncreaseRequestInTemplate(value); return *this;}
/**
* <p>A structure that contains information about one service quota increase
* request.</p>
*/
inline PutServiceQuotaIncreaseRequestIntoTemplateResult& WithServiceQuotaIncreaseRequestInTemplate(ServiceQuotaIncreaseRequestInTemplate&& value) { SetServiceQuotaIncreaseRequestInTemplate(std::move(value)); return *this;}
private:
ServiceQuotaIncreaseRequestInTemplate m_serviceQuotaIncreaseRequestInTemplate;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/PeriodUnit.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>A structure that contains information about the quota period.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/QuotaPeriod">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API QuotaPeriod
{
public:
QuotaPeriod();
QuotaPeriod(Aws::Utils::Json::JsonView jsonValue);
QuotaPeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The value of a period.</p>
*/
inline int GetPeriodValue() const{ return m_periodValue; }
/**
* <p>The value of a period.</p>
*/
inline bool PeriodValueHasBeenSet() const { return m_periodValueHasBeenSet; }
/**
* <p>The value of a period.</p>
*/
inline void SetPeriodValue(int value) { m_periodValueHasBeenSet = true; m_periodValue = value; }
/**
* <p>The value of a period.</p>
*/
inline QuotaPeriod& WithPeriodValue(int value) { SetPeriodValue(value); return *this;}
/**
* <p>The time unit of a period.</p>
*/
inline const PeriodUnit& GetPeriodUnit() const{ return m_periodUnit; }
/**
* <p>The time unit of a period.</p>
*/
inline bool PeriodUnitHasBeenSet() const { return m_periodUnitHasBeenSet; }
/**
* <p>The time unit of a period.</p>
*/
inline void SetPeriodUnit(const PeriodUnit& value) { m_periodUnitHasBeenSet = true; m_periodUnit = value; }
/**
* <p>The time unit of a period.</p>
*/
inline void SetPeriodUnit(PeriodUnit&& value) { m_periodUnitHasBeenSet = true; m_periodUnit = std::move(value); }
/**
* <p>The time unit of a period.</p>
*/
inline QuotaPeriod& WithPeriodUnit(const PeriodUnit& value) { SetPeriodUnit(value); return *this;}
/**
* <p>The time unit of a period.</p>
*/
inline QuotaPeriod& WithPeriodUnit(PeriodUnit&& value) { SetPeriodUnit(std::move(value)); return *this;}
private:
int m_periodValue;
bool m_periodValueHasBeenSet;
PeriodUnit m_periodUnit;
bool m_periodUnitHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/ServiceQuotasRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
/**
*/
class AWS_SERVICEQUOTAS_API RequestServiceQuotaIncreaseRequest : public ServiceQuotasRequest
{
public:
RequestServiceQuotaIncreaseRequest();
// 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 "RequestServiceQuotaIncrease"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline RequestServiceQuotaIncreaseRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline RequestServiceQuotaIncreaseRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline RequestServiceQuotaIncreaseRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline RequestServiceQuotaIncreaseRequest& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline RequestServiceQuotaIncreaseRequest& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline RequestServiceQuotaIncreaseRequest& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the value submitted in the service quota increase request. </p>
*/
inline double GetDesiredValue() const{ return m_desiredValue; }
/**
* <p>Specifies the value submitted in the service quota increase request. </p>
*/
inline bool DesiredValueHasBeenSet() const { return m_desiredValueHasBeenSet; }
/**
* <p>Specifies the value submitted in the service quota increase request. </p>
*/
inline void SetDesiredValue(double value) { m_desiredValueHasBeenSet = true; m_desiredValue = value; }
/**
* <p>Specifies the value submitted in the service quota increase request. </p>
*/
inline RequestServiceQuotaIncreaseRequest& WithDesiredValue(double value) { SetDesiredValue(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
double m_desiredValue;
bool m_desiredValueHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/service-quotas/model/RequestedServiceQuotaChange.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
class AWS_SERVICEQUOTAS_API RequestServiceQuotaIncreaseResult
{
public:
RequestServiceQuotaIncreaseResult();
RequestServiceQuotaIncreaseResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RequestServiceQuotaIncreaseResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Returns a list of service quota requests.</p>
*/
inline const RequestedServiceQuotaChange& GetRequestedQuota() const{ return m_requestedQuota; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline void SetRequestedQuota(const RequestedServiceQuotaChange& value) { m_requestedQuota = value; }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline void SetRequestedQuota(RequestedServiceQuotaChange&& value) { m_requestedQuota = std::move(value); }
/**
* <p>Returns a list of service quota requests.</p>
*/
inline RequestServiceQuotaIncreaseResult& WithRequestedQuota(const RequestedServiceQuotaChange& value) { SetRequestedQuota(value); return *this;}
/**
* <p>Returns a list of service quota requests.</p>
*/
inline RequestServiceQuotaIncreaseResult& WithRequestedQuota(RequestedServiceQuotaChange&& value) { SetRequestedQuota(std::move(value)); return *this;}
private:
RequestedServiceQuotaChange m_requestedQuota;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
enum class RequestStatus
{
NOT_SET,
PENDING,
CASE_OPENED,
APPROVED,
DENIED,
CASE_CLOSED
};
namespace RequestStatusMapper
{
AWS_SERVICEQUOTAS_API RequestStatus GetRequestStatusForName(const Aws::String& name);
AWS_SERVICEQUOTAS_API Aws::String GetNameForRequestStatus(RequestStatus value);
} // namespace RequestStatusMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,605 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/service-quotas/model/RequestStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>A structure that contains information about a requested change for a
* quota.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/RequestedServiceQuotaChange">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API RequestedServiceQuotaChange
{
public:
RequestedServiceQuotaChange();
RequestedServiceQuotaChange(Aws::Utils::Json::JsonView jsonValue);
RequestedServiceQuotaChange& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline RequestedServiceQuotaChange& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline RequestedServiceQuotaChange& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier of a requested service quota change.</p>
*/
inline RequestedServiceQuotaChange& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline const Aws::String& GetCaseId() const{ return m_caseId; }
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); }
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;}
/**
* <p>The case Id for the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithCaseId(const char* value) { SetCaseId(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline RequestedServiceQuotaChange& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline RequestedServiceQuotaChange& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline RequestedServiceQuotaChange& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline RequestedServiceQuotaChange& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline RequestedServiceQuotaChange& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline RequestedServiceQuotaChange& WithServiceName(const char* value) { SetServiceName(value); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>Specifies the service quota that you want to use.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>Name of the service quota.</p>
*/
inline const Aws::String& GetQuotaName() const{ return m_quotaName; }
/**
* <p>Name of the service quota.</p>
*/
inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
/**
* <p>Name of the service quota.</p>
*/
inline void SetQuotaName(const Aws::String& value) { m_quotaNameHasBeenSet = true; m_quotaName = value; }
/**
* <p>Name of the service quota.</p>
*/
inline void SetQuotaName(Aws::String&& value) { m_quotaNameHasBeenSet = true; m_quotaName = std::move(value); }
/**
* <p>Name of the service quota.</p>
*/
inline void SetQuotaName(const char* value) { m_quotaNameHasBeenSet = true; m_quotaName.assign(value); }
/**
* <p>Name of the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaName(const Aws::String& value) { SetQuotaName(value); return *this;}
/**
* <p>Name of the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaName(Aws::String&& value) { SetQuotaName(std::move(value)); return *this;}
/**
* <p>Name of the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaName(const char* value) { SetQuotaName(value); return *this;}
/**
* <p>New increased value for the service quota.</p>
*/
inline double GetDesiredValue() const{ return m_desiredValue; }
/**
* <p>New increased value for the service quota.</p>
*/
inline bool DesiredValueHasBeenSet() const { return m_desiredValueHasBeenSet; }
/**
* <p>New increased value for the service quota.</p>
*/
inline void SetDesiredValue(double value) { m_desiredValueHasBeenSet = true; m_desiredValue = value; }
/**
* <p>New increased value for the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithDesiredValue(double value) { SetDesiredValue(value); return *this;}
/**
* <p>State of the service quota increase request.</p>
*/
inline const RequestStatus& GetStatus() const{ return m_status; }
/**
* <p>State of the service quota increase request.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>State of the service quota increase request.</p>
*/
inline void SetStatus(const RequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>State of the service quota increase request.</p>
*/
inline void SetStatus(RequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>State of the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithStatus(const RequestStatus& value) { SetStatus(value); return *this;}
/**
* <p>State of the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithStatus(RequestStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The date and time when the service quota increase request was received and
* the case Id was created. </p>
*/
inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
/**
* <p>The date and time when the service quota increase request was received and
* the case Id was created. </p>
*/
inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
/**
* <p>The date and time when the service quota increase request was received and
* the case Id was created. </p>
*/
inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
/**
* <p>The date and time when the service quota increase request was received and
* the case Id was created. </p>
*/
inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
/**
* <p>The date and time when the service quota increase request was received and
* the case Id was created. </p>
*/
inline RequestedServiceQuotaChange& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
/**
* <p>The date and time when the service quota increase request was received and
* the case Id was created. </p>
*/
inline RequestedServiceQuotaChange& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
/**
* <p>The date and time of the most recent change in the service quota increase
* request.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
/**
* <p>The date and time of the most recent change in the service quota increase
* request.</p>
*/
inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
/**
* <p>The date and time of the most recent change in the service quota increase
* request.</p>
*/
inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
/**
* <p>The date and time of the most recent change in the service quota increase
* request.</p>
*/
inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
/**
* <p>The date and time of the most recent change in the service quota increase
* request.</p>
*/
inline RequestedServiceQuotaChange& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
/**
* <p>The date and time of the most recent change in the service quota increase
* request.</p>
*/
inline RequestedServiceQuotaChange& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline const Aws::String& GetRequester() const{ return m_requester; }
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline bool RequesterHasBeenSet() const { return m_requesterHasBeenSet; }
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline void SetRequester(const Aws::String& value) { m_requesterHasBeenSet = true; m_requester = value; }
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline void SetRequester(Aws::String&& value) { m_requesterHasBeenSet = true; m_requester = std::move(value); }
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline void SetRequester(const char* value) { m_requesterHasBeenSet = true; m_requester.assign(value); }
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithRequester(const Aws::String& value) { SetRequester(value); return *this;}
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithRequester(Aws::String&& value) { SetRequester(std::move(value)); return *this;}
/**
* <p>The IAM identity who submitted the service quota increase request.</p>
*/
inline RequestedServiceQuotaChange& WithRequester(const char* value) { SetRequester(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline const Aws::String& GetQuotaArn() const{ return m_quotaArn; }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline bool QuotaArnHasBeenSet() const { return m_quotaArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline void SetQuotaArn(const Aws::String& value) { m_quotaArnHasBeenSet = true; m_quotaArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline void SetQuotaArn(Aws::String&& value) { m_quotaArnHasBeenSet = true; m_quotaArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline void SetQuotaArn(const char* value) { m_quotaArnHasBeenSet = true; m_quotaArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaArn(const Aws::String& value) { SetQuotaArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaArn(Aws::String&& value) { SetQuotaArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline RequestedServiceQuotaChange& WithQuotaArn(const char* value) { SetQuotaArn(value); return *this;}
/**
* <p>Identifies if the quota is global.</p>
*/
inline bool GetGlobalQuota() const{ return m_globalQuota; }
/**
* <p>Identifies if the quota is global.</p>
*/
inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
/**
* <p>Identifies if the quota is global.</p>
*/
inline void SetGlobalQuota(bool value) { m_globalQuotaHasBeenSet = true; m_globalQuota = value; }
/**
* <p>Identifies if the quota is global.</p>
*/
inline RequestedServiceQuotaChange& WithGlobalQuota(bool value) { SetGlobalQuota(value); return *this;}
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline const Aws::String& GetUnit() const{ return m_unit; }
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline RequestedServiceQuotaChange& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline RequestedServiceQuotaChange& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
/**
* <p>Specifies the unit used for the quota.</p>
*/
inline RequestedServiceQuotaChange& WithUnit(const char* value) { SetUnit(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_caseId;
bool m_caseIdHasBeenSet;
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
Aws::String m_quotaName;
bool m_quotaNameHasBeenSet;
double m_desiredValue;
bool m_desiredValueHasBeenSet;
RequestStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_created;
bool m_createdHasBeenSet;
Aws::Utils::DateTime m_lastUpdated;
bool m_lastUpdatedHasBeenSet;
Aws::String m_requester;
bool m_requesterHasBeenSet;
Aws::String m_quotaArn;
bool m_quotaArnHasBeenSet;
bool m_globalQuota;
bool m_globalQuotaHasBeenSet;
Aws::String m_unit;
bool m_unitHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>A structure that contains the <code>ServiceName</code> and
* <code>ServiceCode</code>. It does not include all details of the service quota.
* To get those values, use the <a>ListServiceQuotas</a> operation. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ServiceInfo">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API ServiceInfo
{
public:
ServiceInfo();
ServiceInfo(Aws::Utils::Json::JsonView jsonValue);
ServiceInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ServiceInfo& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ServiceInfo& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ServiceInfo& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceInfo& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceInfo& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceInfo& WithServiceName(const char* value) { SetServiceName(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,492 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/service-quotas/model/MetricInfo.h>
#include <aws/service-quotas/model/QuotaPeriod.h>
#include <aws/service-quotas/model/ErrorReason.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>A structure that contains the full set of details that define the service
* quota.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ServiceQuota">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API ServiceQuota
{
public:
ServiceQuota();
ServiceQuota(Aws::Utils::Json::JsonView jsonValue);
ServiceQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the service that you want to use.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ServiceQuota& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ServiceQuota& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>Specifies the service that you want to use.</p>
*/
inline ServiceQuota& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceQuota& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceQuota& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceQuota& WithServiceName(const char* value) { SetServiceName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline const Aws::String& GetQuotaArn() const{ return m_quotaArn; }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline bool QuotaArnHasBeenSet() const { return m_quotaArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline void SetQuotaArn(const Aws::String& value) { m_quotaArnHasBeenSet = true; m_quotaArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline void SetQuotaArn(Aws::String&& value) { m_quotaArnHasBeenSet = true; m_quotaArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline void SetQuotaArn(const char* value) { m_quotaArnHasBeenSet = true; m_quotaArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline ServiceQuota& WithQuotaArn(const Aws::String& value) { SetQuotaArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline ServiceQuota& WithQuotaArn(Aws::String&& value) { SetQuotaArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the service quota.</p>
*/
inline ServiceQuota& WithQuotaArn(const char* value) { SetQuotaArn(value); return *this;}
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline ServiceQuota& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline ServiceQuota& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>The code identifier for the service quota specified.</p>
*/
inline ServiceQuota& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>The name identifier of the service quota.</p>
*/
inline const Aws::String& GetQuotaName() const{ return m_quotaName; }
/**
* <p>The name identifier of the service quota.</p>
*/
inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
/**
* <p>The name identifier of the service quota.</p>
*/
inline void SetQuotaName(const Aws::String& value) { m_quotaNameHasBeenSet = true; m_quotaName = value; }
/**
* <p>The name identifier of the service quota.</p>
*/
inline void SetQuotaName(Aws::String&& value) { m_quotaNameHasBeenSet = true; m_quotaName = std::move(value); }
/**
* <p>The name identifier of the service quota.</p>
*/
inline void SetQuotaName(const char* value) { m_quotaNameHasBeenSet = true; m_quotaName.assign(value); }
/**
* <p>The name identifier of the service quota.</p>
*/
inline ServiceQuota& WithQuotaName(const Aws::String& value) { SetQuotaName(value); return *this;}
/**
* <p>The name identifier of the service quota.</p>
*/
inline ServiceQuota& WithQuotaName(Aws::String&& value) { SetQuotaName(std::move(value)); return *this;}
/**
* <p>The name identifier of the service quota.</p>
*/
inline ServiceQuota& WithQuotaName(const char* value) { SetQuotaName(value); return *this;}
/**
* <p>The value of service quota.</p>
*/
inline double GetValue() const{ return m_value; }
/**
* <p>The value of service quota.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of service quota.</p>
*/
inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of service quota.</p>
*/
inline ServiceQuota& WithValue(double value) { SetValue(value); return *this;}
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline const Aws::String& GetUnit() const{ return m_unit; }
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline ServiceQuota& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline ServiceQuota& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
/**
* <p>The unit of measurement for the value of the service quota.</p>
*/
inline ServiceQuota& WithUnit(const char* value) { SetUnit(value); return *this;}
/**
* <p>Specifies if the quota value can be increased.</p>
*/
inline bool GetAdjustable() const{ return m_adjustable; }
/**
* <p>Specifies if the quota value can be increased.</p>
*/
inline bool AdjustableHasBeenSet() const { return m_adjustableHasBeenSet; }
/**
* <p>Specifies if the quota value can be increased.</p>
*/
inline void SetAdjustable(bool value) { m_adjustableHasBeenSet = true; m_adjustable = value; }
/**
* <p>Specifies if the quota value can be increased.</p>
*/
inline ServiceQuota& WithAdjustable(bool value) { SetAdjustable(value); return *this;}
/**
* <p>Specifies if the quota is global.</p>
*/
inline bool GetGlobalQuota() const{ return m_globalQuota; }
/**
* <p>Specifies if the quota is global.</p>
*/
inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
/**
* <p>Specifies if the quota is global.</p>
*/
inline void SetGlobalQuota(bool value) { m_globalQuotaHasBeenSet = true; m_globalQuota = value; }
/**
* <p>Specifies if the quota is global.</p>
*/
inline ServiceQuota& WithGlobalQuota(bool value) { SetGlobalQuota(value); return *this;}
/**
* <p>Specifies the details about the measurement. </p>
*/
inline const MetricInfo& GetUsageMetric() const{ return m_usageMetric; }
/**
* <p>Specifies the details about the measurement. </p>
*/
inline bool UsageMetricHasBeenSet() const { return m_usageMetricHasBeenSet; }
/**
* <p>Specifies the details about the measurement. </p>
*/
inline void SetUsageMetric(const MetricInfo& value) { m_usageMetricHasBeenSet = true; m_usageMetric = value; }
/**
* <p>Specifies the details about the measurement. </p>
*/
inline void SetUsageMetric(MetricInfo&& value) { m_usageMetricHasBeenSet = true; m_usageMetric = std::move(value); }
/**
* <p>Specifies the details about the measurement. </p>
*/
inline ServiceQuota& WithUsageMetric(const MetricInfo& value) { SetUsageMetric(value); return *this;}
/**
* <p>Specifies the details about the measurement. </p>
*/
inline ServiceQuota& WithUsageMetric(MetricInfo&& value) { SetUsageMetric(std::move(value)); return *this;}
/**
* <p>Identifies the unit and value of how time is measured.</p>
*/
inline const QuotaPeriod& GetPeriod() const{ return m_period; }
/**
* <p>Identifies the unit and value of how time is measured.</p>
*/
inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
/**
* <p>Identifies the unit and value of how time is measured.</p>
*/
inline void SetPeriod(const QuotaPeriod& value) { m_periodHasBeenSet = true; m_period = value; }
/**
* <p>Identifies the unit and value of how time is measured.</p>
*/
inline void SetPeriod(QuotaPeriod&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
/**
* <p>Identifies the unit and value of how time is measured.</p>
*/
inline ServiceQuota& WithPeriod(const QuotaPeriod& value) { SetPeriod(value); return *this;}
/**
* <p>Identifies the unit and value of how time is measured.</p>
*/
inline ServiceQuota& WithPeriod(QuotaPeriod&& value) { SetPeriod(std::move(value)); return *this;}
/**
* <p>Specifies the <code>ErrorCode</code> and <code>ErrorMessage</code> when
* success isn't achieved.</p>
*/
inline const ErrorReason& GetErrorReason() const{ return m_errorReason; }
/**
* <p>Specifies the <code>ErrorCode</code> and <code>ErrorMessage</code> when
* success isn't achieved.</p>
*/
inline bool ErrorReasonHasBeenSet() const { return m_errorReasonHasBeenSet; }
/**
* <p>Specifies the <code>ErrorCode</code> and <code>ErrorMessage</code> when
* success isn't achieved.</p>
*/
inline void SetErrorReason(const ErrorReason& value) { m_errorReasonHasBeenSet = true; m_errorReason = value; }
/**
* <p>Specifies the <code>ErrorCode</code> and <code>ErrorMessage</code> when
* success isn't achieved.</p>
*/
inline void SetErrorReason(ErrorReason&& value) { m_errorReasonHasBeenSet = true; m_errorReason = std::move(value); }
/**
* <p>Specifies the <code>ErrorCode</code> and <code>ErrorMessage</code> when
* success isn't achieved.</p>
*/
inline ServiceQuota& WithErrorReason(const ErrorReason& value) { SetErrorReason(value); return *this;}
/**
* <p>Specifies the <code>ErrorCode</code> and <code>ErrorMessage</code> when
* success isn't achieved.</p>
*/
inline ServiceQuota& WithErrorReason(ErrorReason&& value) { SetErrorReason(std::move(value)); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
Aws::String m_quotaArn;
bool m_quotaArnHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
Aws::String m_quotaName;
bool m_quotaNameHasBeenSet;
double m_value;
bool m_valueHasBeenSet;
Aws::String m_unit;
bool m_unitHasBeenSet;
bool m_adjustable;
bool m_adjustableHasBeenSet;
bool m_globalQuota;
bool m_globalQuotaHasBeenSet;
MetricInfo m_usageMetric;
bool m_usageMetricHasBeenSet;
QuotaPeriod m_period;
bool m_periodHasBeenSet;
ErrorReason m_errorReason;
bool m_errorReasonHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ServiceQuotas
{
namespace Model
{
/**
* <p>A structure that contains information about one service quota increase
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ServiceQuotaIncreaseRequestInTemplate">AWS
* API Reference</a></p>
*/
class AWS_SERVICEQUOTAS_API ServiceQuotaIncreaseRequestInTemplate
{
public:
ServiceQuotaIncreaseRequestInTemplate();
ServiceQuotaIncreaseRequestInTemplate(Aws::Utils::Json::JsonView jsonValue);
ServiceQuotaIncreaseRequestInTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
/**
* <p>The code identifier for the AWS service specified in the increase
* request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline const Aws::String& GetServiceName() const{ return m_serviceName; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
/**
* <p>The name of the AWS service specified in the increase request. </p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithServiceName(const char* value) { SetServiceName(value); return *this;}
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
/**
* <p>The code identifier for the service quota specified in the increase
* request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline const Aws::String& GetQuotaName() const{ return m_quotaName; }
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline bool QuotaNameHasBeenSet() const { return m_quotaNameHasBeenSet; }
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline void SetQuotaName(const Aws::String& value) { m_quotaNameHasBeenSet = true; m_quotaName = value; }
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline void SetQuotaName(Aws::String&& value) { m_quotaNameHasBeenSet = true; m_quotaName = std::move(value); }
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline void SetQuotaName(const char* value) { m_quotaNameHasBeenSet = true; m_quotaName.assign(value); }
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithQuotaName(const Aws::String& value) { SetQuotaName(value); return *this;}
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithQuotaName(Aws::String&& value) { SetQuotaName(std::move(value)); return *this;}
/**
* <p>The name of the service quota in the increase request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithQuotaName(const char* value) { SetQuotaName(value); return *this;}
/**
* <p>Identifies the new, increased value of the service quota in the increase
* request. </p>
*/
inline double GetDesiredValue() const{ return m_desiredValue; }
/**
* <p>Identifies the new, increased value of the service quota in the increase
* request. </p>
*/
inline bool DesiredValueHasBeenSet() const { return m_desiredValueHasBeenSet; }
/**
* <p>Identifies the new, increased value of the service quota in the increase
* request. </p>
*/
inline void SetDesiredValue(double value) { m_desiredValueHasBeenSet = true; m_desiredValue = value; }
/**
* <p>Identifies the new, increased value of the service quota in the increase
* request. </p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithDesiredValue(double value) { SetDesiredValue(value); return *this;}
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
/**
* <p>The AWS Region where the increase request occurs.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
/**
* <p>The unit of measure for the increase request.</p>
*/
inline const Aws::String& GetUnit() const{ return m_unit; }
/**
* <p>The unit of measure for the increase request.</p>
*/
inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
/**
* <p>The unit of measure for the increase request.</p>
*/
inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
/**
* <p>The unit of measure for the increase request.</p>
*/
inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
/**
* <p>The unit of measure for the increase request.</p>
*/
inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
/**
* <p>The unit of measure for the increase request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
/**
* <p>The unit of measure for the increase request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
/**
* <p>The unit of measure for the increase request.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithUnit(const char* value) { SetUnit(value); return *this;}
/**
* <p>Specifies if the quota is a global quota.</p>
*/
inline bool GetGlobalQuota() const{ return m_globalQuota; }
/**
* <p>Specifies if the quota is a global quota.</p>
*/
inline bool GlobalQuotaHasBeenSet() const { return m_globalQuotaHasBeenSet; }
/**
* <p>Specifies if the quota is a global quota.</p>
*/
inline void SetGlobalQuota(bool value) { m_globalQuotaHasBeenSet = true; m_globalQuota = value; }
/**
* <p>Specifies if the quota is a global quota.</p>
*/
inline ServiceQuotaIncreaseRequestInTemplate& WithGlobalQuota(bool value) { SetGlobalQuota(value); return *this;}
private:
Aws::String m_serviceCode;
bool m_serviceCodeHasBeenSet;
Aws::String m_serviceName;
bool m_serviceNameHasBeenSet;
Aws::String m_quotaCode;
bool m_quotaCodeHasBeenSet;
Aws::String m_quotaName;
bool m_quotaNameHasBeenSet;
double m_desiredValue;
bool m_desiredValueHasBeenSet;
Aws::String m_awsRegion;
bool m_awsRegionHasBeenSet;
Aws::String m_unit;
bool m_unitHasBeenSet;
bool m_globalQuota;
bool m_globalQuotaHasBeenSet;
};
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/service-quotas/ServiceQuotas_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
enum class ServiceQuotaTemplateAssociationStatus
{
NOT_SET,
ASSOCIATED,
DISASSOCIATED
};
namespace ServiceQuotaTemplateAssociationStatusMapper
{
AWS_SERVICEQUOTAS_API ServiceQuotaTemplateAssociationStatus GetServiceQuotaTemplateAssociationStatusForName(const Aws::String& name);
AWS_SERVICEQUOTAS_API Aws::String GetNameForServiceQuotaTemplateAssociationStatus(ServiceQuotaTemplateAssociationStatus value);
} // namespace ServiceQuotaTemplateAssociationStatusMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,544 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/HttpResponse.h>
#include <aws/core/http/HttpClientFactory.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/threading/Executor.h>
#include <aws/core/utils/DNS.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws/service-quotas/ServiceQuotasClient.h>
#include <aws/service-quotas/ServiceQuotasEndpoint.h>
#include <aws/service-quotas/ServiceQuotasErrorMarshaller.h>
#include <aws/service-quotas/model/AssociateServiceQuotaTemplateRequest.h>
#include <aws/service-quotas/model/DeleteServiceQuotaIncreaseRequestFromTemplateRequest.h>
#include <aws/service-quotas/model/DisassociateServiceQuotaTemplateRequest.h>
#include <aws/service-quotas/model/GetAWSDefaultServiceQuotaRequest.h>
#include <aws/service-quotas/model/GetAssociationForServiceQuotaTemplateRequest.h>
#include <aws/service-quotas/model/GetRequestedServiceQuotaChangeRequest.h>
#include <aws/service-quotas/model/GetServiceQuotaRequest.h>
#include <aws/service-quotas/model/GetServiceQuotaIncreaseRequestFromTemplateRequest.h>
#include <aws/service-quotas/model/ListAWSDefaultServiceQuotasRequest.h>
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryRequest.h>
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryByQuotaRequest.h>
#include <aws/service-quotas/model/ListServiceQuotaIncreaseRequestsInTemplateRequest.h>
#include <aws/service-quotas/model/ListServiceQuotasRequest.h>
#include <aws/service-quotas/model/ListServicesRequest.h>
#include <aws/service-quotas/model/PutServiceQuotaIncreaseRequestIntoTemplateRequest.h>
#include <aws/service-quotas/model/RequestServiceQuotaIncreaseRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::Client;
using namespace Aws::ServiceQuotas;
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Http;
using namespace Aws::Utils::Json;
static const char* SERVICE_NAME = "servicequotas";
static const char* ALLOCATION_TAG = "ServiceQuotasClient";
ServiceQuotasClient::ServiceQuotasClient(const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ServiceQuotasErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
ServiceQuotasClient::ServiceQuotasClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ServiceQuotasErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
ServiceQuotasClient::ServiceQuotasClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ServiceQuotasErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
ServiceQuotasClient::~ServiceQuotasClient()
{
}
void ServiceQuotasClient::init(const ClientConfiguration& config)
{
SetServiceClientName("Service Quotas");
m_configScheme = SchemeMapper::ToString(config.scheme);
if (config.endpointOverride.empty())
{
m_uri = m_configScheme + "://" + ServiceQuotasEndpoint::ForRegion(config.region, config.useDualStack);
}
else
{
OverrideEndpoint(config.endpointOverride);
}
}
void ServiceQuotasClient::OverrideEndpoint(const Aws::String& endpoint)
{
if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
{
m_uri = endpoint;
}
else
{
m_uri = m_configScheme + "://" + endpoint;
}
}
AssociateServiceQuotaTemplateOutcome ServiceQuotasClient::AssociateServiceQuotaTemplate(const AssociateServiceQuotaTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return AssociateServiceQuotaTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
AssociateServiceQuotaTemplateOutcomeCallable ServiceQuotasClient::AssociateServiceQuotaTemplateCallable(const AssociateServiceQuotaTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< AssociateServiceQuotaTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateServiceQuotaTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::AssociateServiceQuotaTemplateAsync(const AssociateServiceQuotaTemplateRequest& request, const AssociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->AssociateServiceQuotaTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::AssociateServiceQuotaTemplateAsyncHelper(const AssociateServiceQuotaTemplateRequest& request, const AssociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, AssociateServiceQuotaTemplate(request), context);
}
DeleteServiceQuotaIncreaseRequestFromTemplateOutcome ServiceQuotasClient::DeleteServiceQuotaIncreaseRequestFromTemplate(const DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DeleteServiceQuotaIncreaseRequestFromTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DeleteServiceQuotaIncreaseRequestFromTemplateOutcomeCallable ServiceQuotasClient::DeleteServiceQuotaIncreaseRequestFromTemplateCallable(const DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteServiceQuotaIncreaseRequestFromTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteServiceQuotaIncreaseRequestFromTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::DeleteServiceQuotaIncreaseRequestFromTemplateAsync(const DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request, const DeleteServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteServiceQuotaIncreaseRequestFromTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::DeleteServiceQuotaIncreaseRequestFromTemplateAsyncHelper(const DeleteServiceQuotaIncreaseRequestFromTemplateRequest& request, const DeleteServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteServiceQuotaIncreaseRequestFromTemplate(request), context);
}
DisassociateServiceQuotaTemplateOutcome ServiceQuotasClient::DisassociateServiceQuotaTemplate(const DisassociateServiceQuotaTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DisassociateServiceQuotaTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DisassociateServiceQuotaTemplateOutcomeCallable ServiceQuotasClient::DisassociateServiceQuotaTemplateCallable(const DisassociateServiceQuotaTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DisassociateServiceQuotaTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateServiceQuotaTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::DisassociateServiceQuotaTemplateAsync(const DisassociateServiceQuotaTemplateRequest& request, const DisassociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DisassociateServiceQuotaTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::DisassociateServiceQuotaTemplateAsyncHelper(const DisassociateServiceQuotaTemplateRequest& request, const DisassociateServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DisassociateServiceQuotaTemplate(request), context);
}
GetAWSDefaultServiceQuotaOutcome ServiceQuotasClient::GetAWSDefaultServiceQuota(const GetAWSDefaultServiceQuotaRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return GetAWSDefaultServiceQuotaOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
GetAWSDefaultServiceQuotaOutcomeCallable ServiceQuotasClient::GetAWSDefaultServiceQuotaCallable(const GetAWSDefaultServiceQuotaRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetAWSDefaultServiceQuotaOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAWSDefaultServiceQuota(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::GetAWSDefaultServiceQuotaAsync(const GetAWSDefaultServiceQuotaRequest& request, const GetAWSDefaultServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetAWSDefaultServiceQuotaAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::GetAWSDefaultServiceQuotaAsyncHelper(const GetAWSDefaultServiceQuotaRequest& request, const GetAWSDefaultServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetAWSDefaultServiceQuota(request), context);
}
GetAssociationForServiceQuotaTemplateOutcome ServiceQuotasClient::GetAssociationForServiceQuotaTemplate(const GetAssociationForServiceQuotaTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return GetAssociationForServiceQuotaTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
GetAssociationForServiceQuotaTemplateOutcomeCallable ServiceQuotasClient::GetAssociationForServiceQuotaTemplateCallable(const GetAssociationForServiceQuotaTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetAssociationForServiceQuotaTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAssociationForServiceQuotaTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::GetAssociationForServiceQuotaTemplateAsync(const GetAssociationForServiceQuotaTemplateRequest& request, const GetAssociationForServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetAssociationForServiceQuotaTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::GetAssociationForServiceQuotaTemplateAsyncHelper(const GetAssociationForServiceQuotaTemplateRequest& request, const GetAssociationForServiceQuotaTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetAssociationForServiceQuotaTemplate(request), context);
}
GetRequestedServiceQuotaChangeOutcome ServiceQuotasClient::GetRequestedServiceQuotaChange(const GetRequestedServiceQuotaChangeRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return GetRequestedServiceQuotaChangeOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
GetRequestedServiceQuotaChangeOutcomeCallable ServiceQuotasClient::GetRequestedServiceQuotaChangeCallable(const GetRequestedServiceQuotaChangeRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetRequestedServiceQuotaChangeOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetRequestedServiceQuotaChange(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::GetRequestedServiceQuotaChangeAsync(const GetRequestedServiceQuotaChangeRequest& request, const GetRequestedServiceQuotaChangeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetRequestedServiceQuotaChangeAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::GetRequestedServiceQuotaChangeAsyncHelper(const GetRequestedServiceQuotaChangeRequest& request, const GetRequestedServiceQuotaChangeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetRequestedServiceQuotaChange(request), context);
}
GetServiceQuotaOutcome ServiceQuotasClient::GetServiceQuota(const GetServiceQuotaRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return GetServiceQuotaOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
GetServiceQuotaOutcomeCallable ServiceQuotasClient::GetServiceQuotaCallable(const GetServiceQuotaRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetServiceQuotaOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetServiceQuota(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::GetServiceQuotaAsync(const GetServiceQuotaRequest& request, const GetServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetServiceQuotaAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::GetServiceQuotaAsyncHelper(const GetServiceQuotaRequest& request, const GetServiceQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetServiceQuota(request), context);
}
GetServiceQuotaIncreaseRequestFromTemplateOutcome ServiceQuotasClient::GetServiceQuotaIncreaseRequestFromTemplate(const GetServiceQuotaIncreaseRequestFromTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return GetServiceQuotaIncreaseRequestFromTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
GetServiceQuotaIncreaseRequestFromTemplateOutcomeCallable ServiceQuotasClient::GetServiceQuotaIncreaseRequestFromTemplateCallable(const GetServiceQuotaIncreaseRequestFromTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetServiceQuotaIncreaseRequestFromTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetServiceQuotaIncreaseRequestFromTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::GetServiceQuotaIncreaseRequestFromTemplateAsync(const GetServiceQuotaIncreaseRequestFromTemplateRequest& request, const GetServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetServiceQuotaIncreaseRequestFromTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::GetServiceQuotaIncreaseRequestFromTemplateAsyncHelper(const GetServiceQuotaIncreaseRequestFromTemplateRequest& request, const GetServiceQuotaIncreaseRequestFromTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetServiceQuotaIncreaseRequestFromTemplate(request), context);
}
ListAWSDefaultServiceQuotasOutcome ServiceQuotasClient::ListAWSDefaultServiceQuotas(const ListAWSDefaultServiceQuotasRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListAWSDefaultServiceQuotasOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListAWSDefaultServiceQuotasOutcomeCallable ServiceQuotasClient::ListAWSDefaultServiceQuotasCallable(const ListAWSDefaultServiceQuotasRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListAWSDefaultServiceQuotasOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListAWSDefaultServiceQuotas(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::ListAWSDefaultServiceQuotasAsync(const ListAWSDefaultServiceQuotasRequest& request, const ListAWSDefaultServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListAWSDefaultServiceQuotasAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::ListAWSDefaultServiceQuotasAsyncHelper(const ListAWSDefaultServiceQuotasRequest& request, const ListAWSDefaultServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListAWSDefaultServiceQuotas(request), context);
}
ListRequestedServiceQuotaChangeHistoryOutcome ServiceQuotasClient::ListRequestedServiceQuotaChangeHistory(const ListRequestedServiceQuotaChangeHistoryRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListRequestedServiceQuotaChangeHistoryOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListRequestedServiceQuotaChangeHistoryOutcomeCallable ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryCallable(const ListRequestedServiceQuotaChangeHistoryRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListRequestedServiceQuotaChangeHistoryOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListRequestedServiceQuotaChangeHistory(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryAsync(const ListRequestedServiceQuotaChangeHistoryRequest& request, const ListRequestedServiceQuotaChangeHistoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListRequestedServiceQuotaChangeHistoryAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryAsyncHelper(const ListRequestedServiceQuotaChangeHistoryRequest& request, const ListRequestedServiceQuotaChangeHistoryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListRequestedServiceQuotaChangeHistory(request), context);
}
ListRequestedServiceQuotaChangeHistoryByQuotaOutcome ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryByQuota(const ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListRequestedServiceQuotaChangeHistoryByQuotaOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListRequestedServiceQuotaChangeHistoryByQuotaOutcomeCallable ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryByQuotaCallable(const ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListRequestedServiceQuotaChangeHistoryByQuotaOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListRequestedServiceQuotaChangeHistoryByQuota(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryByQuotaAsync(const ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request, const ListRequestedServiceQuotaChangeHistoryByQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListRequestedServiceQuotaChangeHistoryByQuotaAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::ListRequestedServiceQuotaChangeHistoryByQuotaAsyncHelper(const ListRequestedServiceQuotaChangeHistoryByQuotaRequest& request, const ListRequestedServiceQuotaChangeHistoryByQuotaResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListRequestedServiceQuotaChangeHistoryByQuota(request), context);
}
ListServiceQuotaIncreaseRequestsInTemplateOutcome ServiceQuotasClient::ListServiceQuotaIncreaseRequestsInTemplate(const ListServiceQuotaIncreaseRequestsInTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListServiceQuotaIncreaseRequestsInTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListServiceQuotaIncreaseRequestsInTemplateOutcomeCallable ServiceQuotasClient::ListServiceQuotaIncreaseRequestsInTemplateCallable(const ListServiceQuotaIncreaseRequestsInTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListServiceQuotaIncreaseRequestsInTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListServiceQuotaIncreaseRequestsInTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::ListServiceQuotaIncreaseRequestsInTemplateAsync(const ListServiceQuotaIncreaseRequestsInTemplateRequest& request, const ListServiceQuotaIncreaseRequestsInTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListServiceQuotaIncreaseRequestsInTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::ListServiceQuotaIncreaseRequestsInTemplateAsyncHelper(const ListServiceQuotaIncreaseRequestsInTemplateRequest& request, const ListServiceQuotaIncreaseRequestsInTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListServiceQuotaIncreaseRequestsInTemplate(request), context);
}
ListServiceQuotasOutcome ServiceQuotasClient::ListServiceQuotas(const ListServiceQuotasRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListServiceQuotasOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListServiceQuotasOutcomeCallable ServiceQuotasClient::ListServiceQuotasCallable(const ListServiceQuotasRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListServiceQuotasOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListServiceQuotas(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::ListServiceQuotasAsync(const ListServiceQuotasRequest& request, const ListServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListServiceQuotasAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::ListServiceQuotasAsyncHelper(const ListServiceQuotasRequest& request, const ListServiceQuotasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListServiceQuotas(request), context);
}
ListServicesOutcome ServiceQuotasClient::ListServices(const ListServicesRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListServicesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListServicesOutcomeCallable ServiceQuotasClient::ListServicesCallable(const ListServicesRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListServicesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListServices(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::ListServicesAsync(const ListServicesRequest& request, const ListServicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListServicesAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::ListServicesAsyncHelper(const ListServicesRequest& request, const ListServicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListServices(request), context);
}
PutServiceQuotaIncreaseRequestIntoTemplateOutcome ServiceQuotasClient::PutServiceQuotaIncreaseRequestIntoTemplate(const PutServiceQuotaIncreaseRequestIntoTemplateRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return PutServiceQuotaIncreaseRequestIntoTemplateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
PutServiceQuotaIncreaseRequestIntoTemplateOutcomeCallable ServiceQuotasClient::PutServiceQuotaIncreaseRequestIntoTemplateCallable(const PutServiceQuotaIncreaseRequestIntoTemplateRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< PutServiceQuotaIncreaseRequestIntoTemplateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutServiceQuotaIncreaseRequestIntoTemplate(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::PutServiceQuotaIncreaseRequestIntoTemplateAsync(const PutServiceQuotaIncreaseRequestIntoTemplateRequest& request, const PutServiceQuotaIncreaseRequestIntoTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->PutServiceQuotaIncreaseRequestIntoTemplateAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::PutServiceQuotaIncreaseRequestIntoTemplateAsyncHelper(const PutServiceQuotaIncreaseRequestIntoTemplateRequest& request, const PutServiceQuotaIncreaseRequestIntoTemplateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, PutServiceQuotaIncreaseRequestIntoTemplate(request), context);
}
RequestServiceQuotaIncreaseOutcome ServiceQuotasClient::RequestServiceQuotaIncrease(const RequestServiceQuotaIncreaseRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return RequestServiceQuotaIncreaseOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
RequestServiceQuotaIncreaseOutcomeCallable ServiceQuotasClient::RequestServiceQuotaIncreaseCallable(const RequestServiceQuotaIncreaseRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< RequestServiceQuotaIncreaseOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->RequestServiceQuotaIncrease(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ServiceQuotasClient::RequestServiceQuotaIncreaseAsync(const RequestServiceQuotaIncreaseRequest& request, const RequestServiceQuotaIncreaseResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->RequestServiceQuotaIncreaseAsyncHelper( request, handler, context ); } );
}
void ServiceQuotasClient::RequestServiceQuotaIncreaseAsyncHelper(const RequestServiceQuotaIncreaseRequest& request, const RequestServiceQuotaIncreaseResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, RequestServiceQuotaIncrease(request), context);
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/ServiceQuotasEndpoint.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/HashingUtils.h>
using namespace Aws;
using namespace Aws::ServiceQuotas;
namespace Aws
{
namespace ServiceQuotas
{
namespace ServiceQuotasEndpoint
{
static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1");
static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1");
static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1");
static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1");
Aws::String ForRegion(const Aws::String& regionName, bool useDualStack)
{
// Fallback to us-east-1 if global endpoint does not exists.
Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName;
auto hash = Aws::Utils::HashingUtils::HashString(region.c_str());
Aws::StringStream ss;
ss << "servicequotas" << ".";
if(useDualStack)
{
ss << "dualstack.";
}
ss << region;
if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH)
{
ss << ".amazonaws.com.cn";
}
else if (hash == US_ISO_EAST_1_HASH)
{
ss << ".c2s.ic.gov";
}
else if (hash == US_ISOB_EAST_1_HASH)
{
ss << ".sc2s.sgov.gov";
}
else
{
ss << ".amazonaws.com";
}
return ss.str();
}
} // namespace ServiceQuotasEndpoint
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,22 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/service-quotas/ServiceQuotasErrorMarshaller.h>
#include <aws/service-quotas/ServiceQuotasErrors.h>
using namespace Aws::Client;
using namespace Aws::ServiceQuotas;
AWSError<CoreErrors> ServiceQuotasErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = ServiceQuotasErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}

View File

@@ -0,0 +1,102 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/service-quotas/ServiceQuotasErrors.h>
using namespace Aws::Client;
using namespace Aws::Utils;
using namespace Aws::ServiceQuotas;
namespace Aws
{
namespace ServiceQuotas
{
namespace ServiceQuotasErrorMapper
{
static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException");
static const int ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH = HashingUtils::HashString("OrganizationNotInAllFeaturesModeException");
static const int SERVICE_QUOTA_TEMPLATE_NOT_IN_USE_HASH = HashingUtils::HashString("ServiceQuotaTemplateNotInUseException");
static const int DEPENDENCY_ACCESS_DENIED_HASH = HashingUtils::HashString("DependencyAccessDeniedException");
static const int TEMPLATES_NOT_AVAILABLE_IN_REGION_HASH = HashingUtils::HashString("TemplatesNotAvailableInRegionException");
static const int INVALID_PAGINATION_TOKEN_HASH = HashingUtils::HashString("InvalidPaginationTokenException");
static const int INVALID_RESOURCE_STATE_HASH = HashingUtils::HashString("InvalidResourceStateException");
static const int NO_AVAILABLE_ORGANIZATION_HASH = HashingUtils::HashString("NoAvailableOrganizationException");
static const int A_W_S_SERVICE_ACCESS_NOT_ENABLED_HASH = HashingUtils::HashString("AWSServiceAccessNotEnabledException");
static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("IllegalArgumentException");
static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException");
static const int QUOTA_EXCEEDED_HASH = HashingUtils::HashString("QuotaExceededException");
static const int SERVICE_HASH = HashingUtils::HashString("ServiceException");
static const int NO_SUCH_RESOURCE_HASH = HashingUtils::HashString("NoSuchResourceException");
AWSError<CoreErrors> GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
if (hashCode == RESOURCE_ALREADY_EXISTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::RESOURCE_ALREADY_EXISTS), false);
}
else if (hashCode == ORGANIZATION_NOT_IN_ALL_FEATURES_MODE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::ORGANIZATION_NOT_IN_ALL_FEATURES_MODE), false);
}
else if (hashCode == SERVICE_QUOTA_TEMPLATE_NOT_IN_USE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::SERVICE_QUOTA_TEMPLATE_NOT_IN_USE), false);
}
else if (hashCode == DEPENDENCY_ACCESS_DENIED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::DEPENDENCY_ACCESS_DENIED), false);
}
else if (hashCode == TEMPLATES_NOT_AVAILABLE_IN_REGION_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::TEMPLATES_NOT_AVAILABLE_IN_REGION), false);
}
else if (hashCode == INVALID_PAGINATION_TOKEN_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::INVALID_PAGINATION_TOKEN), false);
}
else if (hashCode == INVALID_RESOURCE_STATE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::INVALID_RESOURCE_STATE), false);
}
else if (hashCode == NO_AVAILABLE_ORGANIZATION_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::NO_AVAILABLE_ORGANIZATION), false);
}
else if (hashCode == A_W_S_SERVICE_ACCESS_NOT_ENABLED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::A_W_S_SERVICE_ACCESS_NOT_ENABLED), false);
}
else if (hashCode == ILLEGAL_ARGUMENT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::ILLEGAL_ARGUMENT), false);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::TOO_MANY_REQUESTS), true);
}
else if (hashCode == QUOTA_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::QUOTA_EXCEEDED), false);
}
else if (hashCode == SERVICE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::SERVICE), false);
}
else if (hashCode == NO_SUCH_RESOURCE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ServiceQuotasErrors::NO_SUCH_RESOURCE), false);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
} // namespace ServiceQuotasErrorMapper
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/AssociateServiceQuotaTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
AssociateServiceQuotaTemplateRequest::AssociateServiceQuotaTemplateRequest()
{
}
Aws::String AssociateServiceQuotaTemplateRequest::SerializePayload() const
{
return "{}";
}
Aws::Http::HeaderValueCollection AssociateServiceQuotaTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.AssociateServiceQuotaTemplate"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/AssociateServiceQuotaTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
AssociateServiceQuotaTemplateResult::AssociateServiceQuotaTemplateResult()
{
}
AssociateServiceQuotaTemplateResult::AssociateServiceQuotaTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
AssociateServiceQuotaTemplateResult& AssociateServiceQuotaTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,57 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/DeleteServiceQuotaIncreaseRequestFromTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteServiceQuotaIncreaseRequestFromTemplateRequest::DeleteServiceQuotaIncreaseRequestFromTemplateRequest() :
m_serviceCodeHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_awsRegionHasBeenSet(false)
{
}
Aws::String DeleteServiceQuotaIncreaseRequestFromTemplateRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_awsRegionHasBeenSet)
{
payload.WithString("AwsRegion", m_awsRegion);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteServiceQuotaIncreaseRequestFromTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.DeleteServiceQuotaIncreaseRequestFromTemplate"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/DeleteServiceQuotaIncreaseRequestFromTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteServiceQuotaIncreaseRequestFromTemplateResult::DeleteServiceQuotaIncreaseRequestFromTemplateResult()
{
}
DeleteServiceQuotaIncreaseRequestFromTemplateResult::DeleteServiceQuotaIncreaseRequestFromTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteServiceQuotaIncreaseRequestFromTemplateResult& DeleteServiceQuotaIncreaseRequestFromTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/DisassociateServiceQuotaTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DisassociateServiceQuotaTemplateRequest::DisassociateServiceQuotaTemplateRequest()
{
}
Aws::String DisassociateServiceQuotaTemplateRequest::SerializePayload() const
{
return "{}";
}
Aws::Http::HeaderValueCollection DisassociateServiceQuotaTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.DisassociateServiceQuotaTemplate"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/DisassociateServiceQuotaTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DisassociateServiceQuotaTemplateResult::DisassociateServiceQuotaTemplateResult()
{
}
DisassociateServiceQuotaTemplateResult::DisassociateServiceQuotaTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DisassociateServiceQuotaTemplateResult& DisassociateServiceQuotaTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ErrorCode.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
namespace ErrorCodeMapper
{
static const int DEPENDENCY_ACCESS_DENIED_ERROR_HASH = HashingUtils::HashString("DEPENDENCY_ACCESS_DENIED_ERROR");
static const int DEPENDENCY_THROTTLING_ERROR_HASH = HashingUtils::HashString("DEPENDENCY_THROTTLING_ERROR");
static const int DEPENDENCY_SERVICE_ERROR_HASH = HashingUtils::HashString("DEPENDENCY_SERVICE_ERROR");
static const int SERVICE_QUOTA_NOT_AVAILABLE_ERROR_HASH = HashingUtils::HashString("SERVICE_QUOTA_NOT_AVAILABLE_ERROR");
ErrorCode GetErrorCodeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == DEPENDENCY_ACCESS_DENIED_ERROR_HASH)
{
return ErrorCode::DEPENDENCY_ACCESS_DENIED_ERROR;
}
else if (hashCode == DEPENDENCY_THROTTLING_ERROR_HASH)
{
return ErrorCode::DEPENDENCY_THROTTLING_ERROR;
}
else if (hashCode == DEPENDENCY_SERVICE_ERROR_HASH)
{
return ErrorCode::DEPENDENCY_SERVICE_ERROR;
}
else if (hashCode == SERVICE_QUOTA_NOT_AVAILABLE_ERROR_HASH)
{
return ErrorCode::SERVICE_QUOTA_NOT_AVAILABLE_ERROR;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ErrorCode>(hashCode);
}
return ErrorCode::NOT_SET;
}
Aws::String GetNameForErrorCode(ErrorCode enumValue)
{
switch(enumValue)
{
case ErrorCode::DEPENDENCY_ACCESS_DENIED_ERROR:
return "DEPENDENCY_ACCESS_DENIED_ERROR";
case ErrorCode::DEPENDENCY_THROTTLING_ERROR:
return "DEPENDENCY_THROTTLING_ERROR";
case ErrorCode::DEPENDENCY_SERVICE_ERROR:
return "DEPENDENCY_SERVICE_ERROR";
case ErrorCode::SERVICE_QUOTA_NOT_AVAILABLE_ERROR:
return "SERVICE_QUOTA_NOT_AVAILABLE_ERROR";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ErrorCodeMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ErrorReason.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
ErrorReason::ErrorReason() :
m_errorCode(ErrorCode::NOT_SET),
m_errorCodeHasBeenSet(false),
m_errorMessageHasBeenSet(false)
{
}
ErrorReason::ErrorReason(JsonView jsonValue) :
m_errorCode(ErrorCode::NOT_SET),
m_errorCodeHasBeenSet(false),
m_errorMessageHasBeenSet(false)
{
*this = jsonValue;
}
ErrorReason& ErrorReason::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ErrorCode"))
{
m_errorCode = ErrorCodeMapper::GetErrorCodeForName(jsonValue.GetString("ErrorCode"));
m_errorCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("ErrorMessage"))
{
m_errorMessage = jsonValue.GetString("ErrorMessage");
m_errorMessageHasBeenSet = true;
}
return *this;
}
JsonValue ErrorReason::Jsonize() const
{
JsonValue payload;
if(m_errorCodeHasBeenSet)
{
payload.WithString("ErrorCode", ErrorCodeMapper::GetNameForErrorCode(m_errorCode));
}
if(m_errorMessageHasBeenSet)
{
payload.WithString("ErrorMessage", m_errorMessage);
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetAWSDefaultServiceQuotaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetAWSDefaultServiceQuotaRequest::GetAWSDefaultServiceQuotaRequest() :
m_serviceCodeHasBeenSet(false),
m_quotaCodeHasBeenSet(false)
{
}
Aws::String GetAWSDefaultServiceQuotaRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetAWSDefaultServiceQuotaRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.GetAWSDefaultServiceQuota"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetAWSDefaultServiceQuotaResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetAWSDefaultServiceQuotaResult::GetAWSDefaultServiceQuotaResult()
{
}
GetAWSDefaultServiceQuotaResult::GetAWSDefaultServiceQuotaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetAWSDefaultServiceQuotaResult& GetAWSDefaultServiceQuotaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Quota"))
{
m_quota = jsonValue.GetObject("Quota");
}
return *this;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetAssociationForServiceQuotaTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetAssociationForServiceQuotaTemplateRequest::GetAssociationForServiceQuotaTemplateRequest()
{
}
Aws::String GetAssociationForServiceQuotaTemplateRequest::SerializePayload() const
{
return "{}";
}
Aws::Http::HeaderValueCollection GetAssociationForServiceQuotaTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.GetAssociationForServiceQuotaTemplate"));
return headers;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetAssociationForServiceQuotaTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetAssociationForServiceQuotaTemplateResult::GetAssociationForServiceQuotaTemplateResult() :
m_serviceQuotaTemplateAssociationStatus(ServiceQuotaTemplateAssociationStatus::NOT_SET)
{
}
GetAssociationForServiceQuotaTemplateResult::GetAssociationForServiceQuotaTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_serviceQuotaTemplateAssociationStatus(ServiceQuotaTemplateAssociationStatus::NOT_SET)
{
*this = result;
}
GetAssociationForServiceQuotaTemplateResult& GetAssociationForServiceQuotaTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ServiceQuotaTemplateAssociationStatus"))
{
m_serviceQuotaTemplateAssociationStatus = ServiceQuotaTemplateAssociationStatusMapper::GetServiceQuotaTemplateAssociationStatusForName(jsonValue.GetString("ServiceQuotaTemplateAssociationStatus"));
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetRequestedServiceQuotaChangeRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetRequestedServiceQuotaChangeRequest::GetRequestedServiceQuotaChangeRequest() :
m_requestIdHasBeenSet(false)
{
}
Aws::String GetRequestedServiceQuotaChangeRequest::SerializePayload() const
{
JsonValue payload;
if(m_requestIdHasBeenSet)
{
payload.WithString("RequestId", m_requestId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetRequestedServiceQuotaChangeRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.GetRequestedServiceQuotaChange"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetRequestedServiceQuotaChangeResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetRequestedServiceQuotaChangeResult::GetRequestedServiceQuotaChangeResult()
{
}
GetRequestedServiceQuotaChangeResult::GetRequestedServiceQuotaChangeResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetRequestedServiceQuotaChangeResult& GetRequestedServiceQuotaChangeResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RequestedQuota"))
{
m_requestedQuota = jsonValue.GetObject("RequestedQuota");
}
return *this;
}

View File

@@ -0,0 +1,57 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetServiceQuotaIncreaseRequestFromTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetServiceQuotaIncreaseRequestFromTemplateRequest::GetServiceQuotaIncreaseRequestFromTemplateRequest() :
m_serviceCodeHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_awsRegionHasBeenSet(false)
{
}
Aws::String GetServiceQuotaIncreaseRequestFromTemplateRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_awsRegionHasBeenSet)
{
payload.WithString("AwsRegion", m_awsRegion);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetServiceQuotaIncreaseRequestFromTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.GetServiceQuotaIncreaseRequestFromTemplate"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetServiceQuotaIncreaseRequestFromTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetServiceQuotaIncreaseRequestFromTemplateResult::GetServiceQuotaIncreaseRequestFromTemplateResult()
{
}
GetServiceQuotaIncreaseRequestFromTemplateResult::GetServiceQuotaIncreaseRequestFromTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetServiceQuotaIncreaseRequestFromTemplateResult& GetServiceQuotaIncreaseRequestFromTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ServiceQuotaIncreaseRequestInTemplate"))
{
m_serviceQuotaIncreaseRequestInTemplate = jsonValue.GetObject("ServiceQuotaIncreaseRequestInTemplate");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetServiceQuotaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetServiceQuotaRequest::GetServiceQuotaRequest() :
m_serviceCodeHasBeenSet(false),
m_quotaCodeHasBeenSet(false)
{
}
Aws::String GetServiceQuotaRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetServiceQuotaRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.GetServiceQuota"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/GetServiceQuotaResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetServiceQuotaResult::GetServiceQuotaResult()
{
}
GetServiceQuotaResult::GetServiceQuotaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetServiceQuotaResult& GetServiceQuotaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Quota"))
{
m_quota = jsonValue.GetObject("Quota");
}
return *this;
}

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListAWSDefaultServiceQuotasRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListAWSDefaultServiceQuotasRequest::ListAWSDefaultServiceQuotasRequest() :
m_serviceCodeHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListAWSDefaultServiceQuotasRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListAWSDefaultServiceQuotasRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.ListAWSDefaultServiceQuotas"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListAWSDefaultServiceQuotasResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListAWSDefaultServiceQuotasResult::ListAWSDefaultServiceQuotasResult()
{
}
ListAWSDefaultServiceQuotasResult::ListAWSDefaultServiceQuotasResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListAWSDefaultServiceQuotasResult& ListAWSDefaultServiceQuotasResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Quotas"))
{
Array<JsonView> quotasJsonList = jsonValue.GetArray("Quotas");
for(unsigned quotasIndex = 0; quotasIndex < quotasJsonList.GetLength(); ++quotasIndex)
{
m_quotas.push_back(quotasJsonList[quotasIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryByQuotaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListRequestedServiceQuotaChangeHistoryByQuotaRequest::ListRequestedServiceQuotaChangeHistoryByQuotaRequest() :
m_serviceCodeHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_status(RequestStatus::NOT_SET),
m_statusHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListRequestedServiceQuotaChangeHistoryByQuotaRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", RequestStatusMapper::GetNameForRequestStatus(m_status));
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListRequestedServiceQuotaChangeHistoryByQuotaRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistoryByQuota"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryByQuotaResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListRequestedServiceQuotaChangeHistoryByQuotaResult::ListRequestedServiceQuotaChangeHistoryByQuotaResult()
{
}
ListRequestedServiceQuotaChangeHistoryByQuotaResult::ListRequestedServiceQuotaChangeHistoryByQuotaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListRequestedServiceQuotaChangeHistoryByQuotaResult& ListRequestedServiceQuotaChangeHistoryByQuotaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("RequestedQuotas"))
{
Array<JsonView> requestedQuotasJsonList = jsonValue.GetArray("RequestedQuotas");
for(unsigned requestedQuotasIndex = 0; requestedQuotasIndex < requestedQuotasJsonList.GetLength(); ++requestedQuotasIndex)
{
m_requestedQuotas.push_back(requestedQuotasJsonList[requestedQuotasIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,65 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListRequestedServiceQuotaChangeHistoryRequest::ListRequestedServiceQuotaChangeHistoryRequest() :
m_serviceCodeHasBeenSet(false),
m_status(RequestStatus::NOT_SET),
m_statusHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListRequestedServiceQuotaChangeHistoryRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", RequestStatusMapper::GetNameForRequestStatus(m_status));
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListRequestedServiceQuotaChangeHistoryRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistory"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListRequestedServiceQuotaChangeHistoryResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListRequestedServiceQuotaChangeHistoryResult::ListRequestedServiceQuotaChangeHistoryResult()
{
}
ListRequestedServiceQuotaChangeHistoryResult::ListRequestedServiceQuotaChangeHistoryResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListRequestedServiceQuotaChangeHistoryResult& ListRequestedServiceQuotaChangeHistoryResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("RequestedQuotas"))
{
Array<JsonView> requestedQuotasJsonList = jsonValue.GetArray("RequestedQuotas");
for(unsigned requestedQuotasIndex = 0; requestedQuotasIndex < requestedQuotasJsonList.GetLength(); ++requestedQuotasIndex)
{
m_requestedQuotas.push_back(requestedQuotasJsonList[requestedQuotasIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,65 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListServiceQuotaIncreaseRequestsInTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListServiceQuotaIncreaseRequestsInTemplateRequest::ListServiceQuotaIncreaseRequestsInTemplateRequest() :
m_serviceCodeHasBeenSet(false),
m_awsRegionHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListServiceQuotaIncreaseRequestsInTemplateRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_awsRegionHasBeenSet)
{
payload.WithString("AwsRegion", m_awsRegion);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListServiceQuotaIncreaseRequestsInTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.ListServiceQuotaIncreaseRequestsInTemplate"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListServiceQuotaIncreaseRequestsInTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListServiceQuotaIncreaseRequestsInTemplateResult::ListServiceQuotaIncreaseRequestsInTemplateResult()
{
}
ListServiceQuotaIncreaseRequestsInTemplateResult::ListServiceQuotaIncreaseRequestsInTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListServiceQuotaIncreaseRequestsInTemplateResult& ListServiceQuotaIncreaseRequestsInTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ServiceQuotaIncreaseRequestInTemplateList"))
{
Array<JsonView> serviceQuotaIncreaseRequestInTemplateListJsonList = jsonValue.GetArray("ServiceQuotaIncreaseRequestInTemplateList");
for(unsigned serviceQuotaIncreaseRequestInTemplateListIndex = 0; serviceQuotaIncreaseRequestInTemplateListIndex < serviceQuotaIncreaseRequestInTemplateListJsonList.GetLength(); ++serviceQuotaIncreaseRequestInTemplateListIndex)
{
m_serviceQuotaIncreaseRequestInTemplateList.push_back(serviceQuotaIncreaseRequestInTemplateListJsonList[serviceQuotaIncreaseRequestInTemplateListIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListServiceQuotasRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListServiceQuotasRequest::ListServiceQuotasRequest() :
m_serviceCodeHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListServiceQuotasRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListServiceQuotasRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.ListServiceQuotas"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListServiceQuotasResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListServiceQuotasResult::ListServiceQuotasResult()
{
}
ListServiceQuotasResult::ListServiceQuotasResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListServiceQuotasResult& ListServiceQuotasResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Quotas"))
{
Array<JsonView> quotasJsonList = jsonValue.GetArray("Quotas");
for(unsigned quotasIndex = 0; quotasIndex < quotasJsonList.GetLength(); ++quotasIndex)
{
m_quotas.push_back(quotasJsonList[quotasIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,51 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListServicesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListServicesRequest::ListServicesRequest() :
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListServicesRequest::SerializePayload() const
{
JsonValue payload;
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListServicesRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.ListServices"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ListServicesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListServicesResult::ListServicesResult()
{
}
ListServicesResult::ListServicesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListServicesResult& ListServicesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Services"))
{
Array<JsonView> servicesJsonList = jsonValue.GetArray("Services");
for(unsigned servicesIndex = 0; servicesIndex < servicesJsonList.GetLength(); ++servicesIndex)
{
m_services.push_back(servicesJsonList[servicesIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/MetricInfo.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
MetricInfo::MetricInfo() :
m_metricNamespaceHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_metricDimensionsHasBeenSet(false),
m_metricStatisticRecommendationHasBeenSet(false)
{
}
MetricInfo::MetricInfo(JsonView jsonValue) :
m_metricNamespaceHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_metricDimensionsHasBeenSet(false),
m_metricStatisticRecommendationHasBeenSet(false)
{
*this = jsonValue;
}
MetricInfo& MetricInfo::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("MetricNamespace"))
{
m_metricNamespace = jsonValue.GetString("MetricNamespace");
m_metricNamespaceHasBeenSet = true;
}
if(jsonValue.ValueExists("MetricName"))
{
m_metricName = jsonValue.GetString("MetricName");
m_metricNameHasBeenSet = true;
}
if(jsonValue.ValueExists("MetricDimensions"))
{
Aws::Map<Aws::String, JsonView> metricDimensionsJsonMap = jsonValue.GetObject("MetricDimensions").GetAllObjects();
for(auto& metricDimensionsItem : metricDimensionsJsonMap)
{
m_metricDimensions[metricDimensionsItem.first] = metricDimensionsItem.second.AsString();
}
m_metricDimensionsHasBeenSet = true;
}
if(jsonValue.ValueExists("MetricStatisticRecommendation"))
{
m_metricStatisticRecommendation = jsonValue.GetString("MetricStatisticRecommendation");
m_metricStatisticRecommendationHasBeenSet = true;
}
return *this;
}
JsonValue MetricInfo::Jsonize() const
{
JsonValue payload;
if(m_metricNamespaceHasBeenSet)
{
payload.WithString("MetricNamespace", m_metricNamespace);
}
if(m_metricNameHasBeenSet)
{
payload.WithString("MetricName", m_metricName);
}
if(m_metricDimensionsHasBeenSet)
{
JsonValue metricDimensionsJsonMap;
for(auto& metricDimensionsItem : m_metricDimensions)
{
metricDimensionsJsonMap.WithString(metricDimensionsItem.first, metricDimensionsItem.second);
}
payload.WithObject("MetricDimensions", std::move(metricDimensionsJsonMap));
}
if(m_metricStatisticRecommendationHasBeenSet)
{
payload.WithString("MetricStatisticRecommendation", m_metricStatisticRecommendation);
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/PeriodUnit.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
namespace PeriodUnitMapper
{
static const int MICROSECOND_HASH = HashingUtils::HashString("MICROSECOND");
static const int MILLISECOND_HASH = HashingUtils::HashString("MILLISECOND");
static const int SECOND_HASH = HashingUtils::HashString("SECOND");
static const int MINUTE_HASH = HashingUtils::HashString("MINUTE");
static const int HOUR_HASH = HashingUtils::HashString("HOUR");
static const int DAY_HASH = HashingUtils::HashString("DAY");
static const int WEEK_HASH = HashingUtils::HashString("WEEK");
PeriodUnit GetPeriodUnitForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == MICROSECOND_HASH)
{
return PeriodUnit::MICROSECOND;
}
else if (hashCode == MILLISECOND_HASH)
{
return PeriodUnit::MILLISECOND;
}
else if (hashCode == SECOND_HASH)
{
return PeriodUnit::SECOND;
}
else if (hashCode == MINUTE_HASH)
{
return PeriodUnit::MINUTE;
}
else if (hashCode == HOUR_HASH)
{
return PeriodUnit::HOUR;
}
else if (hashCode == DAY_HASH)
{
return PeriodUnit::DAY;
}
else if (hashCode == WEEK_HASH)
{
return PeriodUnit::WEEK;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<PeriodUnit>(hashCode);
}
return PeriodUnit::NOT_SET;
}
Aws::String GetNameForPeriodUnit(PeriodUnit enumValue)
{
switch(enumValue)
{
case PeriodUnit::MICROSECOND:
return "MICROSECOND";
case PeriodUnit::MILLISECOND:
return "MILLISECOND";
case PeriodUnit::SECOND:
return "SECOND";
case PeriodUnit::MINUTE:
return "MINUTE";
case PeriodUnit::HOUR:
return "HOUR";
case PeriodUnit::DAY:
return "DAY";
case PeriodUnit::WEEK:
return "WEEK";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace PeriodUnitMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,65 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/PutServiceQuotaIncreaseRequestIntoTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
PutServiceQuotaIncreaseRequestIntoTemplateRequest::PutServiceQuotaIncreaseRequestIntoTemplateRequest() :
m_quotaCodeHasBeenSet(false),
m_serviceCodeHasBeenSet(false),
m_awsRegionHasBeenSet(false),
m_desiredValue(0.0),
m_desiredValueHasBeenSet(false)
{
}
Aws::String PutServiceQuotaIncreaseRequestIntoTemplateRequest::SerializePayload() const
{
JsonValue payload;
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_awsRegionHasBeenSet)
{
payload.WithString("AwsRegion", m_awsRegion);
}
if(m_desiredValueHasBeenSet)
{
payload.WithDouble("DesiredValue", m_desiredValue);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection PutServiceQuotaIncreaseRequestIntoTemplateRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.PutServiceQuotaIncreaseRequestIntoTemplate"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/PutServiceQuotaIncreaseRequestIntoTemplateResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
PutServiceQuotaIncreaseRequestIntoTemplateResult::PutServiceQuotaIncreaseRequestIntoTemplateResult()
{
}
PutServiceQuotaIncreaseRequestIntoTemplateResult::PutServiceQuotaIncreaseRequestIntoTemplateResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
PutServiceQuotaIncreaseRequestIntoTemplateResult& PutServiceQuotaIncreaseRequestIntoTemplateResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ServiceQuotaIncreaseRequestInTemplate"))
{
m_serviceQuotaIncreaseRequestInTemplate = jsonValue.GetObject("ServiceQuotaIncreaseRequestInTemplate");
}
return *this;
}

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/QuotaPeriod.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
QuotaPeriod::QuotaPeriod() :
m_periodValue(0),
m_periodValueHasBeenSet(false),
m_periodUnit(PeriodUnit::NOT_SET),
m_periodUnitHasBeenSet(false)
{
}
QuotaPeriod::QuotaPeriod(JsonView jsonValue) :
m_periodValue(0),
m_periodValueHasBeenSet(false),
m_periodUnit(PeriodUnit::NOT_SET),
m_periodUnitHasBeenSet(false)
{
*this = jsonValue;
}
QuotaPeriod& QuotaPeriod::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("PeriodValue"))
{
m_periodValue = jsonValue.GetInteger("PeriodValue");
m_periodValueHasBeenSet = true;
}
if(jsonValue.ValueExists("PeriodUnit"))
{
m_periodUnit = PeriodUnitMapper::GetPeriodUnitForName(jsonValue.GetString("PeriodUnit"));
m_periodUnitHasBeenSet = true;
}
return *this;
}
JsonValue QuotaPeriod::Jsonize() const
{
JsonValue payload;
if(m_periodValueHasBeenSet)
{
payload.WithInteger("PeriodValue", m_periodValue);
}
if(m_periodUnitHasBeenSet)
{
payload.WithString("PeriodUnit", PeriodUnitMapper::GetNameForPeriodUnit(m_periodUnit));
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/RequestServiceQuotaIncreaseRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
RequestServiceQuotaIncreaseRequest::RequestServiceQuotaIncreaseRequest() :
m_serviceCodeHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_desiredValue(0.0),
m_desiredValueHasBeenSet(false)
{
}
Aws::String RequestServiceQuotaIncreaseRequest::SerializePayload() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_desiredValueHasBeenSet)
{
payload.WithDouble("DesiredValue", m_desiredValue);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection RequestServiceQuotaIncreaseRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ServiceQuotasV20190624.RequestServiceQuotaIncrease"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/RequestServiceQuotaIncreaseResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ServiceQuotas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
RequestServiceQuotaIncreaseResult::RequestServiceQuotaIncreaseResult()
{
}
RequestServiceQuotaIncreaseResult::RequestServiceQuotaIncreaseResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
RequestServiceQuotaIncreaseResult& RequestServiceQuotaIncreaseResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("RequestedQuota"))
{
m_requestedQuota = jsonValue.GetObject("RequestedQuota");
}
return *this;
}

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/RequestStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
namespace RequestStatusMapper
{
static const int PENDING_HASH = HashingUtils::HashString("PENDING");
static const int CASE_OPENED_HASH = HashingUtils::HashString("CASE_OPENED");
static const int APPROVED_HASH = HashingUtils::HashString("APPROVED");
static const int DENIED_HASH = HashingUtils::HashString("DENIED");
static const int CASE_CLOSED_HASH = HashingUtils::HashString("CASE_CLOSED");
RequestStatus GetRequestStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == PENDING_HASH)
{
return RequestStatus::PENDING;
}
else if (hashCode == CASE_OPENED_HASH)
{
return RequestStatus::CASE_OPENED;
}
else if (hashCode == APPROVED_HASH)
{
return RequestStatus::APPROVED;
}
else if (hashCode == DENIED_HASH)
{
return RequestStatus::DENIED;
}
else if (hashCode == CASE_CLOSED_HASH)
{
return RequestStatus::CASE_CLOSED;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<RequestStatus>(hashCode);
}
return RequestStatus::NOT_SET;
}
Aws::String GetNameForRequestStatus(RequestStatus enumValue)
{
switch(enumValue)
{
case RequestStatus::PENDING:
return "PENDING";
case RequestStatus::CASE_OPENED:
return "CASE_OPENED";
case RequestStatus::APPROVED:
return "APPROVED";
case RequestStatus::DENIED:
return "DENIED";
case RequestStatus::CASE_CLOSED:
return "CASE_CLOSED";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace RequestStatusMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,257 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/RequestedServiceQuotaChange.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
RequestedServiceQuotaChange::RequestedServiceQuotaChange() :
m_idHasBeenSet(false),
m_caseIdHasBeenSet(false),
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_quotaNameHasBeenSet(false),
m_desiredValue(0.0),
m_desiredValueHasBeenSet(false),
m_status(RequestStatus::NOT_SET),
m_statusHasBeenSet(false),
m_createdHasBeenSet(false),
m_lastUpdatedHasBeenSet(false),
m_requesterHasBeenSet(false),
m_quotaArnHasBeenSet(false),
m_globalQuota(false),
m_globalQuotaHasBeenSet(false),
m_unitHasBeenSet(false)
{
}
RequestedServiceQuotaChange::RequestedServiceQuotaChange(JsonView jsonValue) :
m_idHasBeenSet(false),
m_caseIdHasBeenSet(false),
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_quotaNameHasBeenSet(false),
m_desiredValue(0.0),
m_desiredValueHasBeenSet(false),
m_status(RequestStatus::NOT_SET),
m_statusHasBeenSet(false),
m_createdHasBeenSet(false),
m_lastUpdatedHasBeenSet(false),
m_requesterHasBeenSet(false),
m_quotaArnHasBeenSet(false),
m_globalQuota(false),
m_globalQuotaHasBeenSet(false),
m_unitHasBeenSet(false)
{
*this = jsonValue;
}
RequestedServiceQuotaChange& RequestedServiceQuotaChange::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("CaseId"))
{
m_caseId = jsonValue.GetString("CaseId");
m_caseIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ServiceCode"))
{
m_serviceCode = jsonValue.GetString("ServiceCode");
m_serviceCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("ServiceName"))
{
m_serviceName = jsonValue.GetString("ServiceName");
m_serviceNameHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaCode"))
{
m_quotaCode = jsonValue.GetString("QuotaCode");
m_quotaCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaName"))
{
m_quotaName = jsonValue.GetString("QuotaName");
m_quotaNameHasBeenSet = true;
}
if(jsonValue.ValueExists("DesiredValue"))
{
m_desiredValue = jsonValue.GetDouble("DesiredValue");
m_desiredValueHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = RequestStatusMapper::GetRequestStatusForName(jsonValue.GetString("Status"));
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("Created"))
{
m_created = jsonValue.GetDouble("Created");
m_createdHasBeenSet = true;
}
if(jsonValue.ValueExists("LastUpdated"))
{
m_lastUpdated = jsonValue.GetDouble("LastUpdated");
m_lastUpdatedHasBeenSet = true;
}
if(jsonValue.ValueExists("Requester"))
{
m_requester = jsonValue.GetString("Requester");
m_requesterHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaArn"))
{
m_quotaArn = jsonValue.GetString("QuotaArn");
m_quotaArnHasBeenSet = true;
}
if(jsonValue.ValueExists("GlobalQuota"))
{
m_globalQuota = jsonValue.GetBool("GlobalQuota");
m_globalQuotaHasBeenSet = true;
}
if(jsonValue.ValueExists("Unit"))
{
m_unit = jsonValue.GetString("Unit");
m_unitHasBeenSet = true;
}
return *this;
}
JsonValue RequestedServiceQuotaChange::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_caseIdHasBeenSet)
{
payload.WithString("CaseId", m_caseId);
}
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_serviceNameHasBeenSet)
{
payload.WithString("ServiceName", m_serviceName);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_quotaNameHasBeenSet)
{
payload.WithString("QuotaName", m_quotaName);
}
if(m_desiredValueHasBeenSet)
{
payload.WithDouble("DesiredValue", m_desiredValue);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", RequestStatusMapper::GetNameForRequestStatus(m_status));
}
if(m_createdHasBeenSet)
{
payload.WithDouble("Created", m_created.SecondsWithMSPrecision());
}
if(m_lastUpdatedHasBeenSet)
{
payload.WithDouble("LastUpdated", m_lastUpdated.SecondsWithMSPrecision());
}
if(m_requesterHasBeenSet)
{
payload.WithString("Requester", m_requester);
}
if(m_quotaArnHasBeenSet)
{
payload.WithString("QuotaArn", m_quotaArn);
}
if(m_globalQuotaHasBeenSet)
{
payload.WithBool("GlobalQuota", m_globalQuota);
}
if(m_unitHasBeenSet)
{
payload.WithString("Unit", m_unit);
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ServiceInfo.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
ServiceInfo::ServiceInfo() :
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false)
{
}
ServiceInfo::ServiceInfo(JsonView jsonValue) :
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false)
{
*this = jsonValue;
}
ServiceInfo& ServiceInfo::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ServiceCode"))
{
m_serviceCode = jsonValue.GetString("ServiceCode");
m_serviceCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("ServiceName"))
{
m_serviceName = jsonValue.GetString("ServiceName");
m_serviceNameHasBeenSet = true;
}
return *this;
}
JsonValue ServiceInfo::Jsonize() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_serviceNameHasBeenSet)
{
payload.WithString("ServiceName", m_serviceName);
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,230 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ServiceQuota.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
ServiceQuota::ServiceQuota() :
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_quotaArnHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_quotaNameHasBeenSet(false),
m_value(0.0),
m_valueHasBeenSet(false),
m_unitHasBeenSet(false),
m_adjustable(false),
m_adjustableHasBeenSet(false),
m_globalQuota(false),
m_globalQuotaHasBeenSet(false),
m_usageMetricHasBeenSet(false),
m_periodHasBeenSet(false),
m_errorReasonHasBeenSet(false)
{
}
ServiceQuota::ServiceQuota(JsonView jsonValue) :
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_quotaArnHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_quotaNameHasBeenSet(false),
m_value(0.0),
m_valueHasBeenSet(false),
m_unitHasBeenSet(false),
m_adjustable(false),
m_adjustableHasBeenSet(false),
m_globalQuota(false),
m_globalQuotaHasBeenSet(false),
m_usageMetricHasBeenSet(false),
m_periodHasBeenSet(false),
m_errorReasonHasBeenSet(false)
{
*this = jsonValue;
}
ServiceQuota& ServiceQuota::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ServiceCode"))
{
m_serviceCode = jsonValue.GetString("ServiceCode");
m_serviceCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("ServiceName"))
{
m_serviceName = jsonValue.GetString("ServiceName");
m_serviceNameHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaArn"))
{
m_quotaArn = jsonValue.GetString("QuotaArn");
m_quotaArnHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaCode"))
{
m_quotaCode = jsonValue.GetString("QuotaCode");
m_quotaCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaName"))
{
m_quotaName = jsonValue.GetString("QuotaName");
m_quotaNameHasBeenSet = true;
}
if(jsonValue.ValueExists("Value"))
{
m_value = jsonValue.GetDouble("Value");
m_valueHasBeenSet = true;
}
if(jsonValue.ValueExists("Unit"))
{
m_unit = jsonValue.GetString("Unit");
m_unitHasBeenSet = true;
}
if(jsonValue.ValueExists("Adjustable"))
{
m_adjustable = jsonValue.GetBool("Adjustable");
m_adjustableHasBeenSet = true;
}
if(jsonValue.ValueExists("GlobalQuota"))
{
m_globalQuota = jsonValue.GetBool("GlobalQuota");
m_globalQuotaHasBeenSet = true;
}
if(jsonValue.ValueExists("UsageMetric"))
{
m_usageMetric = jsonValue.GetObject("UsageMetric");
m_usageMetricHasBeenSet = true;
}
if(jsonValue.ValueExists("Period"))
{
m_period = jsonValue.GetObject("Period");
m_periodHasBeenSet = true;
}
if(jsonValue.ValueExists("ErrorReason"))
{
m_errorReason = jsonValue.GetObject("ErrorReason");
m_errorReasonHasBeenSet = true;
}
return *this;
}
JsonValue ServiceQuota::Jsonize() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_serviceNameHasBeenSet)
{
payload.WithString("ServiceName", m_serviceName);
}
if(m_quotaArnHasBeenSet)
{
payload.WithString("QuotaArn", m_quotaArn);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_quotaNameHasBeenSet)
{
payload.WithString("QuotaName", m_quotaName);
}
if(m_valueHasBeenSet)
{
payload.WithDouble("Value", m_value);
}
if(m_unitHasBeenSet)
{
payload.WithString("Unit", m_unit);
}
if(m_adjustableHasBeenSet)
{
payload.WithBool("Adjustable", m_adjustable);
}
if(m_globalQuotaHasBeenSet)
{
payload.WithBool("GlobalQuota", m_globalQuota);
}
if(m_usageMetricHasBeenSet)
{
payload.WithObject("UsageMetric", m_usageMetric.Jsonize());
}
if(m_periodHasBeenSet)
{
payload.WithObject("Period", m_period.Jsonize());
}
if(m_errorReasonHasBeenSet)
{
payload.WithObject("ErrorReason", m_errorReason.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ServiceQuotaIncreaseRequestInTemplate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
ServiceQuotaIncreaseRequestInTemplate::ServiceQuotaIncreaseRequestInTemplate() :
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_quotaNameHasBeenSet(false),
m_desiredValue(0.0),
m_desiredValueHasBeenSet(false),
m_awsRegionHasBeenSet(false),
m_unitHasBeenSet(false),
m_globalQuota(false),
m_globalQuotaHasBeenSet(false)
{
}
ServiceQuotaIncreaseRequestInTemplate::ServiceQuotaIncreaseRequestInTemplate(JsonView jsonValue) :
m_serviceCodeHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_quotaCodeHasBeenSet(false),
m_quotaNameHasBeenSet(false),
m_desiredValue(0.0),
m_desiredValueHasBeenSet(false),
m_awsRegionHasBeenSet(false),
m_unitHasBeenSet(false),
m_globalQuota(false),
m_globalQuotaHasBeenSet(false)
{
*this = jsonValue;
}
ServiceQuotaIncreaseRequestInTemplate& ServiceQuotaIncreaseRequestInTemplate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ServiceCode"))
{
m_serviceCode = jsonValue.GetString("ServiceCode");
m_serviceCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("ServiceName"))
{
m_serviceName = jsonValue.GetString("ServiceName");
m_serviceNameHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaCode"))
{
m_quotaCode = jsonValue.GetString("QuotaCode");
m_quotaCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("QuotaName"))
{
m_quotaName = jsonValue.GetString("QuotaName");
m_quotaNameHasBeenSet = true;
}
if(jsonValue.ValueExists("DesiredValue"))
{
m_desiredValue = jsonValue.GetDouble("DesiredValue");
m_desiredValueHasBeenSet = true;
}
if(jsonValue.ValueExists("AwsRegion"))
{
m_awsRegion = jsonValue.GetString("AwsRegion");
m_awsRegionHasBeenSet = true;
}
if(jsonValue.ValueExists("Unit"))
{
m_unit = jsonValue.GetString("Unit");
m_unitHasBeenSet = true;
}
if(jsonValue.ValueExists("GlobalQuota"))
{
m_globalQuota = jsonValue.GetBool("GlobalQuota");
m_globalQuotaHasBeenSet = true;
}
return *this;
}
JsonValue ServiceQuotaIncreaseRequestInTemplate::Jsonize() const
{
JsonValue payload;
if(m_serviceCodeHasBeenSet)
{
payload.WithString("ServiceCode", m_serviceCode);
}
if(m_serviceNameHasBeenSet)
{
payload.WithString("ServiceName", m_serviceName);
}
if(m_quotaCodeHasBeenSet)
{
payload.WithString("QuotaCode", m_quotaCode);
}
if(m_quotaNameHasBeenSet)
{
payload.WithString("QuotaName", m_quotaName);
}
if(m_desiredValueHasBeenSet)
{
payload.WithDouble("DesiredValue", m_desiredValue);
}
if(m_awsRegionHasBeenSet)
{
payload.WithString("AwsRegion", m_awsRegion);
}
if(m_unitHasBeenSet)
{
payload.WithString("Unit", m_unit);
}
if(m_globalQuotaHasBeenSet)
{
payload.WithBool("GlobalQuota", m_globalQuota);
}
return payload;
}
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/service-quotas/model/ServiceQuotaTemplateAssociationStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ServiceQuotas
{
namespace Model
{
namespace ServiceQuotaTemplateAssociationStatusMapper
{
static const int ASSOCIATED_HASH = HashingUtils::HashString("ASSOCIATED");
static const int DISASSOCIATED_HASH = HashingUtils::HashString("DISASSOCIATED");
ServiceQuotaTemplateAssociationStatus GetServiceQuotaTemplateAssociationStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ASSOCIATED_HASH)
{
return ServiceQuotaTemplateAssociationStatus::ASSOCIATED;
}
else if (hashCode == DISASSOCIATED_HASH)
{
return ServiceQuotaTemplateAssociationStatus::DISASSOCIATED;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ServiceQuotaTemplateAssociationStatus>(hashCode);
}
return ServiceQuotaTemplateAssociationStatus::NOT_SET;
}
Aws::String GetNameForServiceQuotaTemplateAssociationStatus(ServiceQuotaTemplateAssociationStatus enumValue)
{
switch(enumValue)
{
case ServiceQuotaTemplateAssociationStatus::ASSOCIATED:
return "ASSOCIATED";
case ServiceQuotaTemplateAssociationStatus::DISASSOCIATED:
return "DISASSOCIATED";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ServiceQuotaTemplateAssociationStatusMapper
} // namespace Model
} // namespace ServiceQuotas
} // namespace Aws