Class LambdaToElasticachememcachedProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdaelasticachememcached.LambdaToElasticachememcachedProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToElasticachememcachedProps>
- Enclosing interface:
LambdaToElasticachememcachedProps
public static final class LambdaToElasticachememcachedProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToElasticachememcachedProps>
A builder for
LambdaToElasticachememcachedProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheEndpointEnvironmentVariableName(String cacheEndpointEnvironmentVariableName) cacheProps(Object cacheProps) Sets the value ofLambdaToElasticachememcachedProps.getCacheProps()existingCache(software.amazon.awscdk.services.elasticache.CfnCacheCluster existingCache) Sets the value ofLambdaToElasticachememcachedProps.getExistingCache()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToElasticachememcachedProps.getExistingLambdaObj()existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToElasticachememcachedProps.getExistingVpc()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToElasticachememcachedProps.getLambdaFunctionProps()vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToElasticachememcachedProps.getVpcProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheEndpointEnvironmentVariableName
public LambdaToElasticachememcachedProps.Builder cacheEndpointEnvironmentVariableName(String cacheEndpointEnvironmentVariableName) - Parameters:
cacheEndpointEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the cache endpoint.- Returns:
this
-
cacheProps
Sets the value ofLambdaToElasticachememcachedProps.getCacheProps()- Parameters:
cacheProps- Optional user provided props to override the default props for the Elasticache cache. Providing both this andexistingCachewill cause an error. If you provide this, you must provide the associated VPC in existingVpc.- Returns:
this
-
existingCache
public LambdaToElasticachememcachedProps.Builder existingCache(software.amazon.awscdk.services.elasticache.CfnCacheCluster existingCache) Sets the value ofLambdaToElasticachememcachedProps.getExistingCache()- Parameters:
existingCache- Existing instance of Elasticache Cluster object, providing both this andcachePropswill cause an error.- Returns:
this
-
existingLambdaObj
public LambdaToElasticachememcachedProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToElasticachememcachedProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
existingVpc
public LambdaToElasticachememcachedProps.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToElasticachememcachedProps.getExistingVpc()- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case).- Returns:
this
-
lambdaFunctionProps
public LambdaToElasticachememcachedProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToElasticachememcachedProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- Optional user provided props to override the default props for the Lambda function.- Returns:
this
-
vpcProps
public LambdaToElasticachememcachedProps.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToElasticachememcachedProps.getVpcProps()- Parameters:
vpcProps- Properties to override default properties if deployVpc is true.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToElasticachememcachedProps>- Returns:
- a new instance of
LambdaToElasticachememcachedProps - Throws:
NullPointerException- if any required attribute was not provided
-