/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about a function's configuration.See Also:
AWS
* API Reference
The name of the function.
*/ inline const Aws::String& GetFunctionName() const{ return m_functionName; } /** *The name of the function.
*/ inline void SetFunctionName(const Aws::String& value) { m_functionName = value; } /** *The name of the function.
*/ inline void SetFunctionName(Aws::String&& value) { m_functionName = std::move(value); } /** *The name of the function.
*/ inline void SetFunctionName(const char* value) { m_functionName.assign(value); } /** *The name of the function.
*/ inline PublishVersionResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;} /** *The name of the function.
*/ inline PublishVersionResult& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;} /** *The name of the function.
*/ inline PublishVersionResult& WithFunctionName(const char* value) { SetFunctionName(value); return *this;} /** *The function's Amazon Resource Name (ARN).
*/ inline const Aws::String& GetFunctionArn() const{ return m_functionArn; } /** *The function's Amazon Resource Name (ARN).
*/ inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; } /** *The function's Amazon Resource Name (ARN).
*/ inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); } /** *The function's Amazon Resource Name (ARN).
*/ inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); } /** *The function's Amazon Resource Name (ARN).
*/ inline PublishVersionResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** *The function's Amazon Resource Name (ARN).
*/ inline PublishVersionResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** *The function's Amazon Resource Name (ARN).
*/ inline PublishVersionResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** *The runtime environment for the Lambda function.
*/ inline const Runtime& GetRuntime() const{ return m_runtime; } /** *The runtime environment for the Lambda function.
*/ inline void SetRuntime(const Runtime& value) { m_runtime = value; } /** *The runtime environment for the Lambda function.
*/ inline void SetRuntime(Runtime&& value) { m_runtime = std::move(value); } /** *The runtime environment for the Lambda function.
*/ inline PublishVersionResult& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;} /** *The runtime environment for the Lambda function.
*/ inline PublishVersionResult& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;} /** *The function's execution role.
*/ inline const Aws::String& GetRole() const{ return m_role; } /** *The function's execution role.
*/ inline void SetRole(const Aws::String& value) { m_role = value; } /** *The function's execution role.
*/ inline void SetRole(Aws::String&& value) { m_role = std::move(value); } /** *The function's execution role.
*/ inline void SetRole(const char* value) { m_role.assign(value); } /** *The function's execution role.
*/ inline PublishVersionResult& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *The function's execution role.
*/ inline PublishVersionResult& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *The function's execution role.
*/ inline PublishVersionResult& WithRole(const char* value) { SetRole(value); return *this;} /** *The function that Lambda calls to begin executing your function.
*/ inline const Aws::String& GetHandler() const{ return m_handler; } /** *The function that Lambda calls to begin executing your function.
*/ inline void SetHandler(const Aws::String& value) { m_handler = value; } /** *The function that Lambda calls to begin executing your function.
*/ inline void SetHandler(Aws::String&& value) { m_handler = std::move(value); } /** *The function that Lambda calls to begin executing your function.
*/ inline void SetHandler(const char* value) { m_handler.assign(value); } /** *The function that Lambda calls to begin executing your function.
*/ inline PublishVersionResult& WithHandler(const Aws::String& value) { SetHandler(value); return *this;} /** *The function that Lambda calls to begin executing your function.
*/ inline PublishVersionResult& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;} /** *The function that Lambda calls to begin executing your function.
*/ inline PublishVersionResult& WithHandler(const char* value) { SetHandler(value); return *this;} /** *The size of the function's deployment package, in bytes.
*/ inline long long GetCodeSize() const{ return m_codeSize; } /** *The size of the function's deployment package, in bytes.
*/ inline void SetCodeSize(long long value) { m_codeSize = value; } /** *The size of the function's deployment package, in bytes.
*/ inline PublishVersionResult& WithCodeSize(long long value) { SetCodeSize(value); return *this;} /** *The function's description.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The function's description.
*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *The function's description.
*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *The function's description.
*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *The function's description.
*/ inline PublishVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The function's description.
*/ inline PublishVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The function's description.
*/ inline PublishVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The amount of time in seconds that Lambda allows a function to run before * stopping it.
*/ inline int GetTimeout() const{ return m_timeout; } /** *The amount of time in seconds that Lambda allows a function to run before * stopping it.
*/ inline void SetTimeout(int value) { m_timeout = value; } /** *The amount of time in seconds that Lambda allows a function to run before * stopping it.
*/ inline PublishVersionResult& WithTimeout(int value) { SetTimeout(value); return *this;} /** *The memory that's allocated to the function.
*/ inline int GetMemorySize() const{ return m_memorySize; } /** *The memory that's allocated to the function.
*/ inline void SetMemorySize(int value) { m_memorySize = value; } /** *The memory that's allocated to the function.
*/ inline PublishVersionResult& WithMemorySize(int value) { SetMemorySize(value); return *this;} /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline const Aws::String& GetLastModified() const{ return m_lastModified; } /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline void SetLastModified(const Aws::String& value) { m_lastModified = value; } /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline void SetLastModified(Aws::String&& value) { m_lastModified = std::move(value); } /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline void SetLastModified(const char* value) { m_lastModified.assign(value); } /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline PublishVersionResult& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;} /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline PublishVersionResult& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;} /** *The date and time that the function was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).
*/ inline PublishVersionResult& WithLastModified(const char* value) { SetLastModified(value); return *this;} /** *The SHA256 hash of the function's deployment package.
*/ inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; } /** *The SHA256 hash of the function's deployment package.
*/ inline void SetCodeSha256(const Aws::String& value) { m_codeSha256 = value; } /** *The SHA256 hash of the function's deployment package.
*/ inline void SetCodeSha256(Aws::String&& value) { m_codeSha256 = std::move(value); } /** *The SHA256 hash of the function's deployment package.
*/ inline void SetCodeSha256(const char* value) { m_codeSha256.assign(value); } /** *The SHA256 hash of the function's deployment package.
*/ inline PublishVersionResult& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;} /** *The SHA256 hash of the function's deployment package.
*/ inline PublishVersionResult& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;} /** *The SHA256 hash of the function's deployment package.
*/ inline PublishVersionResult& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;} /** *The version of the Lambda function.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version of the Lambda function.
*/ inline void SetVersion(const Aws::String& value) { m_version = value; } /** *The version of the Lambda function.
*/ inline void SetVersion(Aws::String&& value) { m_version = std::move(value); } /** *The version of the Lambda function.
*/ inline void SetVersion(const char* value) { m_version.assign(value); } /** *The version of the Lambda function.
*/ inline PublishVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version of the Lambda function.
*/ inline PublishVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version of the Lambda function.
*/ inline PublishVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The function's networking configuration.
*/ inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; } /** *The function's networking configuration.
*/ inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfig = value; } /** *The function's networking configuration.
*/ inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfig = std::move(value); } /** *The function's networking configuration.
*/ inline PublishVersionResult& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;} /** *The function's networking configuration.
*/ inline PublishVersionResult& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(std::move(value)); return *this;} /** *The function's dead letter queue.
*/ inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; } /** *The function's dead letter queue.
*/ inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfig = value; } /** *The function's dead letter queue.
*/ inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfig = std::move(value); } /** *The function's dead letter queue.
*/ inline PublishVersionResult& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;} /** *The function's dead letter queue.
*/ inline PublishVersionResult& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;} /** *The function's environment variables.
*/ inline const EnvironmentResponse& GetEnvironment() const{ return m_environment; } /** *The function's environment variables.
*/ inline void SetEnvironment(const EnvironmentResponse& value) { m_environment = value; } /** *The function's environment variables.
*/ inline void SetEnvironment(EnvironmentResponse&& value) { m_environment = std::move(value); } /** *The function's environment variables.
*/ inline PublishVersionResult& WithEnvironment(const EnvironmentResponse& value) { SetEnvironment(value); return *this;} /** *The function's environment variables.
*/ inline PublishVersionResult& WithEnvironment(EnvironmentResponse&& value) { SetEnvironment(std::move(value)); return *this;} /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; } /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArn = value; } /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArn = std::move(value); } /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); } /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline PublishVersionResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;} /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline PublishVersionResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;} /** *The KMS key that's used to encrypt the function's environment variables. This * key is only returned if you've configured a customer managed CMK.
*/ inline PublishVersionResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;} /** *The function's AWS X-Ray tracing configuration.
*/ inline const TracingConfigResponse& GetTracingConfig() const{ return m_tracingConfig; } /** *The function's AWS X-Ray tracing configuration.
*/ inline void SetTracingConfig(const TracingConfigResponse& value) { m_tracingConfig = value; } /** *The function's AWS X-Ray tracing configuration.
*/ inline void SetTracingConfig(TracingConfigResponse&& value) { m_tracingConfig = std::move(value); } /** *The function's AWS X-Ray tracing configuration.
*/ inline PublishVersionResult& WithTracingConfig(const TracingConfigResponse& value) { SetTracingConfig(value); return *this;} /** *The function's AWS X-Ray tracing configuration.
*/ inline PublishVersionResult& WithTracingConfig(TracingConfigResponse&& value) { SetTracingConfig(std::move(value)); return *this;} /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline const Aws::String& GetMasterArn() const{ return m_masterArn; } /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline void SetMasterArn(const Aws::String& value) { m_masterArn = value; } /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline void SetMasterArn(Aws::String&& value) { m_masterArn = std::move(value); } /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline void SetMasterArn(const char* value) { m_masterArn.assign(value); } /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline PublishVersionResult& WithMasterArn(const Aws::String& value) { SetMasterArn(value); return *this;} /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline PublishVersionResult& WithMasterArn(Aws::String&& value) { SetMasterArn(std::move(value)); return *this;} /** *For Lambda@Edge functions, the ARN of the master function.
*/ inline PublishVersionResult& WithMasterArn(const char* value) { SetMasterArn(value); return *this;} /** *The latest updated revision of the function or alias.
*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *The latest updated revision of the function or alias.
*/ inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** *The latest updated revision of the function or alias.
*/ inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** *The latest updated revision of the function or alias.
*/ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** *The latest updated revision of the function or alias.
*/ inline PublishVersionResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *The latest updated revision of the function or alias.
*/ inline PublishVersionResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *The latest updated revision of the function or alias.
*/ inline PublishVersionResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *The function's * layers.
*/ inline const Aws::VectorThe function's * layers.
*/ inline void SetLayers(const Aws::VectorThe function's * layers.
*/ inline void SetLayers(Aws::VectorThe function's * layers.
*/ inline PublishVersionResult& WithLayers(const Aws::VectorThe function's * layers.
*/ inline PublishVersionResult& WithLayers(Aws::VectorThe function's * layers.
*/ inline PublishVersionResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; } /** *The function's * layers.
*/ inline PublishVersionResult& AddLayers(Layer&& value) { m_layers.push_back(std::move(value)); return *this; } /** *The current state of the function. When the state is Inactive,
* you can reactivate the function by invoking it.
The current state of the function. When the state is Inactive,
* you can reactivate the function by invoking it.
The current state of the function. When the state is Inactive,
* you can reactivate the function by invoking it.
The current state of the function. When the state is Inactive,
* you can reactivate the function by invoking it.
The current state of the function. When the state is Inactive,
* you can reactivate the function by invoking it.
The reason for the function's current state.
*/ inline const Aws::String& GetStateReason() const{ return m_stateReason; } /** *The reason for the function's current state.
*/ inline void SetStateReason(const Aws::String& value) { m_stateReason = value; } /** *The reason for the function's current state.
*/ inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); } /** *The reason for the function's current state.
*/ inline void SetStateReason(const char* value) { m_stateReason.assign(value); } /** *The reason for the function's current state.
*/ inline PublishVersionResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *The reason for the function's current state.
*/ inline PublishVersionResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} /** *The reason for the function's current state.
*/ inline PublishVersionResult& WithStateReason(const char* value) { SetStateReason(value); return *this;} /** *The reason code for the function's current state. When the code is
* Creating, you can't invoke or modify the function.
The reason code for the function's current state. When the code is
* Creating, you can't invoke or modify the function.
The reason code for the function's current state. When the code is
* Creating, you can't invoke or modify the function.
The reason code for the function's current state. When the code is
* Creating, you can't invoke or modify the function.
The reason code for the function's current state. When the code is
* Creating, you can't invoke or modify the function.
The status of the last update that was performed on the function. This is
* first set to Successful after function creation completes.
The status of the last update that was performed on the function. This is
* first set to Successful after function creation completes.
The status of the last update that was performed on the function. This is
* first set to Successful after function creation completes.
The status of the last update that was performed on the function. This is
* first set to Successful after function creation completes.
The status of the last update that was performed on the function. This is
* first set to Successful after function creation completes.
The reason for the last update that was performed on the function.
*/ inline const Aws::String& GetLastUpdateStatusReason() const{ return m_lastUpdateStatusReason; } /** *The reason for the last update that was performed on the function.
*/ inline void SetLastUpdateStatusReason(const Aws::String& value) { m_lastUpdateStatusReason = value; } /** *The reason for the last update that was performed on the function.
*/ inline void SetLastUpdateStatusReason(Aws::String&& value) { m_lastUpdateStatusReason = std::move(value); } /** *The reason for the last update that was performed on the function.
*/ inline void SetLastUpdateStatusReason(const char* value) { m_lastUpdateStatusReason.assign(value); } /** *The reason for the last update that was performed on the function.
*/ inline PublishVersionResult& WithLastUpdateStatusReason(const Aws::String& value) { SetLastUpdateStatusReason(value); return *this;} /** *The reason for the last update that was performed on the function.
*/ inline PublishVersionResult& WithLastUpdateStatusReason(Aws::String&& value) { SetLastUpdateStatusReason(std::move(value)); return *this;} /** *The reason for the last update that was performed on the function.
*/ inline PublishVersionResult& WithLastUpdateStatusReason(const char* value) { SetLastUpdateStatusReason(value); return *this;} /** *The reason code for the last update that was performed on the function.
*/ inline const LastUpdateStatusReasonCode& GetLastUpdateStatusReasonCode() const{ return m_lastUpdateStatusReasonCode; } /** *The reason code for the last update that was performed on the function.
*/ inline void SetLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { m_lastUpdateStatusReasonCode = value; } /** *The reason code for the last update that was performed on the function.
*/ inline void SetLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { m_lastUpdateStatusReasonCode = std::move(value); } /** *The reason code for the last update that was performed on the function.
*/ inline PublishVersionResult& WithLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { SetLastUpdateStatusReasonCode(value); return *this;} /** *The reason code for the last update that was performed on the function.
*/ inline PublishVersionResult& WithLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { SetLastUpdateStatusReasonCode(std::move(value)); return *this;} /** *Connection settings for an Amazon EFS file system.
*/ inline const Aws::VectorConnection settings for an Amazon EFS file system.
*/ inline void SetFileSystemConfigs(const Aws::VectorConnection settings for an Amazon EFS file system.
*/ inline void SetFileSystemConfigs(Aws::VectorConnection settings for an Amazon EFS file system.
*/ inline PublishVersionResult& WithFileSystemConfigs(const Aws::VectorConnection settings for an Amazon EFS file system.
*/ inline PublishVersionResult& WithFileSystemConfigs(Aws::VectorConnection settings for an Amazon EFS file system.
*/ inline PublishVersionResult& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigs.push_back(value); return *this; } /** *Connection settings for an Amazon EFS file system.
*/ inline PublishVersionResult& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigs.push_back(std::move(value)); return *this; } private: Aws::String m_functionName; Aws::String m_functionArn; Runtime m_runtime; Aws::String m_role; Aws::String m_handler; long long m_codeSize; Aws::String m_description; int m_timeout; int m_memorySize; Aws::String m_lastModified; Aws::String m_codeSha256; Aws::String m_version; VpcConfigResponse m_vpcConfig; DeadLetterConfig m_deadLetterConfig; EnvironmentResponse m_environment; Aws::String m_kMSKeyArn; TracingConfigResponse m_tracingConfig; Aws::String m_masterArn; Aws::String m_revisionId; Aws::Vector