@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsLambdaFunctionDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about a function's configuration.
Constructor and Description |
---|
AwsLambdaFunctionDetails() |
Modifier and Type | Method and Description |
---|---|
AwsLambdaFunctionDetails |
clone() |
boolean |
equals(Object obj) |
AwsLambdaFunctionCode |
getCode()
An
AwsLambdaFunctionCode object. |
String |
getCodeSha256()
The SHA256 hash of the function's deployment package.
|
AwsLambdaFunctionDeadLetterConfig |
getDeadLetterConfig()
The function's dead letter queue.
|
AwsLambdaFunctionEnvironment |
getEnvironment()
The function's environment variables.
|
String |
getFunctionName()
The name of the function.
|
String |
getHandler()
The function that Lambda calls to begin executing your function.
|
String |
getKmsKeyArn()
The KMS key that is used to encrypt the function's environment variables.
|
String |
getLastModified()
Indicates when the function was last updated.
|
List<AwsLambdaFunctionLayer> |
getLayers()
The function's layers.
|
String |
getMasterArn()
For Lambda@Edge functions, the ARN of the master function.
|
Integer |
getMemorySize()
The memory that is allocated to the function.
|
String |
getRevisionId()
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 stopping it.
|
AwsLambdaFunctionTracingConfig |
getTracingConfig()
The function's X-Ray tracing configuration.
|
String |
getVersion()
The version of the Lambda function.
|
AwsLambdaFunctionVpcConfig |
getVpcConfig()
The function's networking configuration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(AwsLambdaFunctionCode code)
An
AwsLambdaFunctionCode object. |
void |
setCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
void |
setDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
void |
setEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
|
void |
setFunctionName(String functionName)
The name of the function.
|
void |
setHandler(String handler)
The function that Lambda calls to begin executing your function.
|
void |
setKmsKeyArn(String kmsKeyArn)
The KMS key that is used to encrypt the function's environment variables.
|
void |
setLastModified(String lastModified)
Indicates when the function was last updated.
|
void |
setLayers(Collection<AwsLambdaFunctionLayer> 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 that is allocated to the function.
|
void |
setRevisionId(String revisionId)
The latest updated revision of the function or alias.
|
void |
setRole(String role)
The function's execution role.
|
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 stopping it.
|
void |
setTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
|
void |
setVersion(String version)
The version of the Lambda function.
|
void |
setVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
|
String |
toString()
Returns a string representation of this object.
|
AwsLambdaFunctionDetails |
withCode(AwsLambdaFunctionCode code)
An
AwsLambdaFunctionCode object. |
AwsLambdaFunctionDetails |
withCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
AwsLambdaFunctionDetails |
withDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
AwsLambdaFunctionDetails |
withEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
|
AwsLambdaFunctionDetails |
withFunctionName(String functionName)
The name of the function.
|
AwsLambdaFunctionDetails |
withHandler(String handler)
The function that Lambda calls to begin executing your function.
|
AwsLambdaFunctionDetails |
withKmsKeyArn(String kmsKeyArn)
The KMS key that is used to encrypt the function's environment variables.
|
AwsLambdaFunctionDetails |
withLastModified(String lastModified)
Indicates when the function was last updated.
|
AwsLambdaFunctionDetails |
withLayers(AwsLambdaFunctionLayer... layers)
The function's layers.
|
AwsLambdaFunctionDetails |
withLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
|
AwsLambdaFunctionDetails |
withMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
|
AwsLambdaFunctionDetails |
withMemorySize(Integer memorySize)
The memory that is allocated to the function.
|
AwsLambdaFunctionDetails |
withRevisionId(String revisionId)
The latest updated revision of the function or alias.
|
AwsLambdaFunctionDetails |
withRole(String role)
The function's execution role.
|
AwsLambdaFunctionDetails |
withRuntime(String runtime)
The runtime environment for the Lambda function.
|
AwsLambdaFunctionDetails |
withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
|
AwsLambdaFunctionDetails |
withTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
|
AwsLambdaFunctionDetails |
withVersion(String version)
The version of the Lambda function.
|
AwsLambdaFunctionDetails |
withVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
|
public void setCode(AwsLambdaFunctionCode code)
An AwsLambdaFunctionCode
object.
code
- An AwsLambdaFunctionCode
object.public AwsLambdaFunctionCode getCode()
An AwsLambdaFunctionCode
object.
AwsLambdaFunctionCode
object.public AwsLambdaFunctionDetails withCode(AwsLambdaFunctionCode code)
An AwsLambdaFunctionCode
object.
code
- An AwsLambdaFunctionCode
object.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 AwsLambdaFunctionDetails withCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
codeSha256
- The SHA256 hash of the function's deployment package.public void setDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.public AwsLambdaFunctionDeadLetterConfig getDeadLetterConfig()
The function's dead letter queue.
public AwsLambdaFunctionDetails withDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.public void setEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
environment
- The function's environment variables.public AwsLambdaFunctionEnvironment getEnvironment()
The function's environment variables.
public AwsLambdaFunctionDetails withEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
environment
- The function's environment variables.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 AwsLambdaFunctionDetails withFunctionName(String functionName)
The name of the function.
functionName
- The name of the function.public void setHandler(String handler)
The function that Lambda calls to begin executing your function.
handler
- The function that Lambda calls to begin executing your function.public String getHandler()
The function that Lambda calls to begin executing your function.
public AwsLambdaFunctionDetails withHandler(String handler)
The function that Lambda calls to begin executing your function.
handler
- The function that Lambda calls to begin executing your function.public void setKmsKeyArn(String 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.
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 String getKmsKeyArn()
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 AwsLambdaFunctionDetails withKmsKeyArn(String 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.
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 setLastModified(String 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. For example,
2020-03-22T13:22:13.933Z
.
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. For example, 2020-03-22T13:22:13.933Z
.
public String getLastModified()
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. 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. For example, 2020-03-22T13:22:13.933Z
.
public AwsLambdaFunctionDetails withLastModified(String 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. For example,
2020-03-22T13:22:13.933Z
.
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. For example, 2020-03-22T13:22:13.933Z
.
public List<AwsLambdaFunctionLayer> getLayers()
The function's layers.
public void setLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
layers
- The function's layers.public AwsLambdaFunctionDetails withLayers(AwsLambdaFunctionLayer... 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 layers.public AwsLambdaFunctionDetails withLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
layers
- The function's layers.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 AwsLambdaFunctionDetails 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 setMemorySize(Integer memorySize)
The memory that is allocated to the function.
memorySize
- The memory that is allocated to the function.public Integer getMemorySize()
The memory that is allocated to the function.
public AwsLambdaFunctionDetails withMemorySize(Integer memorySize)
The memory that is allocated to the function.
memorySize
- The memory that is allocated to the function.public void setRevisionId(String revisionId)
The latest updated revision of the function or alias.
revisionId
- The latest updated revision of the function or alias.public String getRevisionId()
The latest updated revision of the function or alias.
public AwsLambdaFunctionDetails withRevisionId(String revisionId)
The latest updated revision of the function or alias.
revisionId
- The latest updated revision of the function or alias.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 AwsLambdaFunctionDetails withRole(String role)
The function's execution role.
role
- The function's execution role.public void setRuntime(String runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.public String getRuntime()
The runtime environment for the Lambda function.
public AwsLambdaFunctionDetails withRuntime(String runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.public void setTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
timeout
- The amount of time that Lambda allows a function to run before stopping it.public Integer getTimeout()
The amount of time that Lambda allows a function to run before stopping it.
public AwsLambdaFunctionDetails withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
timeout
- The amount of time that Lambda allows a function to run before stopping it.public void setTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
tracingConfig
- The function's X-Ray tracing configuration.public AwsLambdaFunctionTracingConfig getTracingConfig()
The function's X-Ray tracing configuration.
public AwsLambdaFunctionDetails withTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
tracingConfig
- The function's X-Ray tracing configuration.public void setVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.public AwsLambdaFunctionVpcConfig getVpcConfig()
The function's networking configuration.
public AwsLambdaFunctionDetails withVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.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 AwsLambdaFunctionDetails withVersion(String version)
The version of the Lambda function.
version
- The version of the Lambda function.public String toString()
toString
in class Object
Object.toString()
public AwsLambdaFunctionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.