All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.lambda.model.GetFunctionConfigurationResponse Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Lambda module holds the client classes that are used for communicating with AWS Lambda Service

There is a newer version: 2.29.15
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.lambda.model;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Details about a function's configuration. *

*/ @Generated("software.amazon.awssdk:codegen") public final class GetFunctionConfigurationResponse extends LambdaResponse implements ToCopyableBuilder { private static final SdkField FUNCTION_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("FunctionName").getter(getter(GetFunctionConfigurationResponse::functionName)) .setter(setter(Builder::functionName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FunctionName").build()).build(); private static final SdkField FUNCTION_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("FunctionArn").getter(getter(GetFunctionConfigurationResponse::functionArn)) .setter(setter(Builder::functionArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FunctionArn").build()).build(); private static final SdkField RUNTIME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Runtime") .getter(getter(GetFunctionConfigurationResponse::runtimeAsString)).setter(setter(Builder::runtime)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Runtime").build()).build(); private static final SdkField ROLE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Role") .getter(getter(GetFunctionConfigurationResponse::role)).setter(setter(Builder::role)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Role").build()).build(); private static final SdkField HANDLER_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Handler") .getter(getter(GetFunctionConfigurationResponse::handler)).setter(setter(Builder::handler)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Handler").build()).build(); private static final SdkField CODE_SIZE_FIELD = SdkField. builder(MarshallingType.LONG).memberName("CodeSize") .getter(getter(GetFunctionConfigurationResponse::codeSize)).setter(setter(Builder::codeSize)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CodeSize").build()).build(); private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Description").getter(getter(GetFunctionConfigurationResponse::description)) .setter(setter(Builder::description)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build(); private static final SdkField TIMEOUT_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("Timeout").getter(getter(GetFunctionConfigurationResponse::timeout)).setter(setter(Builder::timeout)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Timeout").build()).build(); private static final SdkField MEMORY_SIZE_FIELD = SdkField. builder(MarshallingType.INTEGER) .memberName("MemorySize").getter(getter(GetFunctionConfigurationResponse::memorySize)) .setter(setter(Builder::memorySize)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MemorySize").build()).build(); private static final SdkField LAST_MODIFIED_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("LastModified").getter(getter(GetFunctionConfigurationResponse::lastModified)) .setter(setter(Builder::lastModified)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastModified").build()).build(); private static final SdkField CODE_SHA256_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("CodeSha256").getter(getter(GetFunctionConfigurationResponse::codeSha256)) .setter(setter(Builder::codeSha256)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CodeSha256").build()).build(); private static final SdkField VERSION_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Version") .getter(getter(GetFunctionConfigurationResponse::version)).setter(setter(Builder::version)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Version").build()).build(); private static final SdkField VPC_CONFIG_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("VpcConfig") .getter(getter(GetFunctionConfigurationResponse::vpcConfig)).setter(setter(Builder::vpcConfig)) .constructor(VpcConfigResponse::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("VpcConfig").build()).build(); private static final SdkField DEAD_LETTER_CONFIG_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DeadLetterConfig") .getter(getter(GetFunctionConfigurationResponse::deadLetterConfig)).setter(setter(Builder::deadLetterConfig)) .constructor(DeadLetterConfig::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DeadLetterConfig").build()).build(); private static final SdkField ENVIRONMENT_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("Environment") .getter(getter(GetFunctionConfigurationResponse::environment)).setter(setter(Builder::environment)) .constructor(EnvironmentResponse::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Environment").build()).build(); private static final SdkField KMS_KEY_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("KMSKeyArn").getter(getter(GetFunctionConfigurationResponse::kmsKeyArn)) .setter(setter(Builder::kmsKeyArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KMSKeyArn").build()).build(); private static final SdkField TRACING_CONFIG_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("TracingConfig") .getter(getter(GetFunctionConfigurationResponse::tracingConfig)).setter(setter(Builder::tracingConfig)) .constructor(TracingConfigResponse::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TracingConfig").build()).build(); private static final SdkField MASTER_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("MasterArn").getter(getter(GetFunctionConfigurationResponse::masterArn)) .setter(setter(Builder::masterArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MasterArn").build()).build(); private static final SdkField REVISION_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("RevisionId").getter(getter(GetFunctionConfigurationResponse::revisionId)) .setter(setter(Builder::revisionId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RevisionId").build()).build(); private static final SdkField> LAYERS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("Layers") .getter(getter(GetFunctionConfigurationResponse::layers)) .setter(setter(Builder::layers)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Layers").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(Layer::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField STATE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("State") .getter(getter(GetFunctionConfigurationResponse::stateAsString)).setter(setter(Builder::state)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("State").build()).build(); private static final SdkField STATE_REASON_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("StateReason").getter(getter(GetFunctionConfigurationResponse::stateReason)) .setter(setter(Builder::stateReason)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StateReason").build()).build(); private static final SdkField STATE_REASON_CODE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("StateReasonCode").getter(getter(GetFunctionConfigurationResponse::stateReasonCodeAsString)) .setter(setter(Builder::stateReasonCode)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StateReasonCode").build()).build(); private static final SdkField LAST_UPDATE_STATUS_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("LastUpdateStatus").getter(getter(GetFunctionConfigurationResponse::lastUpdateStatusAsString)) .setter(setter(Builder::lastUpdateStatus)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastUpdateStatus").build()).build(); private static final SdkField LAST_UPDATE_STATUS_REASON_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("LastUpdateStatusReason").getter(getter(GetFunctionConfigurationResponse::lastUpdateStatusReason)) .setter(setter(Builder::lastUpdateStatusReason)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastUpdateStatusReason").build()) .build(); private static final SdkField LAST_UPDATE_STATUS_REASON_CODE_FIELD = SdkField . builder(MarshallingType.STRING) .memberName("LastUpdateStatusReasonCode") .getter(getter(GetFunctionConfigurationResponse::lastUpdateStatusReasonCodeAsString)) .setter(setter(Builder::lastUpdateStatusReasonCode)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastUpdateStatusReasonCode").build()) .build(); private static final SdkField> FILE_SYSTEM_CONFIGS_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("FileSystemConfigs") .getter(getter(GetFunctionConfigurationResponse::fileSystemConfigs)) .setter(setter(Builder::fileSystemConfigs)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FileSystemConfigs").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(FileSystemConfig::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField PACKAGE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("PackageType").getter(getter(GetFunctionConfigurationResponse::packageTypeAsString)) .setter(setter(Builder::packageType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PackageType").build()).build(); private static final SdkField IMAGE_CONFIG_RESPONSE_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("ImageConfigResponse") .getter(getter(GetFunctionConfigurationResponse::imageConfigResponse)).setter(setter(Builder::imageConfigResponse)) .constructor(ImageConfigResponse::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ImageConfigResponse").build()) .build(); private static final SdkField SIGNING_PROFILE_VERSION_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("SigningProfileVersionArn").getter(getter(GetFunctionConfigurationResponse::signingProfileVersionArn)) .setter(setter(Builder::signingProfileVersionArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningProfileVersionArn").build()) .build(); private static final SdkField SIGNING_JOB_ARN_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("SigningJobArn").getter(getter(GetFunctionConfigurationResponse::signingJobArn)) .setter(setter(Builder::signingJobArn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SigningJobArn").build()).build(); private static final SdkField> ARCHITECTURES_FIELD = SdkField .> builder(MarshallingType.LIST) .memberName("Architectures") .getter(getter(GetFunctionConfigurationResponse::architecturesAsStrings)) .setter(setter(Builder::architecturesWithStrings)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Architectures").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.STRING) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField EPHEMERAL_STORAGE_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("EphemeralStorage") .getter(getter(GetFunctionConfigurationResponse::ephemeralStorage)).setter(setter(Builder::ephemeralStorage)) .constructor(EphemeralStorage::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EphemeralStorage").build()).build(); private static final SdkField SNAP_START_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("SnapStart") .getter(getter(GetFunctionConfigurationResponse::snapStart)).setter(setter(Builder::snapStart)) .constructor(SnapStartResponse::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SnapStart").build()).build(); private static final SdkField RUNTIME_VERSION_CONFIG_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("RuntimeVersionConfig") .getter(getter(GetFunctionConfigurationResponse::runtimeVersionConfig)).setter(setter(Builder::runtimeVersionConfig)) .constructor(RuntimeVersionConfig::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RuntimeVersionConfig").build()) .build(); private static final SdkField LOGGING_CONFIG_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("LoggingConfig") .getter(getter(GetFunctionConfigurationResponse::loggingConfig)).setter(setter(Builder::loggingConfig)) .constructor(LoggingConfig::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LoggingConfig").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(FUNCTION_NAME_FIELD, FUNCTION_ARN_FIELD, RUNTIME_FIELD, ROLE_FIELD, HANDLER_FIELD, CODE_SIZE_FIELD, DESCRIPTION_FIELD, TIMEOUT_FIELD, MEMORY_SIZE_FIELD, LAST_MODIFIED_FIELD, CODE_SHA256_FIELD, VERSION_FIELD, VPC_CONFIG_FIELD, DEAD_LETTER_CONFIG_FIELD, ENVIRONMENT_FIELD, KMS_KEY_ARN_FIELD, TRACING_CONFIG_FIELD, MASTER_ARN_FIELD, REVISION_ID_FIELD, LAYERS_FIELD, STATE_FIELD, STATE_REASON_FIELD, STATE_REASON_CODE_FIELD, LAST_UPDATE_STATUS_FIELD, LAST_UPDATE_STATUS_REASON_FIELD, LAST_UPDATE_STATUS_REASON_CODE_FIELD, FILE_SYSTEM_CONFIGS_FIELD, PACKAGE_TYPE_FIELD, IMAGE_CONFIG_RESPONSE_FIELD, SIGNING_PROFILE_VERSION_ARN_FIELD, SIGNING_JOB_ARN_FIELD, ARCHITECTURES_FIELD, EPHEMERAL_STORAGE_FIELD, SNAP_START_FIELD, RUNTIME_VERSION_CONFIG_FIELD, LOGGING_CONFIG_FIELD)); private final String functionName; private final String functionArn; private final String runtime; private final String role; private final String handler; private final Long codeSize; private final String description; private final Integer timeout; private final Integer memorySize; private final String lastModified; private final String codeSha256; private final String version; private final VpcConfigResponse vpcConfig; private final DeadLetterConfig deadLetterConfig; private final EnvironmentResponse environment; private final String kmsKeyArn; private final TracingConfigResponse tracingConfig; private final String masterArn; private final String revisionId; private final List layers; private final String state; private final String stateReason; private final String stateReasonCode; private final String lastUpdateStatus; private final String lastUpdateStatusReason; private final String lastUpdateStatusReasonCode; private final List fileSystemConfigs; private final String packageType; private final ImageConfigResponse imageConfigResponse; private final String signingProfileVersionArn; private final String signingJobArn; private final List architectures; private final EphemeralStorage ephemeralStorage; private final SnapStartResponse snapStart; private final RuntimeVersionConfig runtimeVersionConfig; private final LoggingConfig loggingConfig; private GetFunctionConfigurationResponse(BuilderImpl builder) { super(builder); this.functionName = builder.functionName; this.functionArn = builder.functionArn; this.runtime = builder.runtime; this.role = builder.role; this.handler = builder.handler; this.codeSize = builder.codeSize; this.description = builder.description; this.timeout = builder.timeout; this.memorySize = builder.memorySize; this.lastModified = builder.lastModified; this.codeSha256 = builder.codeSha256; this.version = builder.version; this.vpcConfig = builder.vpcConfig; this.deadLetterConfig = builder.deadLetterConfig; this.environment = builder.environment; this.kmsKeyArn = builder.kmsKeyArn; this.tracingConfig = builder.tracingConfig; this.masterArn = builder.masterArn; this.revisionId = builder.revisionId; this.layers = builder.layers; this.state = builder.state; this.stateReason = builder.stateReason; this.stateReasonCode = builder.stateReasonCode; this.lastUpdateStatus = builder.lastUpdateStatus; this.lastUpdateStatusReason = builder.lastUpdateStatusReason; this.lastUpdateStatusReasonCode = builder.lastUpdateStatusReasonCode; this.fileSystemConfigs = builder.fileSystemConfigs; this.packageType = builder.packageType; this.imageConfigResponse = builder.imageConfigResponse; this.signingProfileVersionArn = builder.signingProfileVersionArn; this.signingJobArn = builder.signingJobArn; this.architectures = builder.architectures; this.ephemeralStorage = builder.ephemeralStorage; this.snapStart = builder.snapStart; this.runtimeVersionConfig = builder.runtimeVersionConfig; this.loggingConfig = builder.loggingConfig; } /** *

* The name of the function. *

* * @return The name of the function. */ public final String functionName() { return functionName; } /** *

* The function's Amazon Resource Name (ARN). *

* * @return The function's Amazon Resource Name (ARN). */ public final String functionArn() { return functionArn; } /** *

* The identifier of the function's * runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results * in an error if you're deploying a function using a container image. *

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing * functions shortly after each runtime is deprecated. For more information, see Runtime use * after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #runtime} will * return {@link Runtime#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #runtimeAsString}. *

* * @return The identifier of the function's runtime. Runtime is * required if the deployment package is a .zip file archive. Specifying a runtime results in an error if * you're deploying a function using a container image.

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating * existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. * @see Runtime */ public final Runtime runtime() { return Runtime.fromValue(runtime); } /** *

* The identifier of the function's * runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results * in an error if you're deploying a function using a container image. *

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing * functions shortly after each runtime is deprecated. For more information, see Runtime use * after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #runtime} will * return {@link Runtime#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #runtimeAsString}. *

* * @return The identifier of the function's runtime. Runtime is * required if the deployment package is a .zip file archive. Specifying a runtime results in an error if * you're deploying a function using a container image.

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating * existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. * @see Runtime */ public final String runtimeAsString() { return runtime; } /** *

* The function's execution role. *

* * @return The function's execution role. */ public final String role() { return role; } /** *

* The function that Lambda calls to begin running your function. *

* * @return The function that Lambda calls to begin running your function. */ public final String handler() { return handler; } /** *

* The size of the function's deployment package, in bytes. *

* * @return The size of the function's deployment package, in bytes. */ public final Long codeSize() { return codeSize; } /** *

* The function's description. *

* * @return The function's description. */ public final String description() { return description; } /** *

* The amount of time in seconds that Lambda allows a function to run before stopping it. *

* * @return The amount of time in seconds that Lambda allows a function to run before stopping it. */ public final Integer timeout() { return timeout; } /** *

* The amount of memory available to the function at runtime. *

* * @return The amount of memory available to the function at runtime. */ public final Integer memorySize() { return memorySize; } /** *

* The date and time that the function was last updated, in ISO-8601 * format (YYYY-MM-DDThh:mm:ss.sTZD). *

* * @return The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). */ public final String lastModified() { return lastModified; } /** *

* The SHA256 hash of the function's deployment package. *

* * @return The SHA256 hash of the function's deployment package. */ public final String codeSha256() { return codeSha256; } /** *

* The version of the Lambda function. *

* * @return The version of the Lambda function. */ public final String version() { return version; } /** *

* The function's networking configuration. *

* * @return The function's networking configuration. */ public final VpcConfigResponse vpcConfig() { return vpcConfig; } /** *

* The function's dead letter queue. *

* * @return The function's dead letter queue. */ public final DeadLetterConfig deadLetterConfig() { return deadLetterConfig; } /** *

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

* * @return The function's environment variables. * Omitted from CloudTrail logs. */ public final EnvironmentResponse environment() { return environment; } /** *

* 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. *

* * @return 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. */ public final String kmsKeyArn() { return kmsKeyArn; } /** *

* The function's X-Ray tracing configuration. *

* * @return The function's X-Ray tracing configuration. */ public final TracingConfigResponse tracingConfig() { return tracingConfig; } /** *

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

* * @return For Lambda@Edge functions, the ARN of the main function. */ public final String masterArn() { return masterArn; } /** *

* The latest updated revision of the function or alias. *

* * @return The latest updated revision of the function or alias. */ public final String revisionId() { return revisionId; } /** * For responses, this returns true if the service returned a value for the Layers property. This DOES NOT check * that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is * useful because the SDK will never return a null collection or map, but you may need to differentiate between the * service returning nothing (or null) and the service returning an empty collection or map. For requests, this * returns true if a value for the property was specified in the request builder, and false if a value was not * specified. */ public final boolean hasLayers() { return layers != null && !(layers instanceof SdkAutoConstructList); } /** *

* The function's layers. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasLayers} method. *

* * @return The function's layers. */ public final List layers() { return layers; } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #state} will return * {@link State#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #stateAsString}. *

* * @return The current state of the function. When the state is Inactive, you can reactivate the * function by invoking it. * @see State */ public final State state() { return State.fromValue(state); } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #state} will return * {@link State#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #stateAsString}. *

* * @return The current state of the function. When the state is Inactive, you can reactivate the * function by invoking it. * @see State */ public final String stateAsString() { return state; } /** *

* The reason for the function's current state. *

* * @return The reason for the function's current state. */ public final String stateReason() { return stateReason; } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #stateReasonCode} * will return {@link StateReasonCode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #stateReasonCodeAsString}. *

* * @return The reason code for the function's current state. When the code is Creating, you can't * invoke or modify the function. * @see StateReasonCode */ public final StateReasonCode stateReasonCode() { return StateReasonCode.fromValue(stateReasonCode); } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #stateReasonCode} * will return {@link StateReasonCode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #stateReasonCodeAsString}. *

* * @return The reason code for the function's current state. When the code is Creating, you can't * invoke or modify the function. * @see StateReasonCode */ public final String stateReasonCodeAsString() { return stateReasonCode; } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #lastUpdateStatus} * will return {@link LastUpdateStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #lastUpdateStatusAsString}. *

* * @return The status of the last update that was performed on the function. This is first set to * Successful after function creation completes. * @see LastUpdateStatus */ public final LastUpdateStatus lastUpdateStatus() { return LastUpdateStatus.fromValue(lastUpdateStatus); } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #lastUpdateStatus} * will return {@link LastUpdateStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #lastUpdateStatusAsString}. *

* * @return The status of the last update that was performed on the function. This is first set to * Successful after function creation completes. * @see LastUpdateStatus */ public final String lastUpdateStatusAsString() { return lastUpdateStatus; } /** *

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

* * @return The reason for the last update that was performed on the function. */ public final String lastUpdateStatusReason() { return lastUpdateStatusReason; } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #lastUpdateStatusReasonCode} will return {@link LastUpdateStatusReasonCode#UNKNOWN_TO_SDK_VERSION}. The * raw value returned by the service is available from {@link #lastUpdateStatusReasonCodeAsString}. *

* * @return The reason code for the last update that was performed on the function. * @see LastUpdateStatusReasonCode */ public final LastUpdateStatusReasonCode lastUpdateStatusReasonCode() { return LastUpdateStatusReasonCode.fromValue(lastUpdateStatusReasonCode); } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #lastUpdateStatusReasonCode} will return {@link LastUpdateStatusReasonCode#UNKNOWN_TO_SDK_VERSION}. The * raw value returned by the service is available from {@link #lastUpdateStatusReasonCodeAsString}. *

* * @return The reason code for the last update that was performed on the function. * @see LastUpdateStatusReasonCode */ public final String lastUpdateStatusReasonCodeAsString() { return lastUpdateStatusReasonCode; } /** * For responses, this returns true if the service returned a value for the FileSystemConfigs property. This DOES * NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). * This is useful because the SDK will never return a null collection or map, but you may need to differentiate * between the service returning nothing (or null) and the service returning an empty collection or map. For * requests, this returns true if a value for the property was specified in the request builder, and false if a * value was not specified. */ public final boolean hasFileSystemConfigs() { return fileSystemConfigs != null && !(fileSystemConfigs instanceof SdkAutoConstructList); } /** *

* Connection settings for an Amazon EFS file system. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasFileSystemConfigs} method. *

* * @return Connection settings for an Amazon EFS file * system. */ public final List fileSystemConfigs() { return fileSystemConfigs; } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #packageType} will * return {@link PackageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #packageTypeAsString}. *

* * @return The type of deployment package. Set to Image for container image and set Zip * for .zip file archive. * @see PackageType */ public final PackageType packageType() { return PackageType.fromValue(packageType); } /** *

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

*

* If the service returns an enum value that is not available in the current SDK version, {@link #packageType} will * return {@link PackageType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #packageTypeAsString}. *

* * @return The type of deployment package. Set to Image for container image and set Zip * for .zip file archive. * @see PackageType */ public final String packageTypeAsString() { return packageType; } /** *

* The function's image configuration values. *

* * @return The function's image configuration values. */ public final ImageConfigResponse imageConfigResponse() { return imageConfigResponse; } /** *

* The ARN of the signing profile version. *

* * @return The ARN of the signing profile version. */ public final String signingProfileVersionArn() { return signingProfileVersionArn; } /** *

* The ARN of the signing job. *

* * @return The ARN of the signing job. */ public final String signingJobArn() { return signingJobArn; } /** *

* 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. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasArchitectures} method. *

* * @return 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. */ public final List architectures() { return ArchitecturesListCopier.copyStringToEnum(architectures); } /** * For responses, this returns true if the service returned a value for the Architectures property. This DOES NOT * check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). * This is useful because the SDK will never return a null collection or map, but you may need to differentiate * between the service returning nothing (or null) and the service returning an empty collection or map. For * requests, this returns true if a value for the property was specified in the request builder, and false if a * value was not specified. */ public final boolean hasArchitectures() { return architectures != null && !(architectures instanceof SdkAutoConstructList); } /** *

* 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. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasArchitectures} method. *

* * @return 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. */ public final List architecturesAsStrings() { return architectures; } /** *

* The size of the function's /tmp directory in MB. The default value is 512, but can be any whole * number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console). *

* * @return The size of the function's /tmp directory in MB. The default value is 512, but can be any * whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console). */ public final EphemeralStorage ephemeralStorage() { return ephemeralStorage; } /** *

* 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. *

* * @return 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. */ public final SnapStartResponse snapStart() { return snapStart; } /** *

* The ARN of the runtime and any errors that occured. *

* * @return The ARN of the runtime and any errors that occured. */ public final RuntimeVersionConfig runtimeVersionConfig() { return runtimeVersionConfig; } /** *

* The function's Amazon CloudWatch Logs configuration settings. *

* * @return The function's Amazon CloudWatch Logs configuration settings. */ public final LoggingConfig loggingConfig() { return loggingConfig; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(functionName()); hashCode = 31 * hashCode + Objects.hashCode(functionArn()); hashCode = 31 * hashCode + Objects.hashCode(runtimeAsString()); hashCode = 31 * hashCode + Objects.hashCode(role()); hashCode = 31 * hashCode + Objects.hashCode(handler()); hashCode = 31 * hashCode + Objects.hashCode(codeSize()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(timeout()); hashCode = 31 * hashCode + Objects.hashCode(memorySize()); hashCode = 31 * hashCode + Objects.hashCode(lastModified()); hashCode = 31 * hashCode + Objects.hashCode(codeSha256()); hashCode = 31 * hashCode + Objects.hashCode(version()); hashCode = 31 * hashCode + Objects.hashCode(vpcConfig()); hashCode = 31 * hashCode + Objects.hashCode(deadLetterConfig()); hashCode = 31 * hashCode + Objects.hashCode(environment()); hashCode = 31 * hashCode + Objects.hashCode(kmsKeyArn()); hashCode = 31 * hashCode + Objects.hashCode(tracingConfig()); hashCode = 31 * hashCode + Objects.hashCode(masterArn()); hashCode = 31 * hashCode + Objects.hashCode(revisionId()); hashCode = 31 * hashCode + Objects.hashCode(hasLayers() ? layers() : null); hashCode = 31 * hashCode + Objects.hashCode(stateAsString()); hashCode = 31 * hashCode + Objects.hashCode(stateReason()); hashCode = 31 * hashCode + Objects.hashCode(stateReasonCodeAsString()); hashCode = 31 * hashCode + Objects.hashCode(lastUpdateStatusAsString()); hashCode = 31 * hashCode + Objects.hashCode(lastUpdateStatusReason()); hashCode = 31 * hashCode + Objects.hashCode(lastUpdateStatusReasonCodeAsString()); hashCode = 31 * hashCode + Objects.hashCode(hasFileSystemConfigs() ? fileSystemConfigs() : null); hashCode = 31 * hashCode + Objects.hashCode(packageTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(imageConfigResponse()); hashCode = 31 * hashCode + Objects.hashCode(signingProfileVersionArn()); hashCode = 31 * hashCode + Objects.hashCode(signingJobArn()); hashCode = 31 * hashCode + Objects.hashCode(hasArchitectures() ? architecturesAsStrings() : null); hashCode = 31 * hashCode + Objects.hashCode(ephemeralStorage()); hashCode = 31 * hashCode + Objects.hashCode(snapStart()); hashCode = 31 * hashCode + Objects.hashCode(runtimeVersionConfig()); hashCode = 31 * hashCode + Objects.hashCode(loggingConfig()); return hashCode; } @Override public final boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GetFunctionConfigurationResponse)) { return false; } GetFunctionConfigurationResponse other = (GetFunctionConfigurationResponse) obj; return Objects.equals(functionName(), other.functionName()) && Objects.equals(functionArn(), other.functionArn()) && Objects.equals(runtimeAsString(), other.runtimeAsString()) && Objects.equals(role(), other.role()) && Objects.equals(handler(), other.handler()) && Objects.equals(codeSize(), other.codeSize()) && Objects.equals(description(), other.description()) && Objects.equals(timeout(), other.timeout()) && Objects.equals(memorySize(), other.memorySize()) && Objects.equals(lastModified(), other.lastModified()) && Objects.equals(codeSha256(), other.codeSha256()) && Objects.equals(version(), other.version()) && Objects.equals(vpcConfig(), other.vpcConfig()) && Objects.equals(deadLetterConfig(), other.deadLetterConfig()) && Objects.equals(environment(), other.environment()) && Objects.equals(kmsKeyArn(), other.kmsKeyArn()) && Objects.equals(tracingConfig(), other.tracingConfig()) && Objects.equals(masterArn(), other.masterArn()) && Objects.equals(revisionId(), other.revisionId()) && hasLayers() == other.hasLayers() && Objects.equals(layers(), other.layers()) && Objects.equals(stateAsString(), other.stateAsString()) && Objects.equals(stateReason(), other.stateReason()) && Objects.equals(stateReasonCodeAsString(), other.stateReasonCodeAsString()) && Objects.equals(lastUpdateStatusAsString(), other.lastUpdateStatusAsString()) && Objects.equals(lastUpdateStatusReason(), other.lastUpdateStatusReason()) && Objects.equals(lastUpdateStatusReasonCodeAsString(), other.lastUpdateStatusReasonCodeAsString()) && hasFileSystemConfigs() == other.hasFileSystemConfigs() && Objects.equals(fileSystemConfigs(), other.fileSystemConfigs()) && Objects.equals(packageTypeAsString(), other.packageTypeAsString()) && Objects.equals(imageConfigResponse(), other.imageConfigResponse()) && Objects.equals(signingProfileVersionArn(), other.signingProfileVersionArn()) && Objects.equals(signingJobArn(), other.signingJobArn()) && hasArchitectures() == other.hasArchitectures() && Objects.equals(architecturesAsStrings(), other.architecturesAsStrings()) && Objects.equals(ephemeralStorage(), other.ephemeralStorage()) && Objects.equals(snapStart(), other.snapStart()) && Objects.equals(runtimeVersionConfig(), other.runtimeVersionConfig()) && Objects.equals(loggingConfig(), other.loggingConfig()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("GetFunctionConfigurationResponse").add("FunctionName", functionName()) .add("FunctionArn", functionArn()).add("Runtime", runtimeAsString()).add("Role", role()) .add("Handler", handler()).add("CodeSize", codeSize()).add("Description", description()) .add("Timeout", timeout()).add("MemorySize", memorySize()).add("LastModified", lastModified()) .add("CodeSha256", codeSha256()).add("Version", version()).add("VpcConfig", vpcConfig()) .add("DeadLetterConfig", deadLetterConfig()).add("Environment", environment()).add("KMSKeyArn", kmsKeyArn()) .add("TracingConfig", tracingConfig()).add("MasterArn", masterArn()).add("RevisionId", revisionId()) .add("Layers", hasLayers() ? layers() : null).add("State", stateAsString()).add("StateReason", stateReason()) .add("StateReasonCode", stateReasonCodeAsString()).add("LastUpdateStatus", lastUpdateStatusAsString()) .add("LastUpdateStatusReason", lastUpdateStatusReason()) .add("LastUpdateStatusReasonCode", lastUpdateStatusReasonCodeAsString()) .add("FileSystemConfigs", hasFileSystemConfigs() ? fileSystemConfigs() : null) .add("PackageType", packageTypeAsString()).add("ImageConfigResponse", imageConfigResponse()) .add("SigningProfileVersionArn", signingProfileVersionArn()).add("SigningJobArn", signingJobArn()) .add("Architectures", hasArchitectures() ? architecturesAsStrings() : null) .add("EphemeralStorage", ephemeralStorage()).add("SnapStart", snapStart()) .add("RuntimeVersionConfig", runtimeVersionConfig()).add("LoggingConfig", loggingConfig()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "FunctionName": return Optional.ofNullable(clazz.cast(functionName())); case "FunctionArn": return Optional.ofNullable(clazz.cast(functionArn())); case "Runtime": return Optional.ofNullable(clazz.cast(runtimeAsString())); case "Role": return Optional.ofNullable(clazz.cast(role())); case "Handler": return Optional.ofNullable(clazz.cast(handler())); case "CodeSize": return Optional.ofNullable(clazz.cast(codeSize())); case "Description": return Optional.ofNullable(clazz.cast(description())); case "Timeout": return Optional.ofNullable(clazz.cast(timeout())); case "MemorySize": return Optional.ofNullable(clazz.cast(memorySize())); case "LastModified": return Optional.ofNullable(clazz.cast(lastModified())); case "CodeSha256": return Optional.ofNullable(clazz.cast(codeSha256())); case "Version": return Optional.ofNullable(clazz.cast(version())); case "VpcConfig": return Optional.ofNullable(clazz.cast(vpcConfig())); case "DeadLetterConfig": return Optional.ofNullable(clazz.cast(deadLetterConfig())); case "Environment": return Optional.ofNullable(clazz.cast(environment())); case "KMSKeyArn": return Optional.ofNullable(clazz.cast(kmsKeyArn())); case "TracingConfig": return Optional.ofNullable(clazz.cast(tracingConfig())); case "MasterArn": return Optional.ofNullable(clazz.cast(masterArn())); case "RevisionId": return Optional.ofNullable(clazz.cast(revisionId())); case "Layers": return Optional.ofNullable(clazz.cast(layers())); case "State": return Optional.ofNullable(clazz.cast(stateAsString())); case "StateReason": return Optional.ofNullable(clazz.cast(stateReason())); case "StateReasonCode": return Optional.ofNullable(clazz.cast(stateReasonCodeAsString())); case "LastUpdateStatus": return Optional.ofNullable(clazz.cast(lastUpdateStatusAsString())); case "LastUpdateStatusReason": return Optional.ofNullable(clazz.cast(lastUpdateStatusReason())); case "LastUpdateStatusReasonCode": return Optional.ofNullable(clazz.cast(lastUpdateStatusReasonCodeAsString())); case "FileSystemConfigs": return Optional.ofNullable(clazz.cast(fileSystemConfigs())); case "PackageType": return Optional.ofNullable(clazz.cast(packageTypeAsString())); case "ImageConfigResponse": return Optional.ofNullable(clazz.cast(imageConfigResponse())); case "SigningProfileVersionArn": return Optional.ofNullable(clazz.cast(signingProfileVersionArn())); case "SigningJobArn": return Optional.ofNullable(clazz.cast(signingJobArn())); case "Architectures": return Optional.ofNullable(clazz.cast(architecturesAsStrings())); case "EphemeralStorage": return Optional.ofNullable(clazz.cast(ephemeralStorage())); case "SnapStart": return Optional.ofNullable(clazz.cast(snapStart())); case "RuntimeVersionConfig": return Optional.ofNullable(clazz.cast(runtimeVersionConfig())); case "LoggingConfig": return Optional.ofNullable(clazz.cast(loggingConfig())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((GetFunctionConfigurationResponse) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder { /** *

* The name of the function. *

* * @param functionName * The name of the function. * @return Returns a reference to this object so that method calls can be chained together. */ Builder functionName(String functionName); /** *

* The function's Amazon Resource Name (ARN). *

* * @param functionArn * The function's Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ Builder functionArn(String functionArn); /** *

* The identifier of the function's * runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime * results in an error if you're deploying a function using a container image. *

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing * functions shortly after each runtime is deprecated. For more information, see Runtime * use after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. *

* * @param runtime * The identifier of the function's runtime. Runtime is * required if the deployment package is a .zip file archive. Specifying a runtime results in an error if * you're deploying a function using a container image.

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating * existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. * @see Runtime * @return Returns a reference to this object so that method calls can be chained together. * @see Runtime */ Builder runtime(String runtime); /** *

* The identifier of the function's * runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime * results in an error if you're deploying a function using a container image. *

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing * functions shortly after each runtime is deprecated. For more information, see Runtime * use after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. *

* * @param runtime * The identifier of the function's runtime. Runtime is * required if the deployment package is a .zip file archive. Specifying a runtime results in an error if * you're deploying a function using a container image.

*

* The following list includes deprecated runtimes. Lambda blocks creating new functions and updating * existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. *

*

* For a list of all currently supported runtimes, see Supported * runtimes. * @see Runtime * @return Returns a reference to this object so that method calls can be chained together. * @see Runtime */ Builder runtime(Runtime runtime); /** *

* The function's execution role. *

* * @param role * The function's execution role. * @return Returns a reference to this object so that method calls can be chained together. */ Builder role(String role); /** *

* The function that Lambda calls to begin running your function. *

* * @param handler * The function that Lambda calls to begin running your function. * @return Returns a reference to this object so that method calls can be chained together. */ Builder handler(String handler); /** *

* The size of the function's deployment package, in bytes. *

* * @param codeSize * The size of the function's deployment package, in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ Builder codeSize(Long codeSize); /** *

* The function's description. *

* * @param description * The function's description. * @return Returns a reference to this object so that method calls can be chained together. */ Builder description(String description); /** *

* The amount of time in seconds that Lambda allows a function to run before stopping it. *

* * @param timeout * The amount of time in seconds that Lambda allows a function to run before stopping it. * @return Returns a reference to this object so that method calls can be chained together. */ Builder timeout(Integer timeout); /** *

* The amount of memory available to the function at runtime. *

* * @param memorySize * The amount of memory available to the function at runtime. * @return Returns a reference to this object so that method calls can be chained together. */ Builder memorySize(Integer memorySize); /** *

* The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). *

* * @param lastModified * The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). * @return Returns a reference to this object so that method calls can be chained together. */ Builder lastModified(String lastModified); /** *

* The SHA256 hash of the function's deployment package. *

* * @param codeSha256 * The SHA256 hash of the function's deployment package. * @return Returns a reference to this object so that method calls can be chained together. */ Builder codeSha256(String codeSha256); /** *

* The version of the Lambda function. *

* * @param version * The version of the Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ Builder version(String version); /** *

* The function's networking configuration. *

* * @param vpcConfig * The function's networking configuration. * @return Returns a reference to this object so that method calls can be chained together. */ Builder vpcConfig(VpcConfigResponse vpcConfig); /** *

* The function's networking configuration. *

* This is a convenience method that creates an instance of the {@link VpcConfigResponse.Builder} avoiding the * need to create one manually via {@link VpcConfigResponse#builder()}. * *

* When the {@link Consumer} completes, {@link VpcConfigResponse.Builder#build()} is called immediately and its * result is passed to {@link #vpcConfig(VpcConfigResponse)}. * * @param vpcConfig * a consumer that will call methods on {@link VpcConfigResponse.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #vpcConfig(VpcConfigResponse) */ default Builder vpcConfig(Consumer vpcConfig) { return vpcConfig(VpcConfigResponse.builder().applyMutation(vpcConfig).build()); } /** *

* The function's dead letter queue. *

* * @param deadLetterConfig * The function's dead letter queue. * @return Returns a reference to this object so that method calls can be chained together. */ Builder deadLetterConfig(DeadLetterConfig deadLetterConfig); /** *

* The function's dead letter queue. *

* This is a convenience method that creates an instance of the {@link DeadLetterConfig.Builder} avoiding the * need to create one manually via {@link DeadLetterConfig#builder()}. * *

* When the {@link Consumer} completes, {@link DeadLetterConfig.Builder#build()} is called immediately and its * result is passed to {@link #deadLetterConfig(DeadLetterConfig)}. * * @param deadLetterConfig * a consumer that will call methods on {@link DeadLetterConfig.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #deadLetterConfig(DeadLetterConfig) */ default Builder deadLetterConfig(Consumer deadLetterConfig) { return deadLetterConfig(DeadLetterConfig.builder().applyMutation(deadLetterConfig).build()); } /** *

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

* * @param environment * The function's environment * variables. Omitted from CloudTrail logs. * @return Returns a reference to this object so that method calls can be chained together. */ Builder environment(EnvironmentResponse environment); /** *

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

* This is a convenience method that creates an instance of the {@link EnvironmentResponse.Builder} avoiding the * need to create one manually via {@link EnvironmentResponse#builder()}. * *

* When the {@link Consumer} completes, {@link EnvironmentResponse.Builder#build()} is called immediately and * its result is passed to {@link #environment(EnvironmentResponse)}. * * @param environment * a consumer that will call methods on {@link EnvironmentResponse.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #environment(EnvironmentResponse) */ default Builder environment(Consumer environment) { return environment(EnvironmentResponse.builder().applyMutation(environment).build()); } /** *

* 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder kmsKeyArn(String kmsKeyArn); /** *

* The function's X-Ray tracing configuration. *

* * @param tracingConfig * The function's X-Ray tracing configuration. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tracingConfig(TracingConfigResponse tracingConfig); /** *

* The function's X-Ray tracing configuration. *

* This is a convenience method that creates an instance of the {@link TracingConfigResponse.Builder} avoiding * the need to create one manually via {@link TracingConfigResponse#builder()}. * *

* When the {@link Consumer} completes, {@link TracingConfigResponse.Builder#build()} is called immediately and * its result is passed to {@link #tracingConfig(TracingConfigResponse)}. * * @param tracingConfig * a consumer that will call methods on {@link TracingConfigResponse.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #tracingConfig(TracingConfigResponse) */ default Builder tracingConfig(Consumer tracingConfig) { return tracingConfig(TracingConfigResponse.builder().applyMutation(tracingConfig).build()); } /** *

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

* * @param masterArn * For Lambda@Edge functions, the ARN of the main function. * @return Returns a reference to this object so that method calls can be chained together. */ Builder masterArn(String masterArn); /** *

* The latest updated revision of the function or alias. *

* * @param revisionId * The latest updated revision of the function or alias. * @return Returns a reference to this object so that method calls can be chained together. */ Builder revisionId(String revisionId); /** *

* The function's layers. *

* * @param layers * The function's layers. * @return Returns a reference to this object so that method calls can be chained together. */ Builder layers(Collection layers); /** *

* The function's layers. *

* * @param layers * The function's layers. * @return Returns a reference to this object so that method calls can be chained together. */ Builder layers(Layer... layers); /** *

* The function's layers. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.lambda.model.Layer.Builder} avoiding the need to create one manually * via {@link software.amazon.awssdk.services.lambda.model.Layer#builder()}. * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.lambda.model.Layer.Builder#build()} is called immediately and its * result is passed to {@link #layers(List)}. * * @param layers * a consumer that will call methods on * {@link software.amazon.awssdk.services.lambda.model.Layer.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #layers(java.util.Collection) */ Builder layers(Consumer... layers); /** *

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

* * @param state * The current state of the function. When the state is Inactive, you can reactivate the * function by invoking it. * @see State * @return Returns a reference to this object so that method calls can be chained together. * @see State */ Builder state(String state); /** *

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

* * @param state * The current state of the function. When the state is Inactive, you can reactivate the * function by invoking it. * @see State * @return Returns a reference to this object so that method calls can be chained together. * @see State */ Builder state(State state); /** *

* The reason for the function's current state. *

* * @param stateReason * The reason for the function's current state. * @return Returns a reference to this object so that method calls can be chained together. */ Builder stateReason(String stateReason); /** *

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

* * @param stateReasonCode * The reason code for the function's current state. When the code is Creating, you can't * invoke or modify the function. * @see StateReasonCode * @return Returns a reference to this object so that method calls can be chained together. * @see StateReasonCode */ Builder stateReasonCode(String stateReasonCode); /** *

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

* * @param stateReasonCode * The reason code for the function's current state. When the code is Creating, you can't * invoke or modify the function. * @see StateReasonCode * @return Returns a reference to this object so that method calls can be chained together. * @see StateReasonCode */ Builder stateReasonCode(StateReasonCode stateReasonCode); /** *

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

* * @param lastUpdateStatus * The status of the last update that was performed on the function. This is first set to * Successful after function creation completes. * @see LastUpdateStatus * @return Returns a reference to this object so that method calls can be chained together. * @see LastUpdateStatus */ Builder lastUpdateStatus(String lastUpdateStatus); /** *

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

* * @param lastUpdateStatus * The status of the last update that was performed on the function. This is first set to * Successful after function creation completes. * @see LastUpdateStatus * @return Returns a reference to this object so that method calls can be chained together. * @see LastUpdateStatus */ Builder lastUpdateStatus(LastUpdateStatus lastUpdateStatus); /** *

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

* * @param lastUpdateStatusReason * The reason for the last update that was performed on the function. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lastUpdateStatusReason(String lastUpdateStatusReason); /** *

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

* * @param lastUpdateStatusReasonCode * The reason code for the last update that was performed on the function. * @see LastUpdateStatusReasonCode * @return Returns a reference to this object so that method calls can be chained together. * @see LastUpdateStatusReasonCode */ Builder lastUpdateStatusReasonCode(String lastUpdateStatusReasonCode); /** *

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

* * @param lastUpdateStatusReasonCode * The reason code for the last update that was performed on the function. * @see LastUpdateStatusReasonCode * @return Returns a reference to this object so that method calls can be chained together. * @see LastUpdateStatusReasonCode */ Builder lastUpdateStatusReasonCode(LastUpdateStatusReasonCode lastUpdateStatusReasonCode); /** *

* Connection settings for an Amazon EFS file system. *

* * @param fileSystemConfigs * Connection settings for an Amazon EFS file * system. * @return Returns a reference to this object so that method calls can be chained together. */ Builder fileSystemConfigs(Collection fileSystemConfigs); /** *

* Connection settings for an Amazon EFS file system. *

* * @param fileSystemConfigs * Connection settings for an Amazon EFS file * system. * @return Returns a reference to this object so that method calls can be chained together. */ Builder fileSystemConfigs(FileSystemConfig... fileSystemConfigs); /** *

* Connection settings for an Amazon EFS file system. *

* This is a convenience method that creates an instance of the * {@link software.amazon.awssdk.services.lambda.model.FileSystemConfig.Builder} avoiding the need to create one * manually via {@link software.amazon.awssdk.services.lambda.model.FileSystemConfig#builder()}. * *

* When the {@link Consumer} completes, * {@link software.amazon.awssdk.services.lambda.model.FileSystemConfig.Builder#build()} is called immediately * and its result is passed to {@link #fileSystemConfigs(List)}. * * @param fileSystemConfigs * a consumer that will call methods on * {@link software.amazon.awssdk.services.lambda.model.FileSystemConfig.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #fileSystemConfigs(java.util.Collection) */ Builder fileSystemConfigs(Consumer... fileSystemConfigs); /** *

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

* * @param packageType * The type of deployment package. Set to Image for container image and set Zip * for .zip file archive. * @see PackageType * @return Returns a reference to this object so that method calls can be chained together. * @see PackageType */ Builder packageType(String packageType); /** *

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

* * @param packageType * The type of deployment package. Set to Image for container image and set Zip * for .zip file archive. * @see PackageType * @return Returns a reference to this object so that method calls can be chained together. * @see PackageType */ Builder packageType(PackageType packageType); /** *

* The function's image configuration values. *

* * @param imageConfigResponse * The function's image configuration values. * @return Returns a reference to this object so that method calls can be chained together. */ Builder imageConfigResponse(ImageConfigResponse imageConfigResponse); /** *

* The function's image configuration values. *

* This is a convenience method that creates an instance of the {@link ImageConfigResponse.Builder} avoiding the * need to create one manually via {@link ImageConfigResponse#builder()}. * *

* When the {@link Consumer} completes, {@link ImageConfigResponse.Builder#build()} is called immediately and * its result is passed to {@link #imageConfigResponse(ImageConfigResponse)}. * * @param imageConfigResponse * a consumer that will call methods on {@link ImageConfigResponse.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #imageConfigResponse(ImageConfigResponse) */ default Builder imageConfigResponse(Consumer imageConfigResponse) { return imageConfigResponse(ImageConfigResponse.builder().applyMutation(imageConfigResponse).build()); } /** *

* The ARN of the signing profile version. *

* * @param signingProfileVersionArn * The ARN of the signing profile version. * @return Returns a reference to this object so that method calls can be chained together. */ Builder signingProfileVersionArn(String signingProfileVersionArn); /** *

* The ARN of the signing job. *

* * @param signingJobArn * The ARN of the signing job. * @return Returns a reference to this object so that method calls can be chained together. */ Builder signingJobArn(String signingJobArn); /** *

* 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder architecturesWithStrings(Collection 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder architecturesWithStrings(String... 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder architectures(Collection 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder architectures(Architecture... architectures); /** *

* The size of the function's /tmp directory in MB. The default value is 512, but can be any whole * number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console). *

* * @param ephemeralStorage * The size of the function's /tmp directory in MB. The default value is 512, but can be any * whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console). * @return Returns a reference to this object so that method calls can be chained together. */ Builder ephemeralStorage(EphemeralStorage ephemeralStorage); /** *

* The size of the function's /tmp directory in MB. The default value is 512, but can be any whole * number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console). *

* This is a convenience method that creates an instance of the {@link EphemeralStorage.Builder} avoiding the * need to create one manually via {@link EphemeralStorage#builder()}. * *

* When the {@link Consumer} completes, {@link EphemeralStorage.Builder#build()} is called immediately and its * result is passed to {@link #ephemeralStorage(EphemeralStorage)}. * * @param ephemeralStorage * a consumer that will call methods on {@link EphemeralStorage.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ephemeralStorage(EphemeralStorage) */ default Builder ephemeralStorage(Consumer ephemeralStorage) { return ephemeralStorage(EphemeralStorage.builder().applyMutation(ephemeralStorage).build()); } /** *

* 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder snapStart(SnapStartResponse 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. *

* This is a convenience method that creates an instance of the {@link SnapStartResponse.Builder} avoiding the * need to create one manually via {@link SnapStartResponse#builder()}. * *

* When the {@link Consumer} completes, {@link SnapStartResponse.Builder#build()} is called immediately and its * result is passed to {@link #snapStart(SnapStartResponse)}. * * @param snapStart * a consumer that will call methods on {@link SnapStartResponse.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #snapStart(SnapStartResponse) */ default Builder snapStart(Consumer snapStart) { return snapStart(SnapStartResponse.builder().applyMutation(snapStart).build()); } /** *

* The ARN of the runtime and any errors that occured. *

* * @param runtimeVersionConfig * The ARN of the runtime and any errors that occured. * @return Returns a reference to this object so that method calls can be chained together. */ Builder runtimeVersionConfig(RuntimeVersionConfig runtimeVersionConfig); /** *

* The ARN of the runtime and any errors that occured. *

* This is a convenience method that creates an instance of the {@link RuntimeVersionConfig.Builder} avoiding * the need to create one manually via {@link RuntimeVersionConfig#builder()}. * *

* When the {@link Consumer} completes, {@link RuntimeVersionConfig.Builder#build()} is called immediately and * its result is passed to {@link #runtimeVersionConfig(RuntimeVersionConfig)}. * * @param runtimeVersionConfig * a consumer that will call methods on {@link RuntimeVersionConfig.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #runtimeVersionConfig(RuntimeVersionConfig) */ default Builder runtimeVersionConfig(Consumer runtimeVersionConfig) { return runtimeVersionConfig(RuntimeVersionConfig.builder().applyMutation(runtimeVersionConfig).build()); } /** *

* The function's Amazon CloudWatch Logs configuration settings. *

* * @param loggingConfig * The function's Amazon CloudWatch Logs configuration settings. * @return Returns a reference to this object so that method calls can be chained together. */ Builder loggingConfig(LoggingConfig loggingConfig); /** *

* The function's Amazon CloudWatch Logs configuration settings. *

* This is a convenience method that creates an instance of the {@link LoggingConfig.Builder} avoiding the need * to create one manually via {@link LoggingConfig#builder()}. * *

* When the {@link Consumer} completes, {@link LoggingConfig.Builder#build()} is called immediately and its * result is passed to {@link #loggingConfig(LoggingConfig)}. * * @param loggingConfig * a consumer that will call methods on {@link LoggingConfig.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #loggingConfig(LoggingConfig) */ default Builder loggingConfig(Consumer loggingConfig) { return loggingConfig(LoggingConfig.builder().applyMutation(loggingConfig).build()); } } static final class BuilderImpl extends LambdaResponse.BuilderImpl implements Builder { private String functionName; private String functionArn; private String runtime; private String role; private String handler; private Long codeSize; private String description; private Integer timeout; private Integer memorySize; private String lastModified; private String codeSha256; private String version; private VpcConfigResponse vpcConfig; private DeadLetterConfig deadLetterConfig; private EnvironmentResponse environment; private String kmsKeyArn; private TracingConfigResponse tracingConfig; private String masterArn; private String revisionId; private List layers = DefaultSdkAutoConstructList.getInstance(); private String state; private String stateReason; private String stateReasonCode; private String lastUpdateStatus; private String lastUpdateStatusReason; private String lastUpdateStatusReasonCode; private List fileSystemConfigs = DefaultSdkAutoConstructList.getInstance(); private String packageType; private ImageConfigResponse imageConfigResponse; private String signingProfileVersionArn; private String signingJobArn; private List architectures = DefaultSdkAutoConstructList.getInstance(); private EphemeralStorage ephemeralStorage; private SnapStartResponse snapStart; private RuntimeVersionConfig runtimeVersionConfig; private LoggingConfig loggingConfig; private BuilderImpl() { } private BuilderImpl(GetFunctionConfigurationResponse model) { super(model); functionName(model.functionName); functionArn(model.functionArn); runtime(model.runtime); role(model.role); handler(model.handler); codeSize(model.codeSize); description(model.description); timeout(model.timeout); memorySize(model.memorySize); lastModified(model.lastModified); codeSha256(model.codeSha256); version(model.version); vpcConfig(model.vpcConfig); deadLetterConfig(model.deadLetterConfig); environment(model.environment); kmsKeyArn(model.kmsKeyArn); tracingConfig(model.tracingConfig); masterArn(model.masterArn); revisionId(model.revisionId); layers(model.layers); state(model.state); stateReason(model.stateReason); stateReasonCode(model.stateReasonCode); lastUpdateStatus(model.lastUpdateStatus); lastUpdateStatusReason(model.lastUpdateStatusReason); lastUpdateStatusReasonCode(model.lastUpdateStatusReasonCode); fileSystemConfigs(model.fileSystemConfigs); packageType(model.packageType); imageConfigResponse(model.imageConfigResponse); signingProfileVersionArn(model.signingProfileVersionArn); signingJobArn(model.signingJobArn); architecturesWithStrings(model.architectures); ephemeralStorage(model.ephemeralStorage); snapStart(model.snapStart); runtimeVersionConfig(model.runtimeVersionConfig); loggingConfig(model.loggingConfig); } public final String getFunctionName() { return functionName; } public final void setFunctionName(String functionName) { this.functionName = functionName; } @Override public final Builder functionName(String functionName) { this.functionName = functionName; return this; } public final String getFunctionArn() { return functionArn; } public final void setFunctionArn(String functionArn) { this.functionArn = functionArn; } @Override public final Builder functionArn(String functionArn) { this.functionArn = functionArn; return this; } public final String getRuntime() { return runtime; } public final void setRuntime(String runtime) { this.runtime = runtime; } @Override public final Builder runtime(String runtime) { this.runtime = runtime; return this; } @Override public final Builder runtime(Runtime runtime) { this.runtime(runtime == null ? null : runtime.toString()); return this; } public final String getRole() { return role; } public final void setRole(String role) { this.role = role; } @Override public final Builder role(String role) { this.role = role; return this; } public final String getHandler() { return handler; } public final void setHandler(String handler) { this.handler = handler; } @Override public final Builder handler(String handler) { this.handler = handler; return this; } public final Long getCodeSize() { return codeSize; } public final void setCodeSize(Long codeSize) { this.codeSize = codeSize; } @Override public final Builder codeSize(Long codeSize) { this.codeSize = codeSize; return this; } public final String getDescription() { return description; } public final void setDescription(String description) { this.description = description; } @Override public final Builder description(String description) { this.description = description; return this; } public final Integer getTimeout() { return timeout; } public final void setTimeout(Integer timeout) { this.timeout = timeout; } @Override public final Builder timeout(Integer timeout) { this.timeout = timeout; return this; } public final Integer getMemorySize() { return memorySize; } public final void setMemorySize(Integer memorySize) { this.memorySize = memorySize; } @Override public final Builder memorySize(Integer memorySize) { this.memorySize = memorySize; return this; } public final String getLastModified() { return lastModified; } public final void setLastModified(String lastModified) { this.lastModified = lastModified; } @Override public final Builder lastModified(String lastModified) { this.lastModified = lastModified; return this; } public final String getCodeSha256() { return codeSha256; } public final void setCodeSha256(String codeSha256) { this.codeSha256 = codeSha256; } @Override public final Builder codeSha256(String codeSha256) { this.codeSha256 = codeSha256; return this; } public final String getVersion() { return version; } public final void setVersion(String version) { this.version = version; } @Override public final Builder version(String version) { this.version = version; return this; } public final VpcConfigResponse.Builder getVpcConfig() { return vpcConfig != null ? vpcConfig.toBuilder() : null; } public final void setVpcConfig(VpcConfigResponse.BuilderImpl vpcConfig) { this.vpcConfig = vpcConfig != null ? vpcConfig.build() : null; } @Override public final Builder vpcConfig(VpcConfigResponse vpcConfig) { this.vpcConfig = vpcConfig; return this; } public final DeadLetterConfig.Builder getDeadLetterConfig() { return deadLetterConfig != null ? deadLetterConfig.toBuilder() : null; } public final void setDeadLetterConfig(DeadLetterConfig.BuilderImpl deadLetterConfig) { this.deadLetterConfig = deadLetterConfig != null ? deadLetterConfig.build() : null; } @Override public final Builder deadLetterConfig(DeadLetterConfig deadLetterConfig) { this.deadLetterConfig = deadLetterConfig; return this; } public final EnvironmentResponse.Builder getEnvironment() { return environment != null ? environment.toBuilder() : null; } public final void setEnvironment(EnvironmentResponse.BuilderImpl environment) { this.environment = environment != null ? environment.build() : null; } @Override public final Builder environment(EnvironmentResponse environment) { this.environment = environment; return this; } public final String getKmsKeyArn() { return kmsKeyArn; } public final void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } @Override public final Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } public final TracingConfigResponse.Builder getTracingConfig() { return tracingConfig != null ? tracingConfig.toBuilder() : null; } public final void setTracingConfig(TracingConfigResponse.BuilderImpl tracingConfig) { this.tracingConfig = tracingConfig != null ? tracingConfig.build() : null; } @Override public final Builder tracingConfig(TracingConfigResponse tracingConfig) { this.tracingConfig = tracingConfig; return this; } public final String getMasterArn() { return masterArn; } public final void setMasterArn(String masterArn) { this.masterArn = masterArn; } @Override public final Builder masterArn(String masterArn) { this.masterArn = masterArn; return this; } public final String getRevisionId() { return revisionId; } public final void setRevisionId(String revisionId) { this.revisionId = revisionId; } @Override public final Builder revisionId(String revisionId) { this.revisionId = revisionId; return this; } public final List getLayers() { List result = LayersReferenceListCopier.copyToBuilder(this.layers); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setLayers(Collection layers) { this.layers = LayersReferenceListCopier.copyFromBuilder(layers); } @Override public final Builder layers(Collection layers) { this.layers = LayersReferenceListCopier.copy(layers); return this; } @Override @SafeVarargs public final Builder layers(Layer... layers) { layers(Arrays.asList(layers)); return this; } @Override @SafeVarargs public final Builder layers(Consumer... layers) { layers(Stream.of(layers).map(c -> Layer.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } public final String getState() { return state; } public final void setState(String state) { this.state = state; } @Override public final Builder state(String state) { this.state = state; return this; } @Override public final Builder state(State state) { this.state(state == null ? null : state.toString()); return this; } public final String getStateReason() { return stateReason; } public final void setStateReason(String stateReason) { this.stateReason = stateReason; } @Override public final Builder stateReason(String stateReason) { this.stateReason = stateReason; return this; } public final String getStateReasonCode() { return stateReasonCode; } public final void setStateReasonCode(String stateReasonCode) { this.stateReasonCode = stateReasonCode; } @Override public final Builder stateReasonCode(String stateReasonCode) { this.stateReasonCode = stateReasonCode; return this; } @Override public final Builder stateReasonCode(StateReasonCode stateReasonCode) { this.stateReasonCode(stateReasonCode == null ? null : stateReasonCode.toString()); return this; } public final String getLastUpdateStatus() { return lastUpdateStatus; } public final void setLastUpdateStatus(String lastUpdateStatus) { this.lastUpdateStatus = lastUpdateStatus; } @Override public final Builder lastUpdateStatus(String lastUpdateStatus) { this.lastUpdateStatus = lastUpdateStatus; return this; } @Override public final Builder lastUpdateStatus(LastUpdateStatus lastUpdateStatus) { this.lastUpdateStatus(lastUpdateStatus == null ? null : lastUpdateStatus.toString()); return this; } public final String getLastUpdateStatusReason() { return lastUpdateStatusReason; } public final void setLastUpdateStatusReason(String lastUpdateStatusReason) { this.lastUpdateStatusReason = lastUpdateStatusReason; } @Override public final Builder lastUpdateStatusReason(String lastUpdateStatusReason) { this.lastUpdateStatusReason = lastUpdateStatusReason; return this; } public final String getLastUpdateStatusReasonCode() { return lastUpdateStatusReasonCode; } public final void setLastUpdateStatusReasonCode(String lastUpdateStatusReasonCode) { this.lastUpdateStatusReasonCode = lastUpdateStatusReasonCode; } @Override public final Builder lastUpdateStatusReasonCode(String lastUpdateStatusReasonCode) { this.lastUpdateStatusReasonCode = lastUpdateStatusReasonCode; return this; } @Override public final Builder lastUpdateStatusReasonCode(LastUpdateStatusReasonCode lastUpdateStatusReasonCode) { this.lastUpdateStatusReasonCode(lastUpdateStatusReasonCode == null ? null : lastUpdateStatusReasonCode.toString()); return this; } public final List getFileSystemConfigs() { List result = FileSystemConfigListCopier.copyToBuilder(this.fileSystemConfigs); if (result instanceof SdkAutoConstructList) { return null; } return result; } public final void setFileSystemConfigs(Collection fileSystemConfigs) { this.fileSystemConfigs = FileSystemConfigListCopier.copyFromBuilder(fileSystemConfigs); } @Override public final Builder fileSystemConfigs(Collection fileSystemConfigs) { this.fileSystemConfigs = FileSystemConfigListCopier.copy(fileSystemConfigs); return this; } @Override @SafeVarargs public final Builder fileSystemConfigs(FileSystemConfig... fileSystemConfigs) { fileSystemConfigs(Arrays.asList(fileSystemConfigs)); return this; } @Override @SafeVarargs public final Builder fileSystemConfigs(Consumer... fileSystemConfigs) { fileSystemConfigs(Stream.of(fileSystemConfigs).map(c -> FileSystemConfig.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; } public final String getPackageType() { return packageType; } public final void setPackageType(String packageType) { this.packageType = packageType; } @Override public final Builder packageType(String packageType) { this.packageType = packageType; return this; } @Override public final Builder packageType(PackageType packageType) { this.packageType(packageType == null ? null : packageType.toString()); return this; } public final ImageConfigResponse.Builder getImageConfigResponse() { return imageConfigResponse != null ? imageConfigResponse.toBuilder() : null; } public final void setImageConfigResponse(ImageConfigResponse.BuilderImpl imageConfigResponse) { this.imageConfigResponse = imageConfigResponse != null ? imageConfigResponse.build() : null; } @Override public final Builder imageConfigResponse(ImageConfigResponse imageConfigResponse) { this.imageConfigResponse = imageConfigResponse; return this; } public final String getSigningProfileVersionArn() { return signingProfileVersionArn; } public final void setSigningProfileVersionArn(String signingProfileVersionArn) { this.signingProfileVersionArn = signingProfileVersionArn; } @Override public final Builder signingProfileVersionArn(String signingProfileVersionArn) { this.signingProfileVersionArn = signingProfileVersionArn; return this; } public final String getSigningJobArn() { return signingJobArn; } public final void setSigningJobArn(String signingJobArn) { this.signingJobArn = signingJobArn; } @Override public final Builder signingJobArn(String signingJobArn) { this.signingJobArn = signingJobArn; return this; } public final Collection getArchitectures() { if (architectures instanceof SdkAutoConstructList) { return null; } return architectures; } public final void setArchitectures(Collection architectures) { this.architectures = ArchitecturesListCopier.copy(architectures); } @Override public final Builder architecturesWithStrings(Collection architectures) { this.architectures = ArchitecturesListCopier.copy(architectures); return this; } @Override @SafeVarargs public final Builder architecturesWithStrings(String... architectures) { architecturesWithStrings(Arrays.asList(architectures)); return this; } @Override public final Builder architectures(Collection architectures) { this.architectures = ArchitecturesListCopier.copyEnumToString(architectures); return this; } @Override @SafeVarargs public final Builder architectures(Architecture... architectures) { architectures(Arrays.asList(architectures)); return this; } public final EphemeralStorage.Builder getEphemeralStorage() { return ephemeralStorage != null ? ephemeralStorage.toBuilder() : null; } public final void setEphemeralStorage(EphemeralStorage.BuilderImpl ephemeralStorage) { this.ephemeralStorage = ephemeralStorage != null ? ephemeralStorage.build() : null; } @Override public final Builder ephemeralStorage(EphemeralStorage ephemeralStorage) { this.ephemeralStorage = ephemeralStorage; return this; } public final SnapStartResponse.Builder getSnapStart() { return snapStart != null ? snapStart.toBuilder() : null; } public final void setSnapStart(SnapStartResponse.BuilderImpl snapStart) { this.snapStart = snapStart != null ? snapStart.build() : null; } @Override public final Builder snapStart(SnapStartResponse snapStart) { this.snapStart = snapStart; return this; } public final RuntimeVersionConfig.Builder getRuntimeVersionConfig() { return runtimeVersionConfig != null ? runtimeVersionConfig.toBuilder() : null; } public final void setRuntimeVersionConfig(RuntimeVersionConfig.BuilderImpl runtimeVersionConfig) { this.runtimeVersionConfig = runtimeVersionConfig != null ? runtimeVersionConfig.build() : null; } @Override public final Builder runtimeVersionConfig(RuntimeVersionConfig runtimeVersionConfig) { this.runtimeVersionConfig = runtimeVersionConfig; return this; } public final LoggingConfig.Builder getLoggingConfig() { return loggingConfig != null ? loggingConfig.toBuilder() : null; } public final void setLoggingConfig(LoggingConfig.BuilderImpl loggingConfig) { this.loggingConfig = loggingConfig != null ? loggingConfig.build() : null; } @Override public final Builder loggingConfig(LoggingConfig loggingConfig) { this.loggingConfig = loggingConfig; return this; } @Override public GetFunctionConfigurationResponse build() { return new GetFunctionConfigurationResponse(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy