com.amazonaws.services.lambda.model.UpdateFunctionCodeResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-lambda Show documentation
/*
* Copyright 2012-2017 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;
/**
*
* A complex type that describes function metadata.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateFunctionCodeResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name of the function. Note that the length constraint applies only to the ARN. If you specify only the
* function name, it is limited to 64 characters in length.
*
*/
private String functionName;
/**
*
* The Amazon Resource Name (ARN) assigned to the function.
*
*/
private String functionArn;
/**
*
* The runtime environment for the Lambda function.
*
*/
private String runtime;
/**
*
* The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any
* other Amazon Web Services (AWS) resources.
*
*/
private String role;
/**
*
* The function Lambda calls to begin executing your function.
*
*/
private String handler;
/**
*
* The size, in bytes, of the function .zip file you uploaded.
*
*/
private Long codeSize;
/**
*
* The user-provided description.
*
*/
private String description;
/**
*
* The function execution time at which Lambda should terminate the function. Because the execution time has cost
* implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
*
*/
private Integer timeout;
/**
*
* The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
*
*/
private Integer memorySize;
/**
*
* The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying with
* ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time Formats.
*
*/
private String lastModified;
/**
*
* It is the SHA256 hash of your function deployment package.
*
*/
private String codeSha256;
/**
*
* The version of the Lambda function.
*
*/
private String version;
/**
*
* VPC configuration associated with your Lambda function.
*
*/
private VpcConfigResponse vpcConfig;
/**
*
* The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
*
*/
private DeadLetterConfig deadLetterConfig;
/**
*
* The parent object that contains your environment's configuration settings.
*
*/
private EnvironmentResponse environment;
/**
*
* The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it
* means you are using the AWS Lambda default service key.
*
*/
private String kMSKeyArn;
/**
*
* The parent object that contains your function's tracing settings.
*
*/
private TracingConfigResponse tracingConfig;
/**
*
* Returns the ARN (Amazon Resource Name) of the master function.
*
*/
private String masterArn;
/**
*
* The name of the function. Note that the length constraint applies only to the ARN. If you specify only the
* function name, it is limited to 64 characters in length.
*
*
* @param functionName
* The name of the function. Note that the length constraint applies only to the 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 function. Note that the length constraint applies only to the ARN. If you specify only the
* function name, it is limited to 64 characters in length.
*
*
* @return The name of the function. Note that the length constraint applies only to the 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 function. Note that the length constraint applies only to the ARN. If you specify only the
* function name, it is limited to 64 characters in length.
*
*
* @param functionName
* The name of the function. Note that the length constraint applies only to the 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 UpdateFunctionCodeResult withFunctionName(String functionName) {
setFunctionName(functionName);
return this;
}
/**
*
* The Amazon Resource Name (ARN) assigned to the function.
*
*
* @param functionArn
* The Amazon Resource Name (ARN) assigned to the function.
*/
public void setFunctionArn(String functionArn) {
this.functionArn = functionArn;
}
/**
*
* The Amazon Resource Name (ARN) assigned to the function.
*
*
* @return The Amazon Resource Name (ARN) assigned to the function.
*/
public String getFunctionArn() {
return this.functionArn;
}
/**
*
* The Amazon Resource Name (ARN) assigned to the function.
*
*
* @param functionArn
* The Amazon Resource Name (ARN) assigned to the function.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withFunctionArn(String functionArn) {
setFunctionArn(functionArn);
return this;
}
/**
*
* The runtime environment for the Lambda function.
*
*
* @param runtime
* The runtime environment for the Lambda function.
* @see Runtime
*/
public void setRuntime(String runtime) {
this.runtime = runtime;
}
/**
*
* The runtime environment for the Lambda function.
*
*
* @return The runtime environment for the Lambda function.
* @see Runtime
*/
public String getRuntime() {
return this.runtime;
}
/**
*
* The runtime environment for the Lambda function.
*
*
* @param runtime
* The runtime environment for the Lambda function.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Runtime
*/
public UpdateFunctionCodeResult withRuntime(String runtime) {
setRuntime(runtime);
return this;
}
/**
*
* The runtime environment for the Lambda function.
*
*
* @param runtime
* The runtime environment for the Lambda function.
* @see Runtime
*/
public void setRuntime(Runtime runtime) {
withRuntime(runtime);
}
/**
*
* The runtime environment for the Lambda function.
*
*
* @param runtime
* The runtime environment for the Lambda function.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Runtime
*/
public UpdateFunctionCodeResult withRuntime(Runtime runtime) {
this.runtime = runtime.toString();
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any
* other Amazon Web Services (AWS) resources.
*
*
* @param role
* The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to
* access any other Amazon Web Services (AWS) resources.
*/
public void setRole(String role) {
this.role = role;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any
* other Amazon Web Services (AWS) resources.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to
* access any other Amazon Web Services (AWS) resources.
*/
public String getRole() {
return this.role;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any
* other Amazon Web Services (AWS) resources.
*
*
* @param role
* The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to
* access any other Amazon Web Services (AWS) resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withRole(String role) {
setRole(role);
return this;
}
/**
*
* The function Lambda calls to begin executing your function.
*
*
* @param handler
* The function Lambda calls to begin executing your function.
*/
public void setHandler(String handler) {
this.handler = handler;
}
/**
*
* The function Lambda calls to begin executing your function.
*
*
* @return The function Lambda calls to begin executing your function.
*/
public String getHandler() {
return this.handler;
}
/**
*
* The function Lambda calls to begin executing your function.
*
*
* @param handler
* The function Lambda calls to begin executing your function.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withHandler(String handler) {
setHandler(handler);
return this;
}
/**
*
* The size, in bytes, of the function .zip file you uploaded.
*
*
* @param codeSize
* The size, in bytes, of the function .zip file you uploaded.
*/
public void setCodeSize(Long codeSize) {
this.codeSize = codeSize;
}
/**
*
* The size, in bytes, of the function .zip file you uploaded.
*
*
* @return The size, in bytes, of the function .zip file you uploaded.
*/
public Long getCodeSize() {
return this.codeSize;
}
/**
*
* The size, in bytes, of the function .zip file you uploaded.
*
*
* @param codeSize
* The size, in bytes, of the function .zip file you uploaded.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withCodeSize(Long codeSize) {
setCodeSize(codeSize);
return this;
}
/**
*
* The user-provided description.
*
*
* @param description
* The user-provided description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The user-provided description.
*
*
* @return The user-provided description.
*/
public String getDescription() {
return this.description;
}
/**
*
* The user-provided description.
*
*
* @param description
* The user-provided description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The function execution time at which Lambda should terminate the function. Because the execution time has cost
* implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
*
*
* @param timeout
* The function execution time at which Lambda should terminate the function. Because the execution time has
* cost implications, we recommend you set this value based on your expected execution time. The default is 3
* seconds.
*/
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
/**
*
* The function execution time at which Lambda should terminate the function. Because the execution time has cost
* implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
*
*
* @return The function execution time at which Lambda should terminate the function. Because the execution time has
* cost implications, we recommend you set this value based on your expected execution time. The default is
* 3 seconds.
*/
public Integer getTimeout() {
return this.timeout;
}
/**
*
* The function execution time at which Lambda should terminate the function. Because the execution time has cost
* implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
*
*
* @param timeout
* The function execution time at which Lambda should terminate the function. Because the execution time has
* cost implications, we recommend you set this value based on your expected execution time. The default is 3
* seconds.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withTimeout(Integer timeout) {
setTimeout(timeout);
return this;
}
/**
*
* The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
*
*
* @param memorySize
* The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
*/
public void setMemorySize(Integer memorySize) {
this.memorySize = memorySize;
}
/**
*
* The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
*
*
* @return The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
*/
public Integer getMemorySize() {
return this.memorySize;
}
/**
*
* The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
*
*
* @param memorySize
* The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withMemorySize(Integer memorySize) {
setMemorySize(memorySize);
return this;
}
/**
*
* The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying with
* ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time Formats.
*
*
* @param lastModified
* The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying
* with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information,
* see Date and Time Formats.
*/
public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
/**
*
* The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying with
* ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time Formats.
*
*
* @return The time stamp of the last time you updated the function. The time stamp is conveyed as a string
* complying with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more
* information, see Date and Time Formats.
*/
public String getLastModified() {
return this.lastModified;
}
/**
*
* The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying with
* ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time Formats.
*
*
* @param lastModified
* The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying
* with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information,
* see Date and Time Formats.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withLastModified(String lastModified) {
setLastModified(lastModified);
return this;
}
/**
*
* It is the SHA256 hash of your function deployment package.
*
*
* @param codeSha256
* It is the SHA256 hash of your function deployment package.
*/
public void setCodeSha256(String codeSha256) {
this.codeSha256 = codeSha256;
}
/**
*
* It is the SHA256 hash of your function deployment package.
*
*
* @return It is the SHA256 hash of your function deployment package.
*/
public String getCodeSha256() {
return this.codeSha256;
}
/**
*
* It is the SHA256 hash of your function deployment package.
*
*
* @param codeSha256
* It is the SHA256 hash of your function deployment package.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult 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 UpdateFunctionCodeResult withVersion(String version) {
setVersion(version);
return this;
}
/**
*
* VPC configuration associated with your Lambda function.
*
*
* @param vpcConfig
* VPC configuration associated with your Lambda function.
*/
public void setVpcConfig(VpcConfigResponse vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* VPC configuration associated with your Lambda function.
*
*
* @return VPC configuration associated with your Lambda function.
*/
public VpcConfigResponse getVpcConfig() {
return this.vpcConfig;
}
/**
*
* VPC configuration associated with your Lambda function.
*
*
* @param vpcConfig
* VPC configuration associated with your Lambda function.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withVpcConfig(VpcConfigResponse vpcConfig) {
setVpcConfig(vpcConfig);
return this;
}
/**
*
* The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
*
*
* @param deadLetterConfig
* The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS
* topic.
*/
public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig) {
this.deadLetterConfig = deadLetterConfig;
}
/**
*
* The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
*
*
* @return The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon
* SNS topic.
*/
public DeadLetterConfig getDeadLetterConfig() {
return this.deadLetterConfig;
}
/**
*
* The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
*
*
* @param deadLetterConfig
* The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS
* topic.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withDeadLetterConfig(DeadLetterConfig deadLetterConfig) {
setDeadLetterConfig(deadLetterConfig);
return this;
}
/**
*
* The parent object that contains your environment's configuration settings.
*
*
* @param environment
* The parent object that contains your environment's configuration settings.
*/
public void setEnvironment(EnvironmentResponse environment) {
this.environment = environment;
}
/**
*
* The parent object that contains your environment's configuration settings.
*
*
* @return The parent object that contains your environment's configuration settings.
*/
public EnvironmentResponse getEnvironment() {
return this.environment;
}
/**
*
* The parent object that contains your environment's configuration settings.
*
*
* @param environment
* The parent object that contains your environment's configuration settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withEnvironment(EnvironmentResponse environment) {
setEnvironment(environment);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it
* means you are using the AWS Lambda default service key.
*
*
* @param kMSKeyArn
* The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If
* empty, it means you are using the AWS Lambda default service key.
*/
public void setKMSKeyArn(String kMSKeyArn) {
this.kMSKeyArn = kMSKeyArn;
}
/**
*
* The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it
* means you are using the AWS Lambda default service key.
*
*
* @return The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If
* empty, it means you are using the AWS Lambda default service key.
*/
public String getKMSKeyArn() {
return this.kMSKeyArn;
}
/**
*
* The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it
* means you are using the AWS Lambda default service key.
*
*
* @param kMSKeyArn
* The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If
* empty, it means you are using the AWS Lambda default service key.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withKMSKeyArn(String kMSKeyArn) {
setKMSKeyArn(kMSKeyArn);
return this;
}
/**
*
* The parent object that contains your function's tracing settings.
*
*
* @param tracingConfig
* The parent object that contains your function's tracing settings.
*/
public void setTracingConfig(TracingConfigResponse tracingConfig) {
this.tracingConfig = tracingConfig;
}
/**
*
* The parent object that contains your function's tracing settings.
*
*
* @return The parent object that contains your function's tracing settings.
*/
public TracingConfigResponse getTracingConfig() {
return this.tracingConfig;
}
/**
*
* The parent object that contains your function's tracing settings.
*
*
* @param tracingConfig
* The parent object that contains your function's tracing settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withTracingConfig(TracingConfigResponse tracingConfig) {
setTracingConfig(tracingConfig);
return this;
}
/**
*
* Returns the ARN (Amazon Resource Name) of the master function.
*
*
* @param masterArn
* Returns the ARN (Amazon Resource Name) of the master function.
*/
public void setMasterArn(String masterArn) {
this.masterArn = masterArn;
}
/**
*
* Returns the ARN (Amazon Resource Name) of the master function.
*
*
* @return Returns the ARN (Amazon Resource Name) of the master function.
*/
public String getMasterArn() {
return this.masterArn;
}
/**
*
* Returns the ARN (Amazon Resource Name) of the master function.
*
*
* @param masterArn
* Returns the ARN (Amazon Resource Name) of the master function.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFunctionCodeResult withMasterArn(String masterArn) {
setMasterArn(masterArn);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateFunctionCodeResult == false)
return false;
UpdateFunctionCodeResult other = (UpdateFunctionCodeResult) 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;
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());
return hashCode;
}
@Override
public UpdateFunctionCodeResult clone() {
try {
return (UpdateFunctionCodeResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}