com.amazonaws.services.lambda.model.UpdateFunctionConfigurationRequest Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateFunctionConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the Lambda function.
*
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
* characters in length.
*
*/
private String functionName;
/**
*
* The Amazon Resource Name (ARN) of the function's execution role.
*
*/
private String role;
/**
*
* The name of the method within your code that Lambda calls to execute your function. The format includes the file
* name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
*
*/
private String handler;
/**
*
* A description of the function.
*
*/
private String description;
/**
*
* The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum
* allowed value is 900 seconds.
*
*/
private Integer timeout;
/**
*
* The amount of memory that your function has access to. Increasing the function's memory also increases its CPU
* allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
*
*/
private Integer memorySize;
/**
*
* For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC.
* When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more
* information, see VPC Settings.
*
*/
private VpcConfig vpcConfig;
/**
*
* Environment variables that are accessible from function code during execution.
*
*/
private Environment environment;
/**
*
* The identifier of the function's runtime.
*
*/
private String runtime;
/**
*
* A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
* they fail processing. For more information, see Dead Letter Queues.
*
*/
private DeadLetterConfig deadLetterConfig;
/**
*
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment
* variables. If it's not provided, AWS Lambda uses a default service key.
*
*/
private String kMSKeyArn;
/**
*
* Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
*
*/
private TracingConfig tracingConfig;
/**
*
* Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a
* function that has changed since you last read it.
*
*/
private String revisionId;
/**
*
* A list of function layers to
* add to the function's execution environment. Specify each layer by its ARN, including the version.
*
*/
private com.amazonaws.internal.SdkInternalList layers;
/**
*
* The name of the Lambda function.
*
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
* characters in length.
*
*
* @param functionName
* The name of the Lambda function.
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited
* to 64 characters in length.
*/
public void setFunctionName(String functionName) {
this.functionName = functionName;
}
/**
*
* The name of the Lambda function.
*
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
* characters in length.
*
*
* @return The name of the Lambda function.
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited
* to 64 characters in length.
*/
public String getFunctionName() {
return this.functionName;
}
/**
*
* The name of the Lambda function.
*
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64
* characters in length.
*
*
* @param functionName
* The name of the Lambda function.
*
* Name formats
*
*
* -
*
* Function name - my-function
.
*
*
* -
*
* Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
*
*
* -
*
* Partial ARN - 123456789012:function:my-function
.
*
*
*
*
* The length constraint applies only to the full ARN. If you specify only the function name, it is limited
* to 64 characters in length.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withFunctionName(String functionName) {
setFunctionName(functionName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the function's execution role.
*
*
* @param role
* The Amazon Resource Name (ARN) of the function's execution role.
*/
public void setRole(String role) {
this.role = role;
}
/**
*
* The Amazon Resource Name (ARN) of the function's execution role.
*
*
* @return The Amazon Resource Name (ARN) of the function's execution role.
*/
public String getRole() {
return this.role;
}
/**
*
* The Amazon Resource Name (ARN) of the function's execution role.
*
*
* @param role
* The Amazon Resource Name (ARN) of the function's execution role.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withRole(String role) {
setRole(role);
return this;
}
/**
*
* The name of the method within your code that Lambda calls to execute your function. The format includes the file
* name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
*
*
* @param handler
* The name of the method within your code that Lambda calls to execute your function. The format includes
* the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more
* information, see Programming Model.
*/
public void setHandler(String handler) {
this.handler = handler;
}
/**
*
* The name of the method within your code that Lambda calls to execute your function. The format includes the file
* name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
*
*
* @return The name of the method within your code that Lambda calls to execute your function. The format includes
* the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more
* information, see Programming Model.
*/
public String getHandler() {
return this.handler;
}
/**
*
* The name of the method within your code that Lambda calls to execute your function. The format includes the file
* name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
*
*
* @param handler
* The name of the method within your code that Lambda calls to execute your function. The format includes
* the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more
* information, see Programming Model.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withHandler(String handler) {
setHandler(handler);
return this;
}
/**
*
* A description of the function.
*
*
* @param description
* A description of the function.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description of the function.
*
*
* @return A description of the function.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description of the function.
*
*
* @param description
* A description of the function.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum
* allowed value is 900 seconds.
*
*
* @param timeout
* The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The
* maximum allowed value is 900 seconds.
*/
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
/**
*
* The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum
* allowed value is 900 seconds.
*
*
* @return The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The
* maximum allowed value is 900 seconds.
*/
public Integer getTimeout() {
return this.timeout;
}
/**
*
* The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum
* allowed value is 900 seconds.
*
*
* @param timeout
* The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The
* maximum allowed value is 900 seconds.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withTimeout(Integer timeout) {
setTimeout(timeout);
return this;
}
/**
*
* The amount of memory that your function has access to. Increasing the function's memory also increases its CPU
* allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
*
*
* @param memorySize
* The amount of memory that your function has access to. Increasing the function's memory also increases its
* CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
*/
public void setMemorySize(Integer memorySize) {
this.memorySize = memorySize;
}
/**
*
* The amount of memory that your function has access to. Increasing the function's memory also increases its CPU
* allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
*
*
* @return The amount of memory that your function has access to. Increasing the function's memory also increases
* its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
*/
public Integer getMemorySize() {
return this.memorySize;
}
/**
*
* The amount of memory that your function has access to. Increasing the function's memory also increases its CPU
* allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
*
*
* @param memorySize
* The amount of memory that your function has access to. Increasing the function's memory also increases its
* CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withMemorySize(Integer memorySize) {
setMemorySize(memorySize);
return this;
}
/**
*
* For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC.
* When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more
* information, see VPC Settings.
*
*
* @param vpcConfig
* For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the
* VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC.
* For more information, see VPC Settings.
*/
public void setVpcConfig(VpcConfig vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC.
* When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more
* information, see VPC Settings.
*
*
* @return For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the
* VPC. When you connect a function to a VPC, it can only access resources and the internet through that
* VPC. For more information, see VPC Settings.
*/
public VpcConfig getVpcConfig() {
return this.vpcConfig;
}
/**
*
* For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC.
* When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more
* information, see VPC Settings.
*
*
* @param vpcConfig
* For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the
* VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC.
* For more information, see VPC Settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withVpcConfig(VpcConfig vpcConfig) {
setVpcConfig(vpcConfig);
return this;
}
/**
*
* Environment variables that are accessible from function code during execution.
*
*
* @param environment
* Environment variables that are accessible from function code during execution.
*/
public void setEnvironment(Environment environment) {
this.environment = environment;
}
/**
*
* Environment variables that are accessible from function code during execution.
*
*
* @return Environment variables that are accessible from function code during execution.
*/
public Environment getEnvironment() {
return this.environment;
}
/**
*
* Environment variables that are accessible from function code during execution.
*
*
* @param environment
* Environment variables that are accessible from function code during execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withEnvironment(Environment environment) {
setEnvironment(environment);
return this;
}
/**
*
* The identifier of the function's runtime.
*
*
* @param runtime
* The identifier of the function's runtime.
* @see Runtime
*/
public void setRuntime(String runtime) {
this.runtime = runtime;
}
/**
*
* The identifier of the function's runtime.
*
*
* @return The identifier of the function's runtime.
* @see Runtime
*/
public String getRuntime() {
return this.runtime;
}
/**
*
* The identifier of the function's runtime.
*
*
* @param runtime
* The identifier of the function's runtime.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Runtime
*/
public UpdateFunctionConfigurationRequest withRuntime(String runtime) {
setRuntime(runtime);
return this;
}
/**
*
* The identifier of the function's runtime.
*
*
* @param runtime
* The identifier of the function's runtime.
* @see Runtime
*/
public void setRuntime(Runtime runtime) {
withRuntime(runtime);
}
/**
*
* The identifier of the function's runtime.
*
*
* @param runtime
* The identifier of the function's runtime.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Runtime
*/
public UpdateFunctionConfigurationRequest withRuntime(Runtime runtime) {
this.runtime = runtime.toString();
return this;
}
/**
*
* A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
* they fail processing. For more information, see Dead Letter Queues.
*
*
* @param deadLetterConfig
* A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
* when they fail processing. For more information, see Dead Letter Queues.
*/
public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig) {
this.deadLetterConfig = deadLetterConfig;
}
/**
*
* A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
* they fail processing. For more information, see Dead Letter Queues.
*
*
* @return A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous
* events when they fail processing. For more information, see Dead Letter Queues.
*/
public DeadLetterConfig getDeadLetterConfig() {
return this.deadLetterConfig;
}
/**
*
* A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
* they fail processing. For more information, see Dead Letter Queues.
*
*
* @param deadLetterConfig
* A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
* when they fail processing. For more information, see Dead Letter Queues.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withDeadLetterConfig(DeadLetterConfig deadLetterConfig) {
setDeadLetterConfig(deadLetterConfig);
return this;
}
/**
*
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment
* variables. If it's not provided, AWS Lambda uses a default service key.
*
*
* @param kMSKeyArn
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment
* variables. If it's not provided, AWS Lambda uses a default service key.
*/
public void setKMSKeyArn(String kMSKeyArn) {
this.kMSKeyArn = kMSKeyArn;
}
/**
*
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment
* variables. If it's not provided, AWS Lambda uses a default service key.
*
*
* @return The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's
* environment variables. If it's not provided, AWS Lambda uses a default service key.
*/
public String getKMSKeyArn() {
return this.kMSKeyArn;
}
/**
*
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment
* variables. If it's not provided, AWS Lambda uses a default service key.
*
*
* @param kMSKeyArn
* The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment
* variables. If it's not provided, AWS Lambda uses a default service key.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withKMSKeyArn(String kMSKeyArn) {
setKMSKeyArn(kMSKeyArn);
return this;
}
/**
*
* Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
*
*
* @param tracingConfig
* Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
* X-Ray.
*/
public void setTracingConfig(TracingConfig tracingConfig) {
this.tracingConfig = tracingConfig;
}
/**
*
* Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
*
*
* @return Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
* X-Ray.
*/
public TracingConfig getTracingConfig() {
return this.tracingConfig;
}
/**
*
* Set Mode
to Active
to sample and trace a subset of incoming requests with AWS X-Ray.
*
*
* @param tracingConfig
* Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
* X-Ray.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withTracingConfig(TracingConfig tracingConfig) {
setTracingConfig(tracingConfig);
return this;
}
/**
*
* Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a
* function that has changed since you last read it.
*
*
* @param revisionId
* Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
* modifying a function that has changed since you last read it.
*/
public void setRevisionId(String revisionId) {
this.revisionId = revisionId;
}
/**
*
* Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a
* function that has changed since you last read it.
*
*
* @return Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
* modifying a function that has changed since you last read it.
*/
public String getRevisionId() {
return this.revisionId;
}
/**
*
* Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a
* function that has changed since you last read it.
*
*
* @param revisionId
* Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
* modifying a function that has changed since you last read it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withRevisionId(String revisionId) {
setRevisionId(revisionId);
return this;
}
/**
*
* A list of function layers to
* add to the function's execution environment. Specify each layer by its ARN, including the version.
*
*
* @return A list of function
* layers to add to the function's execution environment. Specify each layer by its ARN, including the
* version.
*/
public java.util.List getLayers() {
if (layers == null) {
layers = new com.amazonaws.internal.SdkInternalList();
}
return layers;
}
/**
*
* A list of function layers to
* add to the function's execution environment. Specify each layer by its ARN, including the version.
*
*
* @param layers
* A list of function
* layers to add to the function's execution environment. Specify each layer by its ARN, including the
* version.
*/
public void setLayers(java.util.Collection layers) {
if (layers == null) {
this.layers = null;
return;
}
this.layers = new com.amazonaws.internal.SdkInternalList(layers);
}
/**
*
* A list of function layers to
* add to the function's execution environment. Specify each layer by its ARN, including the version.
*
*
* 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
* A list of function
* layers to add to the function's execution environment. Specify each layer by its ARN, including the
* version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withLayers(String... layers) {
if (this.layers == null) {
setLayers(new com.amazonaws.internal.SdkInternalList(layers.length));
}
for (String ele : layers) {
this.layers.add(ele);
}
return this;
}
/**
*
* A list of function layers to
* add to the function's execution environment. Specify each layer by its ARN, including the version.
*
*
* @param layers
* A list of function
* layers to add to the function's execution environment. Specify each layer by its ARN, including the
* version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionConfigurationRequest withLayers(java.util.Collection layers) {
setLayers(layers);
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 (getRole() != null)
sb.append("Role: ").append(getRole()).append(",");
if (getHandler() != null)
sb.append("Handler: ").append(getHandler()).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 (getVpcConfig() != null)
sb.append("VpcConfig: ").append(getVpcConfig()).append(",");
if (getEnvironment() != null)
sb.append("Environment: ").append(getEnvironment()).append(",");
if (getRuntime() != null)
sb.append("Runtime: ").append(getRuntime()).append(",");
if (getDeadLetterConfig() != null)
sb.append("DeadLetterConfig: ").append(getDeadLetterConfig()).append(",");
if (getKMSKeyArn() != null)
sb.append("KMSKeyArn: ").append(getKMSKeyArn()).append(",");
if (getTracingConfig() != null)
sb.append("TracingConfig: ").append(getTracingConfig()).append(",");
if (getRevisionId() != null)
sb.append("RevisionId: ").append(getRevisionId()).append(",");
if (getLayers() != null)
sb.append("Layers: ").append(getLayers());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateFunctionConfigurationRequest == false)
return false;
UpdateFunctionConfigurationRequest other = (UpdateFunctionConfigurationRequest) obj;
if (other.getFunctionName() == null ^ this.getFunctionName() == null)
return false;
if (other.getFunctionName() != null && other.getFunctionName().equals(this.getFunctionName()) == 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.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.getVpcConfig() == null ^ this.getVpcConfig() == null)
return false;
if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == 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.getRuntime() == null ^ this.getRuntime() == null)
return false;
if (other.getRuntime() != null && other.getRuntime().equals(this.getRuntime()) == 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.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.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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFunctionName() == null) ? 0 : getFunctionName().hashCode());
hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode());
hashCode = prime * hashCode + ((getHandler() == null) ? 0 : getHandler().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 + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode());
hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode());
hashCode = prime * hashCode + ((getRuntime() == null) ? 0 : getRuntime().hashCode());
hashCode = prime * hashCode + ((getDeadLetterConfig() == null) ? 0 : getDeadLetterConfig().hashCode());
hashCode = prime * hashCode + ((getKMSKeyArn() == null) ? 0 : getKMSKeyArn().hashCode());
hashCode = prime * hashCode + ((getTracingConfig() == null) ? 0 : getTracingConfig().hashCode());
hashCode = prime * hashCode + ((getRevisionId() == null) ? 0 : getRevisionId().hashCode());
hashCode = prime * hashCode + ((getLayers() == null) ? 0 : getLayers().hashCode());
return hashCode;
}
@Override
public UpdateFunctionConfigurationRequest clone() {
return (UpdateFunctionConfigurationRequest) super.clone();
}
}