Class CfnVolumePropsMixin.AggregateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnVolumePropsMixin.AggregateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumePropsMixin.AggregateConfigurationProperty>
- Enclosing interface:
CfnVolumePropsMixin.AggregateConfigurationProperty
@Stability(Stable)
public static final class CfnVolumePropsMixin.AggregateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumePropsMixin.AggregateConfigurationProperty>
A builder for
CfnVolumePropsMixin.AggregateConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregates(List<String> aggregates) Sets the value ofCfnVolumePropsMixin.AggregateConfigurationProperty.getAggregates()build()Builds the configured instance.constituentsPerAggregate(Number constituentsPerAggregate)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregates
@Stability(Stable) public CfnVolumePropsMixin.AggregateConfigurationProperty.Builder aggregates(List<String> aggregates) Sets the value ofCfnVolumePropsMixin.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
Aggregatesare not are not formatted asaggrX, where X is a number between 1 and 12. - The value of
Aggregatescontains 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 CfnVolumePropsMixin.AggregateConfigurationProperty.Builder constituentsPerAggregate(Number constituentsPerAggregate) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumePropsMixin.AggregateConfigurationProperty>- Returns:
- a new instance of
CfnVolumePropsMixin.AggregateConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-