public class PublishVersionResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A complex type that describes function metadata.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
codeSha256
It is the SHA256 hash of your function deployment package.
|
private java.lang.Long |
codeSize
The size, in bytes, of the function .zip file you uploaded.
|
private java.lang.String |
description
The user-provided description.
|
private java.lang.String |
functionArn
The Amazon Resource Name (ARN) assigned to the function.
|
private java.lang.String |
functionName
The name of the function.
|
private java.lang.String |
handler
The function Lambda calls to begin executing your function.
|
private java.lang.String |
lastModified
The time stamp of the last time you updated the function.
|
private java.lang.Integer |
memorySize
The memory size, in MB, you configured for the function.
|
private java.lang.String |
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.
|
private java.lang.String |
runtime
The runtime environment for the Lambda function.
|
private java.lang.Integer |
timeout
The function execution time at which Lambda should terminate the
function.
|
private java.lang.String |
version
The version of the Lambda function.
|
private VpcConfigResponse |
vpcConfig
VPC configuration associated with your Lambda function.
|
Constructor and Description |
---|
PublishVersionResult() |
Modifier and Type | Method and Description |
---|---|
PublishVersionResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCodeSha256()
It is the SHA256 hash of your function deployment package.
|
java.lang.Long |
getCodeSize()
The size, in bytes, of the function .zip file you uploaded.
|
java.lang.String |
getDescription()
The user-provided description.
|
java.lang.String |
getFunctionArn()
The Amazon Resource Name (ARN) assigned to the function.
|
java.lang.String |
getFunctionName()
The name of the function.
|
java.lang.String |
getHandler()
The function Lambda calls to begin executing your function.
|
java.lang.String |
getLastModified()
The time stamp of the last time you updated the function.
|
java.lang.Integer |
getMemorySize()
The memory size, in MB, you configured for the function.
|
java.lang.String |
getRole()
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.
|
java.lang.String |
getRuntime()
The runtime environment for the Lambda function.
|
java.lang.Integer |
getTimeout()
The function execution time at which Lambda should terminate the
function.
|
java.lang.String |
getVersion()
The version of the Lambda function.
|
VpcConfigResponse |
getVpcConfig()
VPC configuration associated with your Lambda function.
|
int |
hashCode() |
void |
setCodeSha256(java.lang.String codeSha256)
It is the SHA256 hash of your function deployment package.
|
void |
setCodeSize(java.lang.Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
|
void |
setDescription(java.lang.String description)
The user-provided description.
|
void |
setFunctionArn(java.lang.String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
|
void |
setFunctionName(java.lang.String functionName)
The name of the function.
|
void |
setHandler(java.lang.String handler)
The function Lambda calls to begin executing your function.
|
void |
setLastModified(java.lang.String lastModified)
The time stamp of the last time you updated the function.
|
void |
setMemorySize(java.lang.Integer memorySize)
The memory size, in MB, you configured for the function.
|
void |
setRole(java.lang.String 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.
|
void |
setRuntime(Runtime runtime)
The runtime environment for the Lambda function.
|
void |
setRuntime(java.lang.String runtime)
The runtime environment for the Lambda function.
|
void |
setTimeout(java.lang.Integer timeout)
The function execution time at which Lambda should terminate the
function.
|
void |
setVersion(java.lang.String version)
The version of the Lambda function.
|
void |
setVpcConfig(VpcConfigResponse vpcConfig)
VPC configuration associated with your Lambda function.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PublishVersionResult |
withCodeSha256(java.lang.String codeSha256)
It is the SHA256 hash of your function deployment package.
|
PublishVersionResult |
withCodeSize(java.lang.Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
|
PublishVersionResult |
withDescription(java.lang.String description)
The user-provided description.
|
PublishVersionResult |
withFunctionArn(java.lang.String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
|
PublishVersionResult |
withFunctionName(java.lang.String functionName)
The name of the function.
|
PublishVersionResult |
withHandler(java.lang.String handler)
The function Lambda calls to begin executing your function.
|
PublishVersionResult |
withLastModified(java.lang.String lastModified)
The time stamp of the last time you updated the function.
|
PublishVersionResult |
withMemorySize(java.lang.Integer memorySize)
The memory size, in MB, you configured for the function.
|
PublishVersionResult |
withRole(java.lang.String 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.
|
PublishVersionResult |
withRuntime(Runtime runtime)
The runtime environment for the Lambda function.
|
PublishVersionResult |
withRuntime(java.lang.String runtime)
The runtime environment for the Lambda function.
|
PublishVersionResult |
withTimeout(java.lang.Integer timeout)
The function execution time at which Lambda should terminate the
function.
|
PublishVersionResult |
withVersion(java.lang.String version)
The version of the Lambda function.
|
PublishVersionResult |
withVpcConfig(VpcConfigResponse vpcConfig)
VPC configuration associated with your Lambda function.
|
private java.lang.String functionName
The name of the function.
private java.lang.String functionArn
The Amazon Resource Name (ARN) assigned to the function.
private java.lang.String runtime
The runtime environment for the Lambda function.
private java.lang.String 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.
private java.lang.String handler
The function Lambda calls to begin executing your function.
private java.lang.Long codeSize
The size, in bytes, of the function .zip file you uploaded.
private java.lang.String description
The user-provided description.
private java.lang.Integer 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.
private java.lang.Integer memorySize
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
private java.lang.String lastModified
The time stamp of the last time you updated the function.
private java.lang.String codeSha256
It is the SHA256 hash of your function deployment package.
private java.lang.String version
The version of the Lambda function.
private VpcConfigResponse vpcConfig
VPC configuration associated with your Lambda function.
public void setFunctionName(java.lang.String functionName)
The name of the function.
functionName
- The name of the function.public java.lang.String getFunctionName()
The name of the function.
public PublishVersionResult withFunctionName(java.lang.String functionName)
The name of the function.
functionName
- The name of the function.public void setFunctionArn(java.lang.String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
functionArn
- The Amazon Resource Name (ARN) assigned to the function.public java.lang.String getFunctionArn()
The Amazon Resource Name (ARN) assigned to the function.
public PublishVersionResult withFunctionArn(java.lang.String functionArn)
The Amazon Resource Name (ARN) assigned to the function.
functionArn
- The Amazon Resource Name (ARN) assigned to the function.public void setRuntime(java.lang.String runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.Runtime
public java.lang.String getRuntime()
The runtime environment for the Lambda function.
Runtime
public PublishVersionResult withRuntime(java.lang.String runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.Runtime
public void setRuntime(Runtime runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.Runtime
public PublishVersionResult withRuntime(Runtime runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.Runtime
public void setRole(java.lang.String 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.
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 java.lang.String getRole()
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 PublishVersionResult withRole(java.lang.String 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.
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 setHandler(java.lang.String handler)
The function Lambda calls to begin executing your function.
handler
- The function Lambda calls to begin executing your function.public java.lang.String getHandler()
The function Lambda calls to begin executing your function.
public PublishVersionResult withHandler(java.lang.String handler)
The function Lambda calls to begin executing your function.
handler
- The function Lambda calls to begin executing your function.public void setCodeSize(java.lang.Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
codeSize
- The size, in bytes, of the function .zip file you uploaded.public java.lang.Long getCodeSize()
The size, in bytes, of the function .zip file you uploaded.
public PublishVersionResult withCodeSize(java.lang.Long codeSize)
The size, in bytes, of the function .zip file you uploaded.
codeSize
- The size, in bytes, of the function .zip file you uploaded.public void setDescription(java.lang.String description)
The user-provided description.
description
- The user-provided description.public java.lang.String getDescription()
The user-provided description.
public PublishVersionResult withDescription(java.lang.String description)
The user-provided description.
description
- The user-provided description.public void setTimeout(java.lang.Integer 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.
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 java.lang.Integer getTimeout()
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 PublishVersionResult withTimeout(java.lang.Integer 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.
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 setMemorySize(java.lang.Integer memorySize)
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
memorySize
- The memory size, in MB, you configured for the function. Must be a
multiple of 64 MB.public java.lang.Integer getMemorySize()
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
public PublishVersionResult withMemorySize(java.lang.Integer memorySize)
The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.
memorySize
- The memory size, in MB, you configured for the function. Must be a
multiple of 64 MB.public void setLastModified(java.lang.String lastModified)
The time stamp of the last time you updated the function.
lastModified
- The time stamp of the last time you updated the function.public java.lang.String getLastModified()
The time stamp of the last time you updated the function.
public PublishVersionResult withLastModified(java.lang.String lastModified)
The time stamp of the last time you updated the function.
lastModified
- The time stamp of the last time you updated the function.public void setCodeSha256(java.lang.String codeSha256)
It is the SHA256 hash of your function deployment package.
codeSha256
- It is the SHA256 hash of your function deployment package.public java.lang.String getCodeSha256()
It is the SHA256 hash of your function deployment package.
public PublishVersionResult withCodeSha256(java.lang.String codeSha256)
It is the SHA256 hash of your function deployment package.
codeSha256
- It is the SHA256 hash of your function deployment package.public void setVersion(java.lang.String version)
The version of the Lambda function.
version
- The version of the Lambda function.public java.lang.String getVersion()
The version of the Lambda function.
public PublishVersionResult withVersion(java.lang.String version)
The version of the Lambda function.
version
- The version of the Lambda function.public void setVpcConfig(VpcConfigResponse vpcConfig)
VPC configuration associated with your Lambda function.
vpcConfig
- VPC configuration associated with your Lambda function.public VpcConfigResponse getVpcConfig()
VPC configuration associated with your Lambda function.
public PublishVersionResult withVpcConfig(VpcConfigResponse vpcConfig)
VPC configuration associated with your Lambda function.
vpcConfig
- VPC configuration associated with your Lambda function.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PublishVersionResult clone()
clone
in class java.lang.Object