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