/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about the provisioned concurrency configuration for a function alias
* or version.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the alias or version.
*/ inline const Aws::String& GetFunctionArn() const{ return m_functionArn; } /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; } /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); } /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline ProvisionedConcurrencyConfigListItem& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline ProvisionedConcurrencyConfigListItem& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the alias or version.
*/ inline ProvisionedConcurrencyConfigListItem& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** *The amount of provisioned concurrency requested.
*/ inline int GetRequestedProvisionedConcurrentExecutions() const{ return m_requestedProvisionedConcurrentExecutions; } /** *The amount of provisioned concurrency requested.
*/ inline bool RequestedProvisionedConcurrentExecutionsHasBeenSet() const { return m_requestedProvisionedConcurrentExecutionsHasBeenSet; } /** *The amount of provisioned concurrency requested.
*/ inline void SetRequestedProvisionedConcurrentExecutions(int value) { m_requestedProvisionedConcurrentExecutionsHasBeenSet = true; m_requestedProvisionedConcurrentExecutions = value; } /** *The amount of provisioned concurrency requested.
*/ inline ProvisionedConcurrencyConfigListItem& 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 bool AvailableProvisionedConcurrentExecutionsHasBeenSet() const { return m_availableProvisionedConcurrentExecutionsHasBeenSet; } /** *The amount of provisioned concurrency available.
*/ inline void SetAvailableProvisionedConcurrentExecutions(int value) { m_availableProvisionedConcurrentExecutionsHasBeenSet = true; m_availableProvisionedConcurrentExecutions = value; } /** *The amount of provisioned concurrency available.
*/ inline ProvisionedConcurrencyConfigListItem& 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 bool AllocatedProvisionedConcurrentExecutionsHasBeenSet() const { return m_allocatedProvisionedConcurrentExecutionsHasBeenSet; } /** *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_allocatedProvisionedConcurrentExecutionsHasBeenSet = true; 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 ProvisionedConcurrencyConfigListItem& 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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the allocation process.
*/ inline void SetStatus(const ProvisionedConcurrencyStatusEnum& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the allocation process.
*/ inline void SetStatus(ProvisionedConcurrencyStatusEnum&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the allocation process.
*/ inline ProvisionedConcurrencyConfigListItem& WithStatus(const ProvisionedConcurrencyStatusEnum& value) { SetStatus(value); return *this;} /** *The status of the allocation process.
*/ inline ProvisionedConcurrencyConfigListItem& 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 bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *For failed allocations, the reason that provisioned concurrency could not be * allocated.
*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *For failed allocations, the reason that provisioned concurrency could not be * allocated.
*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *For failed allocations, the reason that provisioned concurrency could not be * allocated.
*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *For failed allocations, the reason that provisioned concurrency could not be * allocated.
*/ inline ProvisionedConcurrencyConfigListItem& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *For failed allocations, the reason that provisioned concurrency could not be * allocated.
*/ inline ProvisionedConcurrencyConfigListItem& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *For failed allocations, the reason that provisioned concurrency could not be * allocated.
*/ inline ProvisionedConcurrencyConfigListItem& 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 bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *The date and time that a user last updated the configuration, in ISO 8601 * format.
*/ inline void SetLastModified(const Aws::String& value) { m_lastModifiedHasBeenSet = true; 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_lastModifiedHasBeenSet = true; 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_lastModifiedHasBeenSet = true; m_lastModified.assign(value); } /** *The date and time that a user last updated the configuration, in ISO 8601 * format.
*/ inline ProvisionedConcurrencyConfigListItem& 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 ProvisionedConcurrencyConfigListItem& 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 ProvisionedConcurrencyConfigListItem& WithLastModified(const char* value) { SetLastModified(value); return *this;} private: Aws::String m_functionArn; bool m_functionArnHasBeenSet = false; int m_requestedProvisionedConcurrentExecutions; bool m_requestedProvisionedConcurrentExecutionsHasBeenSet = false; int m_availableProvisionedConcurrentExecutions; bool m_availableProvisionedConcurrentExecutionsHasBeenSet = false; int m_allocatedProvisionedConcurrentExecutions; bool m_allocatedProvisionedConcurrentExecutionsHasBeenSet = false; ProvisionedConcurrencyStatusEnum m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::String m_lastModified; bool m_lastModifiedHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws