/* * Copyright 2018-2023 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details about an Lambda function's configuration. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsLambdaFunctionDetails implements Serializable, Cloneable, StructuredPojo { /** *
* An AwsLambdaFunctionCode
object.
*
* The SHA256 hash of the function's deployment package. *
*/ private String codeSha256; /** ** The function's dead letter queue. *
*/ private AwsLambdaFunctionDeadLetterConfig deadLetterConfig; /** ** The function's environment variables. *
*/ private AwsLambdaFunctionEnvironment environment; /** ** The name of the function. *
*/ private String functionName; /** ** The function that Lambda calls to begin executing your function. *
*/ private String handler; /** ** The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've * configured a customer managed customer managed key. *
*/ private String kmsKeyArn; /** ** Indicates when the function was last updated. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* The function's layers. *
*/ private java.util.List* For Lambda@Edge functions, the ARN of the master function. *
*/ private String masterArn; /** ** The memory that is allocated to the function. *
*/ private Integer memorySize; /** ** The latest updated revision of the function or alias. *
*/ private String revisionId; /** ** The function's execution role. *
*/ private String role; /** ** The runtime environment for the Lambda function. *
*/ private String runtime; /** ** The amount of time that Lambda allows a function to run before stopping it. *
*/ private Integer timeout; /** ** The function's X-Ray tracing configuration. *
*/ private AwsLambdaFunctionTracingConfig tracingConfig; /** ** The function's networking configuration. *
*/ private AwsLambdaFunctionVpcConfig vpcConfig; /** ** The version of the Lambda function. *
*/ private String version; /** *
* The instruction set architecture that the function uses. Valid values are x86_64
or
* arm64
.
*
* The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
* container image and Zip
for a .zip file archive.
*
* An AwsLambdaFunctionCode
object.
*
AwsLambdaFunctionCode
object.
*/
public void setCode(AwsLambdaFunctionCode code) {
this.code = code;
}
/**
*
* An AwsLambdaFunctionCode
object.
*
AwsLambdaFunctionCode
object.
*/
public AwsLambdaFunctionCode getCode() {
return this.code;
}
/**
*
* An AwsLambdaFunctionCode
object.
*
AwsLambdaFunctionCode
object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsLambdaFunctionDetails withCode(AwsLambdaFunctionCode code) {
setCode(code);
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 AwsLambdaFunctionDetails withCodeSha256(String codeSha256) { setCodeSha256(codeSha256); return this; } /** ** The function's dead letter queue. *
* * @param deadLetterConfig * The function's dead letter queue. */ public void setDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig) { this.deadLetterConfig = deadLetterConfig; } /** ** The function's dead letter queue. *
* * @return The function's dead letter queue. */ public AwsLambdaFunctionDeadLetterConfig 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 AwsLambdaFunctionDetails withDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig) { setDeadLetterConfig(deadLetterConfig); return this; } /** ** The function's environment variables. *
* * @param environment * The function's environment variables. */ public void setEnvironment(AwsLambdaFunctionEnvironment environment) { this.environment = environment; } /** ** The function's environment variables. *
* * @return The function's environment variables. */ public AwsLambdaFunctionEnvironment getEnvironment() { return this.environment; } /** ** The function's environment variables. *
* * @param environment * The function's environment variables. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaFunctionDetails withEnvironment(AwsLambdaFunctionEnvironment environment) { setEnvironment(environment); return this; } /** ** 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 AwsLambdaFunctionDetails withFunctionName(String functionName) { setFunctionName(functionName); return this; } /** ** The function that Lambda calls to begin executing your function. *
* * @param handler * The function that Lambda calls to begin executing your function. */ public void setHandler(String handler) { this.handler = handler; } /** ** The function that Lambda calls to begin executing your function. *
* * @return The function that Lambda calls to begin executing your function. */ public String getHandler() { return this.handler; } /** ** The function that Lambda calls to begin executing your function. *
* * @param handler * The function that Lambda calls to begin executing your function. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaFunctionDetails withHandler(String handler) { setHandler(handler); return this; } /** ** The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've * configured a customer managed customer managed key. *
* * @param kmsKeyArn * The KMS key that is used to encrypt the function's environment variables. This key is only returned if * you've configured a customer managed customer managed key. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** ** The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've * configured a customer managed customer managed key. *
* * @return The KMS key that is used to encrypt the function's environment variables. This key is only returned if * you've configured a customer managed customer managed key. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** ** The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've * configured a customer managed customer managed key. *
* * @param kmsKeyArn * The KMS key that is used to encrypt the function's environment variables. This key is only returned if * you've configured a customer managed customer managed key. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaFunctionDetails withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** ** Indicates when the function was last updated. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
/**
*
* Indicates when the function was last updated. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public String getLastModified() {
return this.lastModified;
}
/**
*
* Indicates when the function was last updated. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsLambdaFunctionDetails withLastModified(String lastModified) {
setLastModified(lastModified);
return this;
}
/**
*
* The function's layers. *
* * @return The function's layers. */ public java.util.List* The function's layers. *
* * @param layers * The function's layers. */ public void setLayers(java.util.Collection* 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 AwsLambdaFunctionDetails withLayers(AwsLambdaFunctionLayer... layers) { if (this.layers == null) { setLayers(new java.util.ArrayList* 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 AwsLambdaFunctionDetails withLayers(java.util.Collection* For Lambda@Edge functions, the ARN of the master function. *
* * @param masterArn * For Lambda@Edge functions, the ARN of the master function. */ public void setMasterArn(String masterArn) { this.masterArn = masterArn; } /** ** For Lambda@Edge functions, the ARN of the master function. *
* * @return For Lambda@Edge functions, the ARN of the master function. */ public String getMasterArn() { return this.masterArn; } /** ** For Lambda@Edge functions, the ARN of the master function. *
* * @param masterArn * For Lambda@Edge functions, the ARN of the master function. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaFunctionDetails withMasterArn(String masterArn) { setMasterArn(masterArn); return this; } /** ** The memory that is allocated to the function. *
* * @param memorySize * The memory that is allocated to the function. */ public void setMemorySize(Integer memorySize) { this.memorySize = memorySize; } /** ** The memory that is allocated to the function. *
* * @return The memory that is allocated to the function. */ public Integer getMemorySize() { return this.memorySize; } /** ** The memory that is allocated to the function. *
* * @param memorySize * The memory that is allocated to the function. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaFunctionDetails withMemorySize(Integer memorySize) { setMemorySize(memorySize); 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 AwsLambdaFunctionDetails withRevisionId(String revisionId) { setRevisionId(revisionId); 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 AwsLambdaFunctionDetails withRole(String role) { setRole(role); return this; } /** ** The runtime environment for the Lambda function. *
* * @param runtime * The runtime environment for the Lambda function. */ public void setRuntime(String runtime) { this.runtime = runtime; } /** ** The runtime environment for the Lambda function. *
* * @return The runtime environment for the Lambda function. */ 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. */ public AwsLambdaFunctionDetails withRuntime(String runtime) { setRuntime(runtime); return this; } /** ** The amount of time that Lambda allows a function to run before stopping it. *
* * @param timeout * The amount of time that Lambda allows a function to run before stopping it. */ public void setTimeout(Integer timeout) { this.timeout = timeout; } /** ** The amount of time that Lambda allows a function to run before stopping it. *
* * @return The amount of time that Lambda allows a function to run before stopping it. */ public Integer getTimeout() { return this.timeout; } /** ** The amount of time that Lambda allows a function to run before stopping it. *
* * @param timeout * The amount of time 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 AwsLambdaFunctionDetails withTimeout(Integer timeout) { setTimeout(timeout); return this; } /** ** The function's X-Ray tracing configuration. *
* * @param tracingConfig * The function's X-Ray tracing configuration. */ public void setTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig) { this.tracingConfig = tracingConfig; } /** ** The function's X-Ray tracing configuration. *
* * @return The function's X-Ray tracing configuration. */ public AwsLambdaFunctionTracingConfig 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 AwsLambdaFunctionDetails withTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig) { setTracingConfig(tracingConfig); return this; } /** ** The function's networking configuration. *
* * @param vpcConfig * The function's networking configuration. */ public void setVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** ** The function's networking configuration. *
* * @return The function's networking configuration. */ public AwsLambdaFunctionVpcConfig 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 AwsLambdaFunctionDetails withVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig) { setVpcConfig(vpcConfig); 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 AwsLambdaFunctionDetails withVersion(String version) { setVersion(version); return this; } /** *
* The instruction set architecture that the function uses. Valid values are x86_64
or
* arm64
.
*
x86_64
or
* arm64
.
*/
public java.util.List
* The instruction set architecture that the function uses. Valid values are x86_64
or
* arm64
.
*
x86_64
or
* arm64
.
*/
public void setArchitectures(java.util.Collection
* The instruction set architecture that the function uses. Valid values are x86_64
or
* arm64
.
*
* 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 uses. Valid values arex86_64
or
* arm64
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsLambdaFunctionDetails withArchitectures(String... architectures) {
if (this.architectures == null) {
setArchitectures(new java.util.ArrayList
* The instruction set architecture that the function uses. Valid values are x86_64
or
* arm64
.
*
x86_64
or
* arm64
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsLambdaFunctionDetails withArchitectures(java.util.Collection
* The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
* container image and Zip
for a .zip file archive.
*
Image
for a container image and Zip
for a .zip file archive.
*/
public void setPackageType(String packageType) {
this.packageType = packageType;
}
/**
*
* The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
* container image and Zip
for a .zip file archive.
*
Image
for a container image and Zip
for a .zip file archive.
*/
public String getPackageType() {
return this.packageType;
}
/**
*
* The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
* container image and Zip
for a .zip file archive.
*
Image
for a container image and Zip
for a .zip file archive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsLambdaFunctionDetails withPackageType(String packageType) {
setPackageType(packageType);
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 (getCode() != null)
sb.append("Code: ").append(getCode()).append(",");
if (getCodeSha256() != null)
sb.append("CodeSha256: ").append(getCodeSha256()).append(",");
if (getDeadLetterConfig() != null)
sb.append("DeadLetterConfig: ").append(getDeadLetterConfig()).append(",");
if (getEnvironment() != null)
sb.append("Environment: ").append(getEnvironment()).append(",");
if (getFunctionName() != null)
sb.append("FunctionName: ").append(getFunctionName()).append(",");
if (getHandler() != null)
sb.append("Handler: ").append(getHandler()).append(",");
if (getKmsKeyArn() != null)
sb.append("KmsKeyArn: ").append(getKmsKeyArn()).append(",");
if (getLastModified() != null)
sb.append("LastModified: ").append(getLastModified()).append(",");
if (getLayers() != null)
sb.append("Layers: ").append(getLayers()).append(",");
if (getMasterArn() != null)
sb.append("MasterArn: ").append(getMasterArn()).append(",");
if (getMemorySize() != null)
sb.append("MemorySize: ").append(getMemorySize()).append(",");
if (getRevisionId() != null)
sb.append("RevisionId: ").append(getRevisionId()).append(",");
if (getRole() != null)
sb.append("Role: ").append(getRole()).append(",");
if (getRuntime() != null)
sb.append("Runtime: ").append(getRuntime()).append(",");
if (getTimeout() != null)
sb.append("Timeout: ").append(getTimeout()).append(",");
if (getTracingConfig() != null)
sb.append("TracingConfig: ").append(getTracingConfig()).append(",");
if (getVpcConfig() != null)
sb.append("VpcConfig: ").append(getVpcConfig()).append(",");
if (getVersion() != null)
sb.append("Version: ").append(getVersion()).append(",");
if (getArchitectures() != null)
sb.append("Architectures: ").append(getArchitectures()).append(",");
if (getPackageType() != null)
sb.append("PackageType: ").append(getPackageType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsLambdaFunctionDetails == false)
return false;
AwsLambdaFunctionDetails other = (AwsLambdaFunctionDetails) obj;
if (other.getCode() == null ^ this.getCode() == null)
return false;
if (other.getCode() != null && other.getCode().equals(this.getCode()) == 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.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.getFunctionName() == null ^ this.getFunctionName() == null)
return false;
if (other.getFunctionName() != null && other.getFunctionName().equals(this.getFunctionName()) == 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.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null)
return false;
if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == 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.getLayers() == null ^ this.getLayers() == null)
return false;
if (other.getLayers() != null && other.getLayers().equals(this.getLayers()) == 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.getMemorySize() == null ^ this.getMemorySize() == null)
return false;
if (other.getMemorySize() != null && other.getMemorySize().equals(this.getMemorySize()) == 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.getRole() == null ^ this.getRole() == null)
return false;
if (other.getRole() != null && other.getRole().equals(this.getRole()) == 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.getTimeout() == null ^ this.getTimeout() == null)
return false;
if (other.getTimeout() != null && other.getTimeout().equals(this.getTimeout()) == 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.getVpcConfig() == null ^ this.getVpcConfig() == null)
return false;
if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == 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.getArchitectures() == null ^ this.getArchitectures() == null)
return false;
if (other.getArchitectures() != null && other.getArchitectures().equals(this.getArchitectures()) == false)
return false;
if (other.getPackageType() == null ^ this.getPackageType() == null)
return false;
if (other.getPackageType() != null && other.getPackageType().equals(this.getPackageType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCode() == null) ? 0 : getCode().hashCode());
hashCode = prime * hashCode + ((getCodeSha256() == null) ? 0 : getCodeSha256().hashCode());
hashCode = prime * hashCode + ((getDeadLetterConfig() == null) ? 0 : getDeadLetterConfig().hashCode());
hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode());
hashCode = prime * hashCode + ((getFunctionName() == null) ? 0 : getFunctionName().hashCode());
hashCode = prime * hashCode + ((getHandler() == null) ? 0 : getHandler().hashCode());
hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode());
hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode());
hashCode = prime * hashCode + ((getLayers() == null) ? 0 : getLayers().hashCode());
hashCode = prime * hashCode + ((getMasterArn() == null) ? 0 : getMasterArn().hashCode());
hashCode = prime * hashCode + ((getMemorySize() == null) ? 0 : getMemorySize().hashCode());
hashCode = prime * hashCode + ((getRevisionId() == null) ? 0 : getRevisionId().hashCode());
hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode());
hashCode = prime * hashCode + ((getRuntime() == null) ? 0 : getRuntime().hashCode());
hashCode = prime * hashCode + ((getTimeout() == null) ? 0 : getTimeout().hashCode());
hashCode = prime * hashCode + ((getTracingConfig() == null) ? 0 : getTracingConfig().hashCode());
hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode());
hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode());
hashCode = prime * hashCode + ((getArchitectures() == null) ? 0 : getArchitectures().hashCode());
hashCode = prime * hashCode + ((getPackageType() == null) ? 0 : getPackageType().hashCode());
return hashCode;
}
@Override
public AwsLambdaFunctionDetails clone() {
try {
return (AwsLambdaFunctionDetails) 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.securityhub.model.transform.AwsLambdaFunctionDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}