com.amazonaws.services.lambda.model.FunctionConfiguration Maven / Gradle / Ivy
Show all versions of aws-java-sdk-lambda Show documentation
/*
* Copyright 2019-2024 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 com.amazonaws.services.lambda.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Details about a function's configuration.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FunctionConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* The name of the function.
*
*/
private String functionName;
/**
*
* The function's Amazon Resource Name (ARN).
*
*/
private String functionArn;
/**
*
* The identifier of the function's runtime. Runtime is required if the
* deployment package is a .zip file archive.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*/
private String runtime;
/**
*
* The function's execution role.
*
*/
private String role;
/**
*
* The function that Lambda calls to begin running your function.
*
*/
private String handler;
/**
*
* The size of the function's deployment package, in bytes.
*
*/
private Long codeSize;
/**
*
* The function's description.
*
*/
private String description;
/**
*
* The amount of time in seconds that Lambda allows a function to run before stopping it.
*
*/
private Integer timeout;
/**
*
* The amount of memory available to the function at runtime.
*
*/
private Integer memorySize;
/**
*
* The date and time that the function was last updated, in ISO-8601
* format (YYYY-MM-DDThh:mm:ss.sTZD).
*
*/
private String lastModified;
/**
*
* The SHA256 hash of the function's deployment package.
*
*/
private String codeSha256;
/**
*
* The version of the Lambda function.
*
*/
private String version;
/**
*
* The function's networking configuration.
*
*/
private VpcConfigResponse vpcConfig;
/**
*
* The function's dead letter queue.
*
*/
private DeadLetterConfig deadLetterConfig;
/**
*
* The function's environment
* variables. Omitted from CloudTrail logs.
*
*/
private EnvironmentResponse 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.
*
*/
private String kMSKeyArn;
/**
*
* The function's X-Ray tracing configuration.
*
*/
private TracingConfigResponse tracingConfig;
/**
*
* For Lambda@Edge functions, the ARN of the main function.
*
*/
private String masterArn;
/**
*
* The latest updated revision of the function or alias.
*
*/
private String revisionId;
/**
*
* The function's layers.
*
*/
private com.amazonaws.internal.SdkInternalList layers;
/**
*
* The current state of the function. When the state is Inactive
, you can reactivate the function by
* invoking it.
*
*/
private String state;
/**
*
* The reason for the function's current state.
*
*/
private String stateReason;
/**
*
* The reason code for the function's current state. When the code is Creating
, you can't invoke or
* modify the function.
*
*/
private String stateReasonCode;
/**
*
* The status of the last update that was performed on the function. This is first set to Successful
* after function creation completes.
*
*/
private String lastUpdateStatus;
/**
*
* The reason for the last update that was performed on the function.
*
*/
private String lastUpdateStatusReason;
/**
*
* The reason code for the last update that was performed on the function.
*
*/
private String lastUpdateStatusReasonCode;
/**
*
* Connection settings for an Amazon EFS file system.
*
*/
private com.amazonaws.internal.SdkInternalList fileSystemConfigs;
/**
*
* The type of deployment package. Set to Image
for container image and set Zip
for .zip
* file archive.
*
*/
private String packageType;
/**
*
* The function's image configuration values.
*
*/
private ImageConfigResponse imageConfigResponse;
/**
*
* The ARN of the signing profile version.
*
*/
private String signingProfileVersionArn;
/**
*
* The ARN of the signing job.
*
*/
private 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
.
*
*/
private com.amazonaws.internal.SdkInternalList 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).
*
*/
private EphemeralStorage 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.
*
*/
private SnapStartResponse snapStart;
/**
*
* The ARN of the runtime and any errors that occured.
*
*/
private RuntimeVersionConfig runtimeVersionConfig;
/**
*
* The function's Amazon CloudWatch Logs configuration settings.
*
*/
private LoggingConfig loggingConfig;
/**
*
* The name of the function.
*
*
* @param functionName
* The name of the function.
*/
public void setFunctionName(String functionName) {
this.functionName = functionName;
}
/**
*
* The name of the function.
*
*
* @return The name of the function.
*/
public String getFunctionName() {
return this.functionName;
}
/**
*
* 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.
*/
public FunctionConfiguration withFunctionName(String functionName) {
setFunctionName(functionName);
return this;
}
/**
*
* The function's Amazon Resource Name (ARN).
*
*
* @param functionArn
* The function's Amazon Resource Name (ARN).
*/
public void setFunctionArn(String functionArn) {
this.functionArn = functionArn;
}
/**
*
* The function's Amazon Resource Name (ARN).
*
*
* @return The function's Amazon Resource Name (ARN).
*/
public String getFunctionArn() {
return this.functionArn;
}
/**
*
* 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.
*/
public FunctionConfiguration withFunctionArn(String functionArn) {
setFunctionArn(functionArn);
return this;
}
/**
*
* The identifier of the function's runtime. Runtime is required if the
* deployment package is a .zip file archive.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param runtime
* The identifier of the function's runtime. Runtime is required
* if the deployment package is a .zip file archive.
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
* @see Runtime
*/
public void setRuntime(String runtime) {
this.runtime = runtime;
}
/**
*
* The identifier of the function's runtime. Runtime is required if the
* deployment package is a .zip file archive.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @return The identifier of the function's runtime. Runtime is required
* if the deployment package is a .zip file archive.
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
* @see Runtime
*/
public String getRuntime() {
return this.runtime;
}
/**
*
* The identifier of the function's runtime. Runtime is required if the
* deployment package is a .zip file archive.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param runtime
* The identifier of the function's runtime. Runtime is required
* if the deployment package is a .zip file archive.
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Runtime
*/
public FunctionConfiguration withRuntime(String runtime) {
setRuntime(runtime);
return this;
}
/**
*
* The identifier of the function's runtime. Runtime is required if the
* deployment package is a .zip file archive.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param runtime
* The identifier of the function's runtime. Runtime is required
* if the deployment package is a .zip file archive.
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
* @see Runtime
*/
public void setRuntime(Runtime runtime) {
withRuntime(runtime);
}
/**
*
* The identifier of the function's runtime. Runtime is required if the
* deployment package is a .zip file archive.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param runtime
* The identifier of the function's runtime. Runtime is required
* if the deployment package is a .zip file archive.
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Runtime
*/
public FunctionConfiguration withRuntime(Runtime runtime) {
this.runtime = runtime.toString();
return this;
}
/**
*
* The function's execution role.
*
*
* @param role
* The function's execution role.
*/
public void setRole(String role) {
this.role = role;
}
/**
*
* The function's execution role.
*
*
* @return The function's execution role.
*/
public String getRole() {
return this.role;
}
/**
*
* 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.
*/
public FunctionConfiguration withRole(String role) {
setRole(role);
return this;
}
/**
*
* The function that Lambda calls to begin running your function.
*
*
* @param handler
* The function that Lambda calls to begin running your function.
*/
public void setHandler(String handler) {
this.handler = handler;
}
/**
*
* The function that Lambda calls to begin running your function.
*
*
* @return The function that Lambda calls to begin running your function.
*/
public String getHandler() {
return this.handler;
}
/**
*
* 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.
*/
public FunctionConfiguration withHandler(String handler) {
setHandler(handler);
return this;
}
/**
*
* The size of the function's deployment package, in bytes.
*
*
* @param codeSize
* The size of the function's deployment package, in bytes.
*/
public void setCodeSize(Long codeSize) {
this.codeSize = codeSize;
}
/**
*
* The size of the function's deployment package, in bytes.
*
*
* @return The size of the function's deployment package, in bytes.
*/
public Long getCodeSize() {
return this.codeSize;
}
/**
*
* 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.
*/
public FunctionConfiguration withCodeSize(Long codeSize) {
setCodeSize(codeSize);
return this;
}
/**
*
* The function's description.
*
*
* @param description
* The function's description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The function's description.
*
*
* @return The function's description.
*/
public String getDescription() {
return this.description;
}
/**
*
* 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.
*/
public FunctionConfiguration withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* 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.
*/
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
/**
*
* 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 Integer getTimeout() {
return this.timeout;
}
/**
*
* 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.
*/
public FunctionConfiguration withTimeout(Integer timeout) {
setTimeout(timeout);
return this;
}
/**
*
* The amount of memory available to the function at runtime.
*
*
* @param memorySize
* The amount of memory available to the function at runtime.
*/
public void setMemorySize(Integer memorySize) {
this.memorySize = memorySize;
}
/**
*
* The amount of memory available to the function at runtime.
*
*
* @return The amount of memory available to the function at runtime.
*/
public Integer getMemorySize() {
return this.memorySize;
}
/**
*
* 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.
*/
public FunctionConfiguration withMemorySize(Integer memorySize) {
setMemorySize(memorySize);
return this;
}
/**
*
* 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).
*/
public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
/**
*
* 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 String getLastModified() {
return this.lastModified;
}
/**
*
* 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.
*/
public FunctionConfiguration withLastModified(String lastModified) {
setLastModified(lastModified);
return this;
}
/**
*
* The SHA256 hash of the function's deployment package.
*
*
* @param codeSha256
* The SHA256 hash of the function's deployment package.
*/
public void setCodeSha256(String codeSha256) {
this.codeSha256 = codeSha256;
}
/**
*
* The SHA256 hash of the function's deployment package.
*
*
* @return The SHA256 hash of the function's deployment package.
*/
public String getCodeSha256() {
return this.codeSha256;
}
/**
*
* 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.
*/
public FunctionConfiguration withCodeSha256(String codeSha256) {
setCodeSha256(codeSha256);
return this;
}
/**
*
* The version of the Lambda function.
*
*
* @param version
* The version of the Lambda function.
*/
public void setVersion(String version) {
this.version = version;
}
/**
*
* The version of the Lambda function.
*
*
* @return The version of the Lambda function.
*/
public String getVersion() {
return this.version;
}
/**
*
* 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.
*/
public FunctionConfiguration withVersion(String version) {
setVersion(version);
return this;
}
/**
*
* The function's networking configuration.
*
*
* @param vpcConfig
* The function's networking configuration.
*/
public void setVpcConfig(VpcConfigResponse vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* The function's networking configuration.
*
*
* @return The function's networking configuration.
*/
public VpcConfigResponse getVpcConfig() {
return this.vpcConfig;
}
/**
*
* 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.
*/
public FunctionConfiguration withVpcConfig(VpcConfigResponse vpcConfig) {
setVpcConfig(vpcConfig);
return this;
}
/**
*
* The function's dead letter queue.
*
*
* @param deadLetterConfig
* The function's dead letter queue.
*/
public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig) {
this.deadLetterConfig = deadLetterConfig;
}
/**
*
* The function's dead letter queue.
*
*
* @return The function's dead letter queue.
*/
public DeadLetterConfig getDeadLetterConfig() {
return this.deadLetterConfig;
}
/**
*
* 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.
*/
public FunctionConfiguration withDeadLetterConfig(DeadLetterConfig deadLetterConfig) {
setDeadLetterConfig(deadLetterConfig);
return this;
}
/**
*
* The function's environment
* variables. Omitted from CloudTrail logs.
*
*
* @param environment
* The function's environment variables.
* Omitted from CloudTrail logs.
*/
public void setEnvironment(EnvironmentResponse environment) {
this.environment = environment;
}
/**
*
* The function's environment
* variables. Omitted from CloudTrail logs.
*
*
* @return The function's environment variables.
* Omitted from CloudTrail logs.
*/
public EnvironmentResponse getEnvironment() {
return this.environment;
}
/**
*
* 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.
*/
public FunctionConfiguration withEnvironment(EnvironmentResponse environment) {
setEnvironment(environment);
return this;
}
/**
*
* The KMS key that's used to encrypt the function's environment variables. When Lambda SnapStart is activated,
* this key is also used to encrypt the function's snapshot. This key is returned only if you've configured a
* customer managed key.
*
*
* @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.
*/
public void setKMSKeyArn(String kMSKeyArn) {
this.kMSKeyArn = 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 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 String getKMSKeyArn() {
return this.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.
*
*
* @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.
*/
public FunctionConfiguration withKMSKeyArn(String kMSKeyArn) {
setKMSKeyArn(kMSKeyArn);
return this;
}
/**
*
* The function's X-Ray tracing configuration.
*
*
* @param tracingConfig
* The function's X-Ray tracing configuration.
*/
public void setTracingConfig(TracingConfigResponse tracingConfig) {
this.tracingConfig = tracingConfig;
}
/**
*
* The function's X-Ray tracing configuration.
*
*
* @return The function's X-Ray tracing configuration.
*/
public TracingConfigResponse getTracingConfig() {
return this.tracingConfig;
}
/**
*
* 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.
*/
public FunctionConfiguration withTracingConfig(TracingConfigResponse tracingConfig) {
setTracingConfig(tracingConfig);
return this;
}
/**
*
* For Lambda@Edge functions, the ARN of the main function.
*
*
* @param masterArn
* For Lambda@Edge functions, the ARN of the main function.
*/
public void setMasterArn(String masterArn) {
this.masterArn = masterArn;
}
/**
*
* For Lambda@Edge functions, the ARN of the main function.
*
*
* @return For Lambda@Edge functions, the ARN of the main function.
*/
public String getMasterArn() {
return this.masterArn;
}
/**
*
* 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.
*/
public FunctionConfiguration withMasterArn(String masterArn) {
setMasterArn(masterArn);
return this;
}
/**
*
* The latest updated revision of the function or alias.
*
*
* @param revisionId
* The latest updated revision of the function or alias.
*/
public void setRevisionId(String revisionId) {
this.revisionId = revisionId;
}
/**
*
* The latest updated revision of the function or alias.
*
*
* @return The latest updated revision of the function or alias.
*/
public String getRevisionId() {
return this.revisionId;
}
/**
*
* 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.
*/
public FunctionConfiguration withRevisionId(String revisionId) {
setRevisionId(revisionId);
return this;
}
/**
*
* The function's layers.
*
*
* @return The function's layers.
*/
public java.util.List getLayers() {
if (layers == null) {
layers = new com.amazonaws.internal.SdkInternalList();
}
return layers;
}
/**
*
* The function's layers.
*
*
* @param layers
* The function's layers.
*/
public void setLayers(java.util.Collection layers) {
if (layers == null) {
this.layers = null;
return;
}
this.layers = new com.amazonaws.internal.SdkInternalList(layers);
}
/**
*
* The function's layers.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setLayers(java.util.Collection)} or {@link #withLayers(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param layers
* The function's layers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FunctionConfiguration withLayers(Layer... layers) {
if (this.layers == null) {
setLayers(new com.amazonaws.internal.SdkInternalList(layers.length));
}
for (Layer ele : layers) {
this.layers.add(ele);
}
return this;
}
/**
*
* 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.
*/
public FunctionConfiguration withLayers(java.util.Collection layers) {
setLayers(layers);
return this;
}
/**
*
* 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
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The current state of the function. When the state is Inactive
, you can reactivate the function by
* invoking it.
*
*
* @return The current state of the function. When the state is Inactive
, you can reactivate the
* function by invoking it.
* @see State
*/
public String getState() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see State
*/
public FunctionConfiguration withState(String state) {
setState(state);
return this;
}
/**
*
* 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
*/
public void setState(State state) {
withState(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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see State
*/
public FunctionConfiguration withState(State state) {
this.state = state.toString();
return this;
}
/**
*
* The reason for the function's current state.
*
*
* @param stateReason
* The reason for the function's current state.
*/
public void setStateReason(String stateReason) {
this.stateReason = stateReason;
}
/**
*
* The reason for the function's current state.
*
*
* @return The reason for the function's current state.
*/
public String getStateReason() {
return this.stateReason;
}
/**
*
* 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.
*/
public FunctionConfiguration withStateReason(String stateReason) {
setStateReason(stateReason);
return this;
}
/**
*
* 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
*/
public void setStateReasonCode(String stateReasonCode) {
this.stateReasonCode = stateReasonCode;
}
/**
*
* The reason code for the function's current state. When the code is Creating
, you can't invoke or
* modify the function.
*
*
* @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 String getStateReasonCode() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StateReasonCode
*/
public FunctionConfiguration withStateReasonCode(String stateReasonCode) {
setStateReasonCode(stateReasonCode);
return this;
}
/**
*
* 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
*/
public void setStateReasonCode(StateReasonCode stateReasonCode) {
withStateReasonCode(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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StateReasonCode
*/
public FunctionConfiguration withStateReasonCode(StateReasonCode stateReasonCode) {
this.stateReasonCode = stateReasonCode.toString();
return this;
}
/**
*
* 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
*/
public void setLastUpdateStatus(String lastUpdateStatus) {
this.lastUpdateStatus = lastUpdateStatus;
}
/**
*
* The status of the last update that was performed on the function. This is first set to Successful
* after function creation completes.
*
*
* @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 String getLastUpdateStatus() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LastUpdateStatus
*/
public FunctionConfiguration withLastUpdateStatus(String lastUpdateStatus) {
setLastUpdateStatus(lastUpdateStatus);
return this;
}
/**
*
* 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
*/
public void setLastUpdateStatus(LastUpdateStatus lastUpdateStatus) {
withLastUpdateStatus(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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LastUpdateStatus
*/
public FunctionConfiguration withLastUpdateStatus(LastUpdateStatus lastUpdateStatus) {
this.lastUpdateStatus = lastUpdateStatus.toString();
return this;
}
/**
*
* 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.
*/
public void setLastUpdateStatusReason(String lastUpdateStatusReason) {
this.lastUpdateStatusReason = lastUpdateStatusReason;
}
/**
*
* 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 String getLastUpdateStatusReason() {
return this.lastUpdateStatusReason;
}
/**
*
* 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.
*/
public FunctionConfiguration withLastUpdateStatusReason(String lastUpdateStatusReason) {
setLastUpdateStatusReason(lastUpdateStatusReason);
return this;
}
/**
*
* 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
*/
public void setLastUpdateStatusReasonCode(String lastUpdateStatusReasonCode) {
this.lastUpdateStatusReasonCode = lastUpdateStatusReasonCode;
}
/**
*
* The reason code for the last update that was performed on the function.
*
*
* @return The reason code for the last update that was performed on the function.
* @see LastUpdateStatusReasonCode
*/
public String getLastUpdateStatusReasonCode() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LastUpdateStatusReasonCode
*/
public FunctionConfiguration withLastUpdateStatusReasonCode(String lastUpdateStatusReasonCode) {
setLastUpdateStatusReasonCode(lastUpdateStatusReasonCode);
return this;
}
/**
*
* 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
*/
public void setLastUpdateStatusReasonCode(LastUpdateStatusReasonCode lastUpdateStatusReasonCode) {
withLastUpdateStatusReasonCode(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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LastUpdateStatusReasonCode
*/
public FunctionConfiguration withLastUpdateStatusReasonCode(LastUpdateStatusReasonCode lastUpdateStatusReasonCode) {
this.lastUpdateStatusReasonCode = lastUpdateStatusReasonCode.toString();
return this;
}
/**
*
* Connection settings for an Amazon EFS file system.
*
*
* @return Connection settings for an Amazon EFS file
* system.
*/
public java.util.List getFileSystemConfigs() {
if (fileSystemConfigs == null) {
fileSystemConfigs = new com.amazonaws.internal.SdkInternalList();
}
return fileSystemConfigs;
}
/**
*
* Connection settings for an Amazon EFS file system.
*
*
* @param fileSystemConfigs
* Connection settings for an Amazon EFS file
* system.
*/
public void setFileSystemConfigs(java.util.Collection fileSystemConfigs) {
if (fileSystemConfigs == null) {
this.fileSystemConfigs = null;
return;
}
this.fileSystemConfigs = new com.amazonaws.internal.SdkInternalList(fileSystemConfigs);
}
/**
*
* Connection settings for an Amazon EFS file system.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFileSystemConfigs(java.util.Collection)} or {@link #withFileSystemConfigs(java.util.Collection)} if
* you want to override the existing values.
*
*
* @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.
*/
public FunctionConfiguration withFileSystemConfigs(FileSystemConfig... fileSystemConfigs) {
if (this.fileSystemConfigs == null) {
setFileSystemConfigs(new com.amazonaws.internal.SdkInternalList(fileSystemConfigs.length));
}
for (FileSystemConfig ele : fileSystemConfigs) {
this.fileSystemConfigs.add(ele);
}
return this;
}
/**
*
* 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.
*/
public FunctionConfiguration withFileSystemConfigs(java.util.Collection fileSystemConfigs) {
setFileSystemConfigs(fileSystemConfigs);
return this;
}
/**
*
* 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
*/
public void setPackageType(String packageType) {
this.packageType = packageType;
}
/**
*
* The type of deployment package. Set to Image
for container image and set Zip
for .zip
* file archive.
*
*
* @return The type of deployment package. Set to Image
for container image and set Zip
* for .zip file archive.
* @see PackageType
*/
public String getPackageType() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PackageType
*/
public FunctionConfiguration withPackageType(String packageType) {
setPackageType(packageType);
return this;
}
/**
*
* 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
*/
public void setPackageType(PackageType packageType) {
withPackageType(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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PackageType
*/
public FunctionConfiguration withPackageType(PackageType packageType) {
this.packageType = packageType.toString();
return this;
}
/**
*
* The function's image configuration values.
*
*
* @param imageConfigResponse
* The function's image configuration values.
*/
public void setImageConfigResponse(ImageConfigResponse imageConfigResponse) {
this.imageConfigResponse = imageConfigResponse;
}
/**
*
* The function's image configuration values.
*
*
* @return The function's image configuration values.
*/
public ImageConfigResponse getImageConfigResponse() {
return this.imageConfigResponse;
}
/**
*
* 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.
*/
public FunctionConfiguration withImageConfigResponse(ImageConfigResponse imageConfigResponse) {
setImageConfigResponse(imageConfigResponse);
return this;
}
/**
*
* The ARN of the signing profile version.
*
*
* @param signingProfileVersionArn
* The ARN of the signing profile version.
*/
public void setSigningProfileVersionArn(String signingProfileVersionArn) {
this.signingProfileVersionArn = signingProfileVersionArn;
}
/**
*
* The ARN of the signing profile version.
*
*
* @return The ARN of the signing profile version.
*/
public String getSigningProfileVersionArn() {
return this.signingProfileVersionArn;
}
/**
*
* 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.
*/
public FunctionConfiguration withSigningProfileVersionArn(String signingProfileVersionArn) {
setSigningProfileVersionArn(signingProfileVersionArn);
return this;
}
/**
*
* The ARN of the signing job.
*
*
* @param signingJobArn
* The ARN of the signing job.
*/
public void setSigningJobArn(String signingJobArn) {
this.signingJobArn = signingJobArn;
}
/**
*
* The ARN of the signing job.
*
*
* @return The ARN of the signing job.
*/
public String getSigningJobArn() {
return this.signingJobArn;
}
/**
*
* 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.
*/
public FunctionConfiguration withSigningJobArn(String signingJobArn) {
setSigningJobArn(signingJobArn);
return this;
}
/**
*
* The instruction set architecture that the function supports. Architecture is a string array with one of the valid
* values. The default architecture value is x86_64
.
*
*
* @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
.
* @see Architecture
*/
public java.util.List getArchitectures() {
if (architectures == null) {
architectures = new com.amazonaws.internal.SdkInternalList();
}
return 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
.
* @see Architecture
*/
public void setArchitectures(java.util.Collection architectures) {
if (architectures == null) {
this.architectures = null;
return;
}
this.architectures = new com.amazonaws.internal.SdkInternalList(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
.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setArchitectures(java.util.Collection)} or {@link #withArchitectures(java.util.Collection)} if you want
* to override the existing values.
*
*
* @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.
* @see Architecture
*/
public FunctionConfiguration withArchitectures(String... architectures) {
if (this.architectures == null) {
setArchitectures(new com.amazonaws.internal.SdkInternalList(architectures.length));
}
for (String ele : architectures) {
this.architectures.add(ele);
}
return this;
}
/**
*
* The instruction set architecture that the function supports. Architecture is a string array with one of the valid
* values. The default architecture value is x86_64
.
*
*
* @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.
* @see Architecture
*/
public FunctionConfiguration withArchitectures(java.util.Collection architectures) {
setArchitectures(architectures);
return this;
}
/**
*
* The instruction set architecture that the function supports. Architecture is a string array with one of the valid
* values. The default architecture value is x86_64
.
*
*
* @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.
* @see Architecture
*/
public FunctionConfiguration withArchitectures(Architecture... architectures) {
com.amazonaws.internal.SdkInternalList architecturesCopy = new com.amazonaws.internal.SdkInternalList(architectures.length);
for (Architecture value : architectures) {
architecturesCopy.add(value.toString());
}
if (getArchitectures() == null) {
setArchitectures(architecturesCopy);
} else {
getArchitectures().addAll(architecturesCopy);
}
return this;
}
/**
*
* 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).
*/
public void setEphemeralStorage(EphemeralStorage ephemeralStorage) {
this.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).
*
*
* @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 EphemeralStorage getEphemeralStorage() {
return this.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).
*
*
* @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.
*/
public FunctionConfiguration withEphemeralStorage(EphemeralStorage ephemeralStorage) {
setEphemeralStorage(ephemeralStorage);
return this;
}
/**
*
* Set ApplyOn
to PublishedVersions
to create a snapshot of the initialized execution
* environment when you publish a function version. For more information, see Improving startup performance with Lambda
* SnapStart.
*
*
* @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.
*/
public void setSnapStart(SnapStartResponse snapStart) {
this.snapStart = 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 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 SnapStartResponse getSnapStart() {
return this.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.
*
*
* @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.
*/
public FunctionConfiguration withSnapStart(SnapStartResponse snapStart) {
setSnapStart(snapStart);
return this;
}
/**
*
* The ARN of the runtime and any errors that occured.
*
*
* @param runtimeVersionConfig
* The ARN of the runtime and any errors that occured.
*/
public void setRuntimeVersionConfig(RuntimeVersionConfig runtimeVersionConfig) {
this.runtimeVersionConfig = runtimeVersionConfig;
}
/**
*
* The ARN of the runtime and any errors that occured.
*
*
* @return The ARN of the runtime and any errors that occured.
*/
public RuntimeVersionConfig getRuntimeVersionConfig() {
return this.runtimeVersionConfig;
}
/**
*
* 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.
*/
public FunctionConfiguration withRuntimeVersionConfig(RuntimeVersionConfig runtimeVersionConfig) {
setRuntimeVersionConfig(runtimeVersionConfig);
return this;
}
/**
*
* The function's Amazon CloudWatch Logs configuration settings.
*
*
* @param loggingConfig
* The function's Amazon CloudWatch Logs configuration settings.
*/
public void setLoggingConfig(LoggingConfig loggingConfig) {
this.loggingConfig = loggingConfig;
}
/**
*
* The function's Amazon CloudWatch Logs configuration settings.
*
*
* @return The function's Amazon CloudWatch Logs configuration settings.
*/
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
/**
*
* 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.
*/
public FunctionConfiguration withLoggingConfig(LoggingConfig loggingConfig) {
setLoggingConfig(loggingConfig);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getFunctionName() != null)
sb.append("FunctionName: ").append(getFunctionName()).append(",");
if (getFunctionArn() != null)
sb.append("FunctionArn: ").append(getFunctionArn()).append(",");
if (getRuntime() != null)
sb.append("Runtime: ").append(getRuntime()).append(",");
if (getRole() != null)
sb.append("Role: ").append(getRole()).append(",");
if (getHandler() != null)
sb.append("Handler: ").append(getHandler()).append(",");
if (getCodeSize() != null)
sb.append("CodeSize: ").append(getCodeSize()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getTimeout() != null)
sb.append("Timeout: ").append(getTimeout()).append(",");
if (getMemorySize() != null)
sb.append("MemorySize: ").append(getMemorySize()).append(",");
if (getLastModified() != null)
sb.append("LastModified: ").append(getLastModified()).append(",");
if (getCodeSha256() != null)
sb.append("CodeSha256: ").append(getCodeSha256()).append(",");
if (getVersion() != null)
sb.append("Version: ").append(getVersion()).append(",");
if (getVpcConfig() != null)
sb.append("VpcConfig: ").append(getVpcConfig()).append(",");
if (getDeadLetterConfig() != null)
sb.append("DeadLetterConfig: ").append(getDeadLetterConfig()).append(",");
if (getEnvironment() != null)
sb.append("Environment: ").append(getEnvironment()).append(",");
if (getKMSKeyArn() != null)
sb.append("KMSKeyArn: ").append(getKMSKeyArn()).append(",");
if (getTracingConfig() != null)
sb.append("TracingConfig: ").append(getTracingConfig()).append(",");
if (getMasterArn() != null)
sb.append("MasterArn: ").append(getMasterArn()).append(",");
if (getRevisionId() != null)
sb.append("RevisionId: ").append(getRevisionId()).append(",");
if (getLayers() != null)
sb.append("Layers: ").append(getLayers()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getStateReason() != null)
sb.append("StateReason: ").append(getStateReason()).append(",");
if (getStateReasonCode() != null)
sb.append("StateReasonCode: ").append(getStateReasonCode()).append(",");
if (getLastUpdateStatus() != null)
sb.append("LastUpdateStatus: ").append(getLastUpdateStatus()).append(",");
if (getLastUpdateStatusReason() != null)
sb.append("LastUpdateStatusReason: ").append(getLastUpdateStatusReason()).append(",");
if (getLastUpdateStatusReasonCode() != null)
sb.append("LastUpdateStatusReasonCode: ").append(getLastUpdateStatusReasonCode()).append(",");
if (getFileSystemConfigs() != null)
sb.append("FileSystemConfigs: ").append(getFileSystemConfigs()).append(",");
if (getPackageType() != null)
sb.append("PackageType: ").append(getPackageType()).append(",");
if (getImageConfigResponse() != null)
sb.append("ImageConfigResponse: ").append(getImageConfigResponse()).append(",");
if (getSigningProfileVersionArn() != null)
sb.append("SigningProfileVersionArn: ").append(getSigningProfileVersionArn()).append(",");
if (getSigningJobArn() != null)
sb.append("SigningJobArn: ").append(getSigningJobArn()).append(",");
if (getArchitectures() != null)
sb.append("Architectures: ").append(getArchitectures()).append(",");
if (getEphemeralStorage() != null)
sb.append("EphemeralStorage: ").append(getEphemeralStorage()).append(",");
if (getSnapStart() != null)
sb.append("SnapStart: ").append(getSnapStart()).append(",");
if (getRuntimeVersionConfig() != null)
sb.append("RuntimeVersionConfig: ").append(getRuntimeVersionConfig()).append(",");
if (getLoggingConfig() != null)
sb.append("LoggingConfig: ").append(getLoggingConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof FunctionConfiguration == false)
return false;
FunctionConfiguration other = (FunctionConfiguration) obj;
if (other.getFunctionName() == null ^ this.getFunctionName() == null)
return false;
if (other.getFunctionName() != null && other.getFunctionName().equals(this.getFunctionName()) == false)
return false;
if (other.getFunctionArn() == null ^ this.getFunctionArn() == null)
return false;
if (other.getFunctionArn() != null && other.getFunctionArn().equals(this.getFunctionArn()) == false)
return false;
if (other.getRuntime() == null ^ this.getRuntime() == null)
return false;
if (other.getRuntime() != null && other.getRuntime().equals(this.getRuntime()) == false)
return false;
if (other.getRole() == null ^ this.getRole() == null)
return false;
if (other.getRole() != null && other.getRole().equals(this.getRole()) == false)
return false;
if (other.getHandler() == null ^ this.getHandler() == null)
return false;
if (other.getHandler() != null && other.getHandler().equals(this.getHandler()) == false)
return false;
if (other.getCodeSize() == null ^ this.getCodeSize() == null)
return false;
if (other.getCodeSize() != null && other.getCodeSize().equals(this.getCodeSize()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getTimeout() == null ^ this.getTimeout() == null)
return false;
if (other.getTimeout() != null && other.getTimeout().equals(this.getTimeout()) == false)
return false;
if (other.getMemorySize() == null ^ this.getMemorySize() == null)
return false;
if (other.getMemorySize() != null && other.getMemorySize().equals(this.getMemorySize()) == false)
return false;
if (other.getLastModified() == null ^ this.getLastModified() == null)
return false;
if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == false)
return false;
if (other.getCodeSha256() == null ^ this.getCodeSha256() == null)
return false;
if (other.getCodeSha256() != null && other.getCodeSha256().equals(this.getCodeSha256()) == false)
return false;
if (other.getVersion() == null ^ this.getVersion() == null)
return false;
if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false)
return false;
if (other.getVpcConfig() == null ^ this.getVpcConfig() == null)
return false;
if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false)
return false;
if (other.getDeadLetterConfig() == null ^ this.getDeadLetterConfig() == null)
return false;
if (other.getDeadLetterConfig() != null && other.getDeadLetterConfig().equals(this.getDeadLetterConfig()) == false)
return false;
if (other.getEnvironment() == null ^ this.getEnvironment() == null)
return false;
if (other.getEnvironment() != null && other.getEnvironment().equals(this.getEnvironment()) == false)
return false;
if (other.getKMSKeyArn() == null ^ this.getKMSKeyArn() == null)
return false;
if (other.getKMSKeyArn() != null && other.getKMSKeyArn().equals(this.getKMSKeyArn()) == false)
return false;
if (other.getTracingConfig() == null ^ this.getTracingConfig() == null)
return false;
if (other.getTracingConfig() != null && other.getTracingConfig().equals(this.getTracingConfig()) == false)
return false;
if (other.getMasterArn() == null ^ this.getMasterArn() == null)
return false;
if (other.getMasterArn() != null && other.getMasterArn().equals(this.getMasterArn()) == false)
return false;
if (other.getRevisionId() == null ^ this.getRevisionId() == null)
return false;
if (other.getRevisionId() != null && other.getRevisionId().equals(this.getRevisionId()) == false)
return false;
if (other.getLayers() == null ^ this.getLayers() == null)
return false;
if (other.getLayers() != null && other.getLayers().equals(this.getLayers()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getStateReason() == null ^ this.getStateReason() == null)
return false;
if (other.getStateReason() != null && other.getStateReason().equals(this.getStateReason()) == false)
return false;
if (other.getStateReasonCode() == null ^ this.getStateReasonCode() == null)
return false;
if (other.getStateReasonCode() != null && other.getStateReasonCode().equals(this.getStateReasonCode()) == false)
return false;
if (other.getLastUpdateStatus() == null ^ this.getLastUpdateStatus() == null)
return false;
if (other.getLastUpdateStatus() != null && other.getLastUpdateStatus().equals(this.getLastUpdateStatus()) == false)
return false;
if (other.getLastUpdateStatusReason() == null ^ this.getLastUpdateStatusReason() == null)
return false;
if (other.getLastUpdateStatusReason() != null && other.getLastUpdateStatusReason().equals(this.getLastUpdateStatusReason()) == false)
return false;
if (other.getLastUpdateStatusReasonCode() == null ^ this.getLastUpdateStatusReasonCode() == null)
return false;
if (other.getLastUpdateStatusReasonCode() != null && other.getLastUpdateStatusReasonCode().equals(this.getLastUpdateStatusReasonCode()) == false)
return false;
if (other.getFileSystemConfigs() == null ^ this.getFileSystemConfigs() == null)
return false;
if (other.getFileSystemConfigs() != null && other.getFileSystemConfigs().equals(this.getFileSystemConfigs()) == false)
return false;
if (other.getPackageType() == null ^ this.getPackageType() == null)
return false;
if (other.getPackageType() != null && other.getPackageType().equals(this.getPackageType()) == false)
return false;
if (other.getImageConfigResponse() == null ^ this.getImageConfigResponse() == null)
return false;
if (other.getImageConfigResponse() != null && other.getImageConfigResponse().equals(this.getImageConfigResponse()) == false)
return false;
if (other.getSigningProfileVersionArn() == null ^ this.getSigningProfileVersionArn() == null)
return false;
if (other.getSigningProfileVersionArn() != null && other.getSigningProfileVersionArn().equals(this.getSigningProfileVersionArn()) == false)
return false;
if (other.getSigningJobArn() == null ^ this.getSigningJobArn() == null)
return false;
if (other.getSigningJobArn() != null && other.getSigningJobArn().equals(this.getSigningJobArn()) == false)
return false;
if (other.getArchitectures() == null ^ this.getArchitectures() == null)
return false;
if (other.getArchitectures() != null && other.getArchitectures().equals(this.getArchitectures()) == false)
return false;
if (other.getEphemeralStorage() == null ^ this.getEphemeralStorage() == null)
return false;
if (other.getEphemeralStorage() != null && other.getEphemeralStorage().equals(this.getEphemeralStorage()) == false)
return false;
if (other.getSnapStart() == null ^ this.getSnapStart() == null)
return false;
if (other.getSnapStart() != null && other.getSnapStart().equals(this.getSnapStart()) == false)
return false;
if (other.getRuntimeVersionConfig() == null ^ this.getRuntimeVersionConfig() == null)
return false;
if (other.getRuntimeVersionConfig() != null && other.getRuntimeVersionConfig().equals(this.getRuntimeVersionConfig()) == false)
return false;
if (other.getLoggingConfig() == null ^ this.getLoggingConfig() == null)
return false;
if (other.getLoggingConfig() != null && other.getLoggingConfig().equals(this.getLoggingConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFunctionName() == null) ? 0 : getFunctionName().hashCode());
hashCode = prime * hashCode + ((getFunctionArn() == null) ? 0 : getFunctionArn().hashCode());
hashCode = prime * hashCode + ((getRuntime() == null) ? 0 : getRuntime().hashCode());
hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode());
hashCode = prime * hashCode + ((getHandler() == null) ? 0 : getHandler().hashCode());
hashCode = prime * hashCode + ((getCodeSize() == null) ? 0 : getCodeSize().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getTimeout() == null) ? 0 : getTimeout().hashCode());
hashCode = prime * hashCode + ((getMemorySize() == null) ? 0 : getMemorySize().hashCode());
hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode());
hashCode = prime * hashCode + ((getCodeSha256() == null) ? 0 : getCodeSha256().hashCode());
hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode());
hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode());
hashCode = prime * hashCode + ((getDeadLetterConfig() == null) ? 0 : getDeadLetterConfig().hashCode());
hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode());
hashCode = prime * hashCode + ((getKMSKeyArn() == null) ? 0 : getKMSKeyArn().hashCode());
hashCode = prime * hashCode + ((getTracingConfig() == null) ? 0 : getTracingConfig().hashCode());
hashCode = prime * hashCode + ((getMasterArn() == null) ? 0 : getMasterArn().hashCode());
hashCode = prime * hashCode + ((getRevisionId() == null) ? 0 : getRevisionId().hashCode());
hashCode = prime * hashCode + ((getLayers() == null) ? 0 : getLayers().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode());
hashCode = prime * hashCode + ((getStateReasonCode() == null) ? 0 : getStateReasonCode().hashCode());
hashCode = prime * hashCode + ((getLastUpdateStatus() == null) ? 0 : getLastUpdateStatus().hashCode());
hashCode = prime * hashCode + ((getLastUpdateStatusReason() == null) ? 0 : getLastUpdateStatusReason().hashCode());
hashCode = prime * hashCode + ((getLastUpdateStatusReasonCode() == null) ? 0 : getLastUpdateStatusReasonCode().hashCode());
hashCode = prime * hashCode + ((getFileSystemConfigs() == null) ? 0 : getFileSystemConfigs().hashCode());
hashCode = prime * hashCode + ((getPackageType() == null) ? 0 : getPackageType().hashCode());
hashCode = prime * hashCode + ((getImageConfigResponse() == null) ? 0 : getImageConfigResponse().hashCode());
hashCode = prime * hashCode + ((getSigningProfileVersionArn() == null) ? 0 : getSigningProfileVersionArn().hashCode());
hashCode = prime * hashCode + ((getSigningJobArn() == null) ? 0 : getSigningJobArn().hashCode());
hashCode = prime * hashCode + ((getArchitectures() == null) ? 0 : getArchitectures().hashCode());
hashCode = prime * hashCode + ((getEphemeralStorage() == null) ? 0 : getEphemeralStorage().hashCode());
hashCode = prime * hashCode + ((getSnapStart() == null) ? 0 : getSnapStart().hashCode());
hashCode = prime * hashCode + ((getRuntimeVersionConfig() == null) ? 0 : getRuntimeVersionConfig().hashCode());
hashCode = prime * hashCode + ((getLoggingConfig() == null) ? 0 : getLoggingConfig().hashCode());
return hashCode;
}
@Override
public FunctionConfiguration clone() {
try {
return (FunctionConfiguration) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.lambda.model.transform.FunctionConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}