/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class GetProvisionedConcurrencyConfigResult { public: AWS_LAMBDA_API GetProvisionedConcurrencyConfigResult(); AWS_LAMBDA_API GetProvisionedConcurrencyConfigResult(const Aws::AmazonWebServiceResult& result); AWS_LAMBDA_API GetProvisionedConcurrencyConfigResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The amount of provisioned concurrency requested.

*/ inline int GetRequestedProvisionedConcurrentExecutions() const{ return m_requestedProvisionedConcurrentExecutions; } /** *

The amount of provisioned concurrency requested.

*/ inline void SetRequestedProvisionedConcurrentExecutions(int value) { m_requestedProvisionedConcurrentExecutions = value; } /** *

The amount of provisioned concurrency requested.

*/ inline GetProvisionedConcurrencyConfigResult& WithRequestedProvisionedConcurrentExecutions(int value) { SetRequestedProvisionedConcurrentExecutions(value); return *this;} /** *

The amount of provisioned concurrency available.

*/ inline int GetAvailableProvisionedConcurrentExecutions() const{ return m_availableProvisionedConcurrentExecutions; } /** *

The amount of provisioned concurrency available.

*/ inline void SetAvailableProvisionedConcurrentExecutions(int value) { m_availableProvisionedConcurrentExecutions = value; } /** *

The amount of provisioned concurrency available.

*/ inline GetProvisionedConcurrencyConfigResult& WithAvailableProvisionedConcurrentExecutions(int value) { SetAvailableProvisionedConcurrentExecutions(value); return *this;} /** *

The amount of provisioned concurrency allocated. When a weighted alias is * used during linear and canary deployments, this value fluctuates depending on * the amount of concurrency that is provisioned for the function versions.

*/ inline int GetAllocatedProvisionedConcurrentExecutions() const{ return m_allocatedProvisionedConcurrentExecutions; } /** *

The amount of provisioned concurrency allocated. When a weighted alias is * used during linear and canary deployments, this value fluctuates depending on * the amount of concurrency that is provisioned for the function versions.

*/ inline void SetAllocatedProvisionedConcurrentExecutions(int value) { m_allocatedProvisionedConcurrentExecutions = value; } /** *

The amount of provisioned concurrency allocated. When a weighted alias is * used during linear and canary deployments, this value fluctuates depending on * the amount of concurrency that is provisioned for the function versions.

*/ inline GetProvisionedConcurrencyConfigResult& WithAllocatedProvisionedConcurrentExecutions(int value) { SetAllocatedProvisionedConcurrentExecutions(value); return *this;} /** *

The status of the allocation process.

*/ inline const ProvisionedConcurrencyStatusEnum& GetStatus() const{ return m_status; } /** *

The status of the allocation process.

*/ inline void SetStatus(const ProvisionedConcurrencyStatusEnum& value) { m_status = value; } /** *

The status of the allocation process.

*/ inline void SetStatus(ProvisionedConcurrencyStatusEnum&& value) { m_status = std::move(value); } /** *

The status of the allocation process.

*/ inline GetProvisionedConcurrencyConfigResult& WithStatus(const ProvisionedConcurrencyStatusEnum& value) { SetStatus(value); return *this;} /** *

The status of the allocation process.

*/ inline GetProvisionedConcurrencyConfigResult& WithStatus(ProvisionedConcurrencyStatusEnum&& value) { SetStatus(std::move(value)); return *this;} /** *

For failed allocations, the reason that provisioned concurrency could not be * allocated.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

For failed allocations, the reason that provisioned concurrency could not be * allocated.

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

For failed allocations, the reason that provisioned concurrency could not be * allocated.

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

For failed allocations, the reason that provisioned concurrency could not be * allocated.

*/ inline void SetStatusReason(const char* value) { m_statusReason.assign(value); } /** *

For failed allocations, the reason that provisioned concurrency could not be * allocated.

*/ inline GetProvisionedConcurrencyConfigResult& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

For failed allocations, the reason that provisioned concurrency could not be * allocated.

*/ inline GetProvisionedConcurrencyConfigResult& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

For failed allocations, the reason that provisioned concurrency could not be * allocated.

*/ inline GetProvisionedConcurrencyConfigResult& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

The date and time that a user last updated the configuration, in ISO 8601 * format.

*/ inline const Aws::String& GetLastModified() const{ return m_lastModified; } /** *

The date and time that a user last updated the configuration, in ISO 8601 * format.

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

The date and time that a user last updated the configuration, in ISO 8601 * format.

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

The date and time that a user last updated the configuration, in ISO 8601 * format.

*/ inline void SetLastModified(const char* value) { m_lastModified.assign(value); } /** *

The date and time that a user last updated the configuration, in ISO 8601 * format.

*/ inline GetProvisionedConcurrencyConfigResult& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;} /** *

The date and time that a user last updated the configuration, in ISO 8601 * format.

*/ inline GetProvisionedConcurrencyConfigResult& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;} /** *

The date and time that a user last updated the configuration, in ISO 8601 * format.

*/ inline GetProvisionedConcurrencyConfigResult& WithLastModified(const char* value) { SetLastModified(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetProvisionedConcurrencyConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetProvisionedConcurrencyConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetProvisionedConcurrencyConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_requestedProvisionedConcurrentExecutions; int m_availableProvisionedConcurrentExecutions; int m_allocatedProvisionedConcurrentExecutions; ProvisionedConcurrencyStatusEnum m_status; Aws::String m_statusReason; Aws::String m_lastModified; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws