/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { /** *

Details about a function's configuration.

See Also:

AWS * API Reference

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

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 UpdateFunctionCodeResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;} /** *

The name of the function.

*/ inline UpdateFunctionCodeResult& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;} /** *

The name of the function.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** *

The function's Amazon Resource Name (ARN).

*/ inline UpdateFunctionCodeResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** *

The function's Amazon Resource Name (ARN).

*/ inline UpdateFunctionCodeResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** *

The identifier of the function's runtime. * Runtime is required if the deployment package is a .zip file archive.

The * following list includes deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline const Runtime& GetRuntime() const{ return m_runtime; } /** *

The identifier of the function's runtime. * Runtime is required if the deployment package is a .zip file archive.

The * following list includes deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline void SetRuntime(const Runtime& value) { m_runtime = value; } /** *

The identifier of the function's runtime. * Runtime is required if the deployment package is a .zip file archive.

The * following list includes deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline void SetRuntime(Runtime&& value) { m_runtime = std::move(value); } /** *

The identifier of the function's runtime. * Runtime is required if the deployment package is a .zip file archive.

The * following list includes deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline UpdateFunctionCodeResult& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;} /** *

The identifier of the function's runtime. * Runtime is required if the deployment package is a .zip file archive.

The * following list includes deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *

The function's execution role.

*/ inline UpdateFunctionCodeResult& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *

The function's execution role.

*/ inline UpdateFunctionCodeResult& WithRole(const char* value) { SetRole(value); return *this;} /** *

The function that Lambda calls to begin running your function.

*/ inline const Aws::String& GetHandler() const{ return m_handler; } /** *

The function that Lambda calls to begin running your function.

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

The function that Lambda calls to begin running your function.

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

The function that Lambda calls to begin running your function.

*/ inline void SetHandler(const char* value) { m_handler.assign(value); } /** *

The function that Lambda calls to begin running your function.

*/ inline UpdateFunctionCodeResult& WithHandler(const Aws::String& value) { SetHandler(value); return *this;} /** *

The function that Lambda calls to begin running your function.

*/ inline UpdateFunctionCodeResult& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;} /** *

The function that Lambda calls to begin running your function.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The function's description.

*/ inline UpdateFunctionCodeResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The function's description.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithTimeout(int value) { SetTimeout(value); return *this;} /** *

The amount of memory available to the function at runtime.

