Class CfnServerlessCache.CacheUsageLimitsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnServerlessCache.CacheUsageLimitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCache.CacheUsageLimitsProperty>
- Enclosing interface:
CfnServerlessCache.CacheUsageLimitsProperty
@Stability(Stable)
public static final class CfnServerlessCache.CacheUsageLimitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCache.CacheUsageLimitsProperty>
A builder for
CfnServerlessCache.CacheUsageLimitsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataStorage(IResolvable dataStorage) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getDataStorage()dataStorage(CfnServerlessCache.DataStorageProperty dataStorage) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getDataStorage()ecpuPerSecond(IResolvable ecpuPerSecond) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getEcpuPerSecond()ecpuPerSecond(CfnServerlessCache.ECPUPerSecondProperty ecpuPerSecond) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getEcpuPerSecond()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataStorage
@Stability(Stable) public CfnServerlessCache.CacheUsageLimitsProperty.Builder dataStorage(IResolvable dataStorage) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getDataStorage()- Parameters:
dataStorage- The maximum data storage limit in the cache, expressed in Gigabytes.- Returns:
this
-
dataStorage
@Stability(Stable) public CfnServerlessCache.CacheUsageLimitsProperty.Builder dataStorage(CfnServerlessCache.DataStorageProperty dataStorage) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getDataStorage()- Parameters:
dataStorage- The maximum data storage limit in the cache, expressed in Gigabytes.- Returns:
this
-
ecpuPerSecond
@Stability(Stable) public CfnServerlessCache.CacheUsageLimitsProperty.Builder ecpuPerSecond(IResolvable ecpuPerSecond) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getEcpuPerSecond()- Parameters:
ecpuPerSecond- The number of ElastiCache Processing Units (ECPU) the cache can consume per second.- Returns:
this
-
ecpuPerSecond
@Stability(Stable) public CfnServerlessCache.CacheUsageLimitsProperty.Builder ecpuPerSecond(CfnServerlessCache.ECPUPerSecondProperty ecpuPerSecond) Sets the value ofCfnServerlessCache.CacheUsageLimitsProperty.getEcpuPerSecond()- Parameters:
ecpuPerSecond- The number of ElastiCache Processing Units (ECPU) the cache can consume per second.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCache.CacheUsageLimitsProperty>- Returns:
- a new instance of
CfnServerlessCache.CacheUsageLimitsProperty - Throws:
NullPointerException- if any required attribute was not provided
-