@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFunctionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Details about a function's configuration.
Constructor and Description |
---|
CreateFunctionResult() |
Modifier and Type | Method and Description |
---|---|
CreateFunctionResult |
clone() |
boolean |
equals(Object obj) |
String |
getCodeSha256()
The SHA256 hash of the function's deployment package.
|
Long |
getCodeSize()
The size of the function's deployment package in bytes.
|
DeadLetterConfig |
getDeadLetterConfig()
The function's dead letter queue.
|
String |
getDescription()
The function's description.
|
EnvironmentResponse |
getEnvironment()
The function's environment variables.
|
String |
getFunctionArn()
The function's Amazon Resource Name (ARN).
|
String |
getFunctionName()
The name of the function.
|
String |
getHandler()
The function Lambda calls to begin executing your function.
|
String |
getKMSKeyArn()
The KMS key used to encrypt the function's environment variables.
|
String |
getLastModified()
The date and time that the function was last updated, in ISO-8601
format (YYYY-MM-DDThh:mm:ss.sTZD).
|
List<Layer> |
getLayers()
The function's layers
|
String |
getMasterArn()
For Lambda@Edge functions, the ARN of the master function.
|
Integer |
getMemorySize()
The memory allocated to the function
|
String |
getRevisionId()
Represents the latest updated revision of the function or alias.
|
String |
getRole()
The function's execution role.
|
String |
getRuntime()
The runtime environment for the Lambda function.
|
Integer |
getTimeout()
The amount of time that Lambda allows a function to run before terminating it.
|
TracingConfigResponse |
getTracingConfig()
The function's AWS X-Ray tracing configuration.
|
String |
getVersion()
The version of the Lambda function.
|
VpcConfigResponse |
getVpcConfig()
The function's networking configuration.
|
int |
hashCode() |
void |
setCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
void |
setCodeSize(Long codeSize)
The size of the function's deployment package in bytes.
|
void |
setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
void |
setDescription(String description)
The function's description.
|
void |
setEnvironment(EnvironmentResponse environment)
The function's environment variables.
|
void |
setFunctionArn(String functionArn)
The function's Amazon Resource Name (ARN).
|
void |
setFunctionName(String functionName)
The name of the function.
|
void |
setHandler(String handler)
The function Lambda calls to begin executing your function.
|
void |
setKMSKeyArn(String kMSKeyArn)
The KMS key used to encrypt the function's environment variables.
|
void |
setLastModified(String lastModified)
The date and time that the function was last updated, in ISO-8601
format (YYYY-MM-DDThh:mm:ss.sTZD).
|
void |
setLayers(Collection<Layer> layers)
The function's layers
|
void |
setMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
|
void |
setMemorySize(Integer memorySize)
The memory allocated to the function
|
void |
setRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
|
void |
setRole(String role)
The function's execution role.
|
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 amount of time that Lambda allows a function to run before terminating it.
|
void |
setTracingConfig(TracingConfigResponse tracingConfig)
The function's AWS X-Ray tracing configuration.
|
void |
setVersion(String version)
The version of the Lambda function.
|
void |
setVpcConfig(VpcConfigResponse vpcConfig)
The function's networking configuration.
|
String |
toString()
Returns a string representation of this object.
|
CreateFunctionResult |
withCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
CreateFunctionResult |
withCodeSize(Long codeSize)
The size of the function's deployment package in bytes.
|
CreateFunctionResult |
withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
CreateFunctionResult |
withDescription(String description)
The function's description.
|
CreateFunctionResult |
withEnvironment(EnvironmentResponse environment)
The function's environment variables.
|
CreateFunctionResult |
withFunctionArn(String functionArn)
The function's Amazon Resource Name (ARN).
|
CreateFunctionResult |
withFunctionName(String functionName)
The name of the function.
|
CreateFunctionResult |
withHandler(String handler)
The function Lambda calls to begin executing your function.
|
CreateFunctionResult |
withKMSKeyArn(String kMSKeyArn)
The KMS key used to encrypt the function's environment variables.
|
CreateFunctionResult |
withLastModified(String lastModified)
The date and time that the function was last updated, in ISO-8601
format (YYYY-MM-DDThh:mm:ss.sTZD).
|
CreateFunctionResult |
withLayers(Collection<Layer> layers)
The function's layers
|
CreateFunctionResult |
withLayers(Layer... layers)
The function's layers
|
CreateFunctionResult |
withMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
|
CreateFunctionResult |
withMemorySize(Integer memorySize)
The memory allocated to the function
|
CreateFunctionResult |
withRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
|
CreateFunctionResult |
withRole(String role)
The function's execution role.
|
CreateFunctionResult |
withRuntime(Runtime runtime)
The runtime environment for the Lambda function.
|
CreateFunctionResult |
withRuntime(String runtime)
The runtime environment for the Lambda function.
|
CreateFunctionResult |
withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
|
CreateFunctionResult |
withTracingConfig(TracingConfigResponse tracingConfig)
The function's AWS X-Ray tracing configuration.
|
CreateFunctionResult |
withVersion(String version)
The version of the Lambda function.
|
CreateFunctionResult |
withVpcConfig(VpcConfigResponse vpcConfig)
The function's networking configuration.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 CreateFunctionResult withFunctionName(String functionName)
The name of the function.
functionName
- The name of the function.public void setFunctionArn(String functionArn)
The function's Amazon Resource Name (ARN).
functionArn
- The function's Amazon Resource Name (ARN).public String getFunctionArn()
The function's Amazon Resource Name (ARN).
public CreateFunctionResult withFunctionArn(String functionArn)
The function's Amazon Resource Name (ARN).
functionArn
- The function's Amazon Resource Name (ARN).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 CreateFunctionResult 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 CreateFunctionResult 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 function's execution role.
role
- The function's execution role.public String getRole()
The function's execution role.
public CreateFunctionResult withRole(String role)
The function's execution role.
role
- The function's execution role.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 CreateFunctionResult 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 of the function's deployment package in bytes.
codeSize
- The size of the function's deployment package in bytes.public Long getCodeSize()
The size of the function's deployment package in bytes.
public CreateFunctionResult withCodeSize(Long codeSize)
The size of the function's deployment package in bytes.
codeSize
- The size of the function's deployment package in bytes.public void setDescription(String description)
The function's description.
description
- The function's description.public String getDescription()
The function's description.
public CreateFunctionResult withDescription(String description)
The function's description.
description
- The function's description.public void setTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
timeout
- The amount of time that Lambda allows a function to run before terminating it.public Integer getTimeout()
The amount of time that Lambda allows a function to run before terminating it.
public CreateFunctionResult withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
timeout
- The amount of time that Lambda allows a function to run before terminating it.public void setMemorySize(Integer memorySize)
The memory allocated to the function
memorySize
- The memory allocated to the functionpublic Integer getMemorySize()
The memory allocated to the function
public CreateFunctionResult withMemorySize(Integer memorySize)
The memory allocated to the function
memorySize
- The memory allocated to the functionpublic void setLastModified(String lastModified)
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
lastModified
- The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).public String getLastModified()
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
public CreateFunctionResult withLastModified(String lastModified)
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
lastModified
- The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).public void setCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
codeSha256
- The SHA256 hash of the function's deployment package.public String getCodeSha256()
The SHA256 hash of the function's deployment package.
public CreateFunctionResult withCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
codeSha256
- The SHA256 hash of the function's 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 CreateFunctionResult withVersion(String version)
The version of the Lambda function.
version
- The version of the Lambda function.public void setVpcConfig(VpcConfigResponse vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.public VpcConfigResponse getVpcConfig()
The function's networking configuration.
public CreateFunctionResult withVpcConfig(VpcConfigResponse vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.public DeadLetterConfig getDeadLetterConfig()
The function's dead letter queue.
public CreateFunctionResult withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.public void setEnvironment(EnvironmentResponse environment)
The function's environment variables.
environment
- The function's environment variables.public EnvironmentResponse getEnvironment()
The function's environment variables.
public CreateFunctionResult withEnvironment(EnvironmentResponse environment)
The function's environment variables.
environment
- The function's environment variables.public void setKMSKeyArn(String kMSKeyArn)
The KMS key used to encrypt the function's environment variables. Only returned if you've configured a customer managed CMK.
kMSKeyArn
- The KMS key used to encrypt the function's environment variables. Only returned if you've configured a
customer managed CMK.public String getKMSKeyArn()
The KMS key used to encrypt the function's environment variables. Only returned if you've configured a customer managed CMK.
public CreateFunctionResult withKMSKeyArn(String kMSKeyArn)
The KMS key used to encrypt the function's environment variables. Only returned if you've configured a customer managed CMK.
kMSKeyArn
- The KMS key used to encrypt the function's environment variables. Only returned if you've configured a
customer managed CMK.public void setTracingConfig(TracingConfigResponse tracingConfig)
The function's AWS X-Ray tracing configuration.
tracingConfig
- The function's AWS X-Ray tracing configuration.public TracingConfigResponse getTracingConfig()
The function's AWS X-Ray tracing configuration.
public CreateFunctionResult withTracingConfig(TracingConfigResponse tracingConfig)
The function's AWS X-Ray tracing configuration.
tracingConfig
- The function's AWS X-Ray tracing configuration.public void setMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
masterArn
- For Lambda@Edge functions, the ARN of the master function.public String getMasterArn()
For Lambda@Edge functions, the ARN of the master function.
public CreateFunctionResult withMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
masterArn
- For Lambda@Edge functions, the ARN of the master function.public void setRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
revisionId
- Represents the latest updated revision of the function or alias.public String getRevisionId()
Represents the latest updated revision of the function or alias.
public CreateFunctionResult withRevisionId(String revisionId)
Represents the latest updated revision of the function or alias.
revisionId
- Represents the latest updated revision of the function or alias.public void setLayers(Collection<Layer> layers)
The function's layers
layers
- The function's layerspublic CreateFunctionResult withLayers(Layer... layers)
The function's layers
NOTE: This method appends the values to the existing list (if any). Use
setLayers(java.util.Collection)
or withLayers(java.util.Collection)
if you want to override the
existing values.
layers
- The function's layerspublic CreateFunctionResult withLayers(Collection<Layer> layers)
The function's layers
layers
- The function's layerspublic String toString()
toString
in class Object
Object.toString()
public CreateFunctionResult clone()
Copyright © 2019. All rights reserved.