Class CfnServerlessCache.DataStorageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnServerlessCache.DataStorageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCache.DataStorageProperty>
- Enclosing interface:
CfnServerlessCache.DataStorageProperty
@Stability(Stable)
public static final class CfnServerlessCache.DataStorageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCache.DataStorageProperty>
A builder for
CfnServerlessCache.DataStorageProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServerlessCache.DataStorageProperty.getMaximum()Sets the value ofCfnServerlessCache.DataStorageProperty.getMinimum()Sets the value ofCfnServerlessCache.DataStorageProperty.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnServerlessCache.DataStorageProperty.getUnit()- Parameters:
unit- The unit that the storage is measured in, in GB. This parameter is required.- Returns:
this
-
maximum
Sets the value ofCfnServerlessCache.DataStorageProperty.getMaximum()- Parameters:
maximum- The upper limit for data storage the cache is set to use.- Returns:
this
-
minimum
Sets the value ofCfnServerlessCache.DataStorageProperty.getMinimum()- Parameters:
minimum- The lower limit for data storage the cache is set to use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCache.DataStorageProperty>- Returns:
- a new instance of
CfnServerlessCache.DataStorageProperty - Throws:
NullPointerException- if any required attribute was not provided
-