*/ inline int GetMemorySize() const{ return m_memorySize; } /** *

The amount of memory available to the function at runtime.

*/ inline void SetMemorySize(int value) { m_memorySize = value; } /** *

The amount of memory available to the function at runtime.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;} /** *

The SHA256 hash of the function's deployment package.

*/ inline UpdateFunctionCodeResult& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;} /** *

The SHA256 hash of the function's deployment package.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the Lambda function.

*/ inline UpdateFunctionCodeResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the Lambda function.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;} /** *

The function's networking configuration.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;} /** *

The function's dead letter queue.

*/ inline UpdateFunctionCodeResult& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;} /** *

The function's environment * variables. Omitted from CloudTrail logs.

*/ inline const EnvironmentResponse& GetEnvironment() const{ return m_environment; } /** *

The function's environment * variables. Omitted from CloudTrail logs.

*/ inline void SetEnvironment(const EnvironmentResponse& value) { m_environment = value; } /** *

The function's environment * variables. Omitted from CloudTrail logs.

*/ inline void SetEnvironment(EnvironmentResponse&& value) { m_environment = std::move(value); } /** *

The function's environment * variables. Omitted from CloudTrail logs.

*/ inline UpdateFunctionCodeResult& WithEnvironment(const EnvironmentResponse& value) { SetEnvironment(value); return *this;} /** *

The function's environment * variables. Omitted from CloudTrail logs.

*/ inline UpdateFunctionCodeResult& WithEnvironment(EnvironmentResponse&& value) { SetEnvironment(std::move(value)); return *this;} /** *

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

*/ inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; } /** *

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

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

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

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

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

*/ inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); } /** *

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

*/ inline UpdateFunctionCodeResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;} /** *

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

*/ inline UpdateFunctionCodeResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;} /** *

The KMS key that's used to encrypt the function's environment * variables. When Lambda * SnapStart is activated, this key is also used to encrypt the function's * snapshot. This key is returned only if you've configured a customer managed * key.

*/ inline UpdateFunctionCodeResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;} /** *

The function's X-Ray tracing configuration.

*/ inline const TracingConfigResponse& GetTracingConfig() const{ return m_tracingConfig; } /** *

The function's X-Ray tracing configuration.

*/ inline void SetTracingConfig(const TracingConfigResponse& value) { m_tracingConfig = value; } /** *

The function's X-Ray tracing configuration.

*/ inline void SetTracingConfig(TracingConfigResponse&& value) { m_tracingConfig = std::move(value); } /** *

The function's X-Ray tracing configuration.

*/ inline UpdateFunctionCodeResult& WithTracingConfig(const TracingConfigResponse& value) { SetTracingConfig(value); return *this;} /** *

The function's X-Ray tracing configuration.

*/ inline UpdateFunctionCodeResult& WithTracingConfig(TracingConfigResponse&& value) { SetTracingConfig(std::move(value)); return *this;} /** *

For Lambda@Edge functions, the ARN of the main function.

*/ inline const Aws::String& GetMasterArn() const{ return m_masterArn; } /** *

For Lambda@Edge functions, the ARN of the main function.

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

For Lambda@Edge functions, the ARN of the main function.

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

For Lambda@Edge functions, the ARN of the main function.

*/ inline void SetMasterArn(const char* value) { m_masterArn.assign(value); } /** *

For Lambda@Edge functions, the ARN of the main function.

*/ inline UpdateFunctionCodeResult& WithMasterArn(const Aws::String& value) { SetMasterArn(value); return *this;} /** *

For Lambda@Edge functions, the ARN of the main function.

*/ inline UpdateFunctionCodeResult& WithMasterArn(Aws::String&& value) { SetMasterArn(std::move(value)); return *this;} /** *

For Lambda@Edge functions, the ARN of the main function.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

The latest updated revision of the function or alias.

*/ inline UpdateFunctionCodeResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

The latest updated revision of the function or alias.

*/ inline UpdateFunctionCodeResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

The function's layers.

*/ inline const Aws::Vector& GetLayers() const{ return m_layers; } /** *

The function's layers.

*/ inline void SetLayers(const Aws::Vector& value) { m_layers = value; } /** *

The function's layers.

*/ inline void SetLayers(Aws::Vector&& value) { m_layers = std::move(value); } /** *

The function's layers.

*/ inline UpdateFunctionCodeResult& WithLayers(const Aws::Vector& value) { SetLayers(value); return *this;} /** *

The function's layers.

*/ inline UpdateFunctionCodeResult& WithLayers(Aws::Vector&& value) { SetLayers(std::move(value)); return *this;} /** *

The function's layers.

*/ inline UpdateFunctionCodeResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; } /** *

The function's layers.

*/ inline UpdateFunctionCodeResult& 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.

*/ inline const State& GetState() const{ return m_state; } /** *

The current state of the function. When the state is Inactive, * you can reactivate the function by invoking it.

*/ inline void SetState(const State& value) { m_state = value; } /** *

The current state of the function. When the state is Inactive, * you can reactivate the function by invoking it.

*/ inline void SetState(State&& value) { m_state = std::move(value); } /** *

The current state of the function. When the state is Inactive, * you can reactivate the function by invoking it.

*/ inline UpdateFunctionCodeResult& WithState(const State& value) { SetState(value); return *this;} /** *

The current state of the function. When the state is Inactive, * you can reactivate the function by invoking it.

*/ inline UpdateFunctionCodeResult& WithState(State&& value) { SetState(std::move(value)); return *this;} /** *

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 UpdateFunctionCodeResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

The reason for the function's current state.

*/ inline UpdateFunctionCodeResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} /** *

The reason for the function's current state.

*/ inline UpdateFunctionCodeResult& 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.

*/ inline const StateReasonCode& GetStateReasonCode() const{ return m_stateReasonCode; } /** *

The reason code for the function's current state. When the code is * Creating, you can't invoke or modify the function.

*/ inline void SetStateReasonCode(const StateReasonCode& value) { m_stateReasonCode = value; } /** *

The reason code for the function's current state. When the code is * Creating, you can't invoke or modify the function.

*/ inline void SetStateReasonCode(StateReasonCode&& value) { m_stateReasonCode = std::move(value); } /** *

The reason code for the function's current state. When the code is * Creating, you can't invoke or modify the function.

*/ inline UpdateFunctionCodeResult& WithStateReasonCode(const StateReasonCode& value) { SetStateReasonCode(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.

*/ inline UpdateFunctionCodeResult& WithStateReasonCode(StateReasonCode&& value) { SetStateReasonCode(std::move(value)); return *this;} /** *

The status of the last update that was performed on the function. This is * first set to Successful after function creation completes.

*/ inline const LastUpdateStatus& GetLastUpdateStatus() const{ return m_lastUpdateStatus; } /** *

The status of the last update that was performed on the function. This is * first set to Successful after function creation completes.

*/ inline void SetLastUpdateStatus(const LastUpdateStatus& value) { m_lastUpdateStatus = value; } /** *

The status of the last update that was performed on the function. This is * first set to Successful after function creation completes.

*/ inline void SetLastUpdateStatus(LastUpdateStatus&& value) { m_lastUpdateStatus = std::move(value); } /** *

The status of the last update that was performed on the function. This is * first set to Successful after function creation completes.

*/ inline UpdateFunctionCodeResult& WithLastUpdateStatus(const LastUpdateStatus& value) { SetLastUpdateStatus(value); return *this;} /** *

The status of the last update that was performed on the function. This is * first set to Successful after function creation completes.

*/ inline UpdateFunctionCodeResult& WithLastUpdateStatus(LastUpdateStatus&& value) { SetLastUpdateStatus(std::move(value)); return *this;} /** *

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 UpdateFunctionCodeResult& WithLastUpdateStatusReason(const Aws::String& value) { SetLastUpdateStatusReason(value); return *this;} /** *

The reason for the last update that was performed on the function.

*/ inline UpdateFunctionCodeResult& WithLastUpdateStatusReason(Aws::String&& value) { SetLastUpdateStatusReason(std::move(value)); return *this;} /** *

The reason for the last update that was performed on the function.

*/ inline UpdateFunctionCodeResult& 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 UpdateFunctionCodeResult& WithLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { SetLastUpdateStatusReasonCode(value); return *this;} /** *

The reason code for the last update that was performed on the function.

*/ inline UpdateFunctionCodeResult& WithLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { SetLastUpdateStatusReasonCode(std::move(value)); return *this;} /** *

Connection settings for an Amazon * EFS file system.

*/ inline const Aws::Vector& GetFileSystemConfigs() const{ return m_fileSystemConfigs; } /** *

Connection settings for an Amazon * EFS file system.

*/ inline void SetFileSystemConfigs(const Aws::Vector& value) { m_fileSystemConfigs = value; } /** *

Connection settings for an Amazon * EFS file system.

*/ inline void SetFileSystemConfigs(Aws::Vector&& value) { m_fileSystemConfigs = std::move(value); } /** *

Connection settings for an Amazon * EFS file system.

*/ inline UpdateFunctionCodeResult& WithFileSystemConfigs(const Aws::Vector& value) { SetFileSystemConfigs(value); return *this;} /** *

Connection settings for an Amazon * EFS file system.

*/ inline UpdateFunctionCodeResult& WithFileSystemConfigs(Aws::Vector&& value) { SetFileSystemConfigs(std::move(value)); return *this;} /** *

Connection settings for an Amazon * EFS file system.

*/ inline UpdateFunctionCodeResult& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigs.push_back(value); return *this; } /** *

Connection settings for an Amazon * EFS file system.

*/ inline UpdateFunctionCodeResult& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigs.push_back(std::move(value)); return *this; } /** *

The type of deployment package. Set to Image for container image * and set Zip for .zip file archive.

*/ inline const PackageType& GetPackageType() const{ return m_packageType; } /** *

The type of deployment package. Set to Image for container image * and set Zip for .zip file archive.

*/ inline void SetPackageType(const PackageType& value) { m_packageType = value; } /** *

The type of deployment package. Set to Image for container image * and set Zip for .zip file archive.

*/ inline void SetPackageType(PackageType&& value) { m_packageType = std::move(value); } /** *

The type of deployment package. Set to Image for container image * and set Zip for .zip file archive.

*/ inline UpdateFunctionCodeResult& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;} /** *

The type of deployment package. Set to Image for container image * and set Zip for .zip file archive.

*/ inline UpdateFunctionCodeResult& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;} /** *

The function's image configuration values.

*/ inline const ImageConfigResponse& GetImageConfigResponse() const{ return m_imageConfigResponse; } /** *

The function's image configuration values.

*/ inline void SetImageConfigResponse(const ImageConfigResponse& value) { m_imageConfigResponse = value; } /** *

The function's image configuration values.

*/ inline void SetImageConfigResponse(ImageConfigResponse&& value) { m_imageConfigResponse = std::move(value); } /** *

The function's image configuration values.

*/ inline UpdateFunctionCodeResult& WithImageConfigResponse(const ImageConfigResponse& value) { SetImageConfigResponse(value); return *this;} /** *

The function's image configuration values.

*/ inline UpdateFunctionCodeResult& WithImageConfigResponse(ImageConfigResponse&& value) { SetImageConfigResponse(std::move(value)); return *this;} /** *

The ARN of the signing profile version.

*/ inline const Aws::String& GetSigningProfileVersionArn() const{ return m_signingProfileVersionArn; } /** *

The ARN of the signing profile version.

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

The ARN of the signing profile version.

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

The ARN of the signing profile version.

*/ inline void SetSigningProfileVersionArn(const char* value) { m_signingProfileVersionArn.assign(value); } /** *

The ARN of the signing profile version.

*/ inline UpdateFunctionCodeResult& WithSigningProfileVersionArn(const Aws::String& value) { SetSigningProfileVersionArn(value); return *this;} /** *

The ARN of the signing profile version.

*/ inline UpdateFunctionCodeResult& WithSigningProfileVersionArn(Aws::String&& value) { SetSigningProfileVersionArn(std::move(value)); return *this;} /** *

The ARN of the signing profile version.

*/ inline UpdateFunctionCodeResult& WithSigningProfileVersionArn(const char* value) { SetSigningProfileVersionArn(value); return *this;} /** *

The ARN of the signing job.

*/ inline const Aws::String& GetSigningJobArn() const{ return m_signingJobArn; } /** *

The ARN of the signing job.

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

The ARN of the signing job.

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

The ARN of the signing job.

*/ inline void SetSigningJobArn(const char* value) { m_signingJobArn.assign(value); } /** *

The ARN of the signing job.

*/ inline UpdateFunctionCodeResult& WithSigningJobArn(const Aws::String& value) { SetSigningJobArn(value); return *this;} /** *

The ARN of the signing job.

*/ inline UpdateFunctionCodeResult& WithSigningJobArn(Aws::String&& value) { SetSigningJobArn(std::move(value)); return *this;} /** *

The ARN of the signing job.

*/ inline UpdateFunctionCodeResult& WithSigningJobArn(const char* value) { SetSigningJobArn(value); return *this;} /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline const Aws::Vector& GetArchitectures() const{ return m_architectures; } /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline void SetArchitectures(const Aws::Vector& value) { m_architectures = value; } /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline void SetArchitectures(Aws::Vector&& value) { m_architectures = std::move(value); } /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline UpdateFunctionCodeResult& WithArchitectures(const Aws::Vector& value) { SetArchitectures(value); return *this;} /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline UpdateFunctionCodeResult& WithArchitectures(Aws::Vector&& value) { SetArchitectures(std::move(value)); return *this;} /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline UpdateFunctionCodeResult& AddArchitectures(const Architecture& value) { m_architectures.push_back(value); return *this; } /** *

The instruction set architecture that the function supports. Architecture is * a string array with one of the valid values. The default architecture value is * x86_64.

*/ inline UpdateFunctionCodeResult& AddArchitectures(Architecture&& value) { m_architectures.push_back(std::move(value)); return *this; } /** *

The size of the function’s /tmp directory in MB. The default * value is 512, but it can be any whole number between 512 and 10,240 MB.

*/ inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; } /** *

The size of the function’s /tmp directory in MB. The default * value is 512, but it can be any whole number between 512 and 10,240 MB.

*/ inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorage = value; } /** *

The size of the function’s /tmp directory in MB. The default * value is 512, but it can be any whole number between 512 and 10,240 MB.

*/ inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorage = std::move(value); } /** *

The size of the function’s /tmp directory in MB. The default * value is 512, but it can be any whole number between 512 and 10,240 MB.

*/ inline UpdateFunctionCodeResult& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;} /** *

The size of the function’s /tmp directory in MB. The default * value is 512, but it can be any whole number between 512 and 10,240 MB.

*/ inline UpdateFunctionCodeResult& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;} /** *

Set ApplyOn to PublishedVersions to create a * snapshot of the initialized execution environment when you publish a function * version. For more information, see Improving * startup performance with Lambda SnapStart.

*/ inline const SnapStartResponse& GetSnapStart() const{ return m_snapStart; } /** *

Set ApplyOn to PublishedVersions to create a * snapshot of the initialized execution environment when you publish a function * version. For more information, see Improving * startup performance with Lambda SnapStart.

*/ inline void SetSnapStart(const SnapStartResponse& value) { m_snapStart = value; } /** *

Set ApplyOn to PublishedVersions to create a * snapshot of the initialized execution environment when you publish a function * version. For more information, see Improving * startup performance with Lambda SnapStart.

*/ inline void SetSnapStart(SnapStartResponse&& value) { m_snapStart = std::move(value); } /** *

Set ApplyOn to PublishedVersions to create a * snapshot of the initialized execution environment when you publish a function * version. For more information, see Improving * startup performance with Lambda SnapStart.

*/ inline UpdateFunctionCodeResult& WithSnapStart(const SnapStartResponse& value) { SetSnapStart(value); return *this;} /** *

Set ApplyOn to PublishedVersions to create a * snapshot of the initialized execution environment when you publish a function * version. For more information, see Improving * startup performance with Lambda SnapStart.

*/ inline UpdateFunctionCodeResult& WithSnapStart(SnapStartResponse&& value) { SetSnapStart(std::move(value)); return *this;} /** *

The ARN of the runtime and any errors that occured.

*/ inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const{ return m_runtimeVersionConfig; } /** *

The ARN of the runtime and any errors that occured.

*/ inline void SetRuntimeVersionConfig(const RuntimeVersionConfig& value) { m_runtimeVersionConfig = value; } /** *

The ARN of the runtime and any errors that occured.

*/ inline void SetRuntimeVersionConfig(RuntimeVersionConfig&& value) { m_runtimeVersionConfig = std::move(value); } /** *

The ARN of the runtime and any errors that occured.

*/ inline UpdateFunctionCodeResult& WithRuntimeVersionConfig(const RuntimeVersionConfig& value) { SetRuntimeVersionConfig(value); return *this;} /** *

The ARN of the runtime and any errors that occured.

*/ inline UpdateFunctionCodeResult& WithRuntimeVersionConfig(RuntimeVersionConfig&& value) { SetRuntimeVersionConfig(std::move(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 UpdateFunctionCodeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateFunctionCodeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateFunctionCodeResult& WithRequestId(const char* value) { SetRequestId(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 m_layers; State m_state; Aws::String m_stateReason; StateReasonCode m_stateReasonCode; LastUpdateStatus m_lastUpdateStatus; Aws::String m_lastUpdateStatusReason; LastUpdateStatusReasonCode m_lastUpdateStatusReasonCode; Aws::Vector m_fileSystemConfigs; PackageType m_packageType; ImageConfigResponse m_imageConfigResponse; Aws::String m_signingProfileVersionArn; Aws::String m_signingJobArn; Aws::Vector m_architectures; EphemeralStorage m_ephemeralStorage; SnapStartResponse m_snapStart; RuntimeVersionConfig m_runtimeVersionConfig; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws