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