Class CfnVolume.AggregateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnVolume.AggregateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume.AggregateConfigurationProperty>
- Enclosing interface:
CfnVolume.AggregateConfigurationProperty
@Stability(Stable)
public static final class CfnVolume.AggregateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume.AggregateConfigurationProperty>
A builder for
CfnVolume.AggregateConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaggregates
(List<String> aggregates) Sets the value ofCfnVolume.AggregateConfigurationProperty.getAggregates()
build()
Builds the configured instance.constituentsPerAggregate
(Number constituentsPerAggregate) Sets the value ofCfnVolume.AggregateConfigurationProperty.getConstituentsPerAggregate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregates
@Stability(Stable) public CfnVolume.AggregateConfigurationProperty.Builder aggregates(List<String> aggregates) Sets the value ofCfnVolume.AggregateConfigurationProperty.getAggregates()
- Parameters:
aggregates
- The list of aggregates that this volume resides on. Aggregates are storage pools which make up your primary storage tier. Each high-availability (HA) pair has one aggregate. The names of the aggregates map to the names of the aggregates in the ONTAP CLI and REST API. For FlexVols, there will always be a single entry.Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:
- The strings in the value of
Aggregates
are not are not formatted asaggrX
, where X is a number between 1 and 12. - The value of
Aggregates
contains aggregates that are not present. - One or more of the aggregates supplied are too close to the volume limit to support adding more volumes.
- The strings in the value of
- Returns:
this
-
constituentsPerAggregate
@Stability(Stable) public CfnVolume.AggregateConfigurationProperty.Builder constituentsPerAggregate(Number constituentsPerAggregate) Sets the value ofCfnVolume.AggregateConfigurationProperty.getConstituentsPerAggregate()
- Parameters:
constituentsPerAggregate
- Used to explicitly set the number of constituents within the FlexGroup per storage aggregate. This field is optional when creating a FlexGroup volume. If unspecified, the default value will be 8. This field cannot be provided when creating a FlexVol volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolume.AggregateConfigurationProperty>
- Returns:
- a new instance of
CfnVolume.AggregateConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-