Class CfnCapacityReservationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.athena.CfnCapacityReservationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservationMixinProps>
- Enclosing interface:
CfnCapacityReservationMixinProps
@Stability(Stable)
public static final class CfnCapacityReservationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservationMixinProps>
A builder for
CfnCapacityReservationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityAssignmentConfiguration(CfnCapacityReservationPropsMixin.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationMixinProps.getCapacityAssignmentConfiguration()capacityAssignmentConfiguration(IResolvable capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationMixinProps.getCapacityAssignmentConfiguration()Sets the value ofCfnCapacityReservationMixinProps.getName()Sets the value ofCfnCapacityReservationMixinProps.getTags()targetDpus(Number targetDpus) Sets the value ofCfnCapacityReservationMixinProps.getTargetDpus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityAssignmentConfiguration
@Stability(Stable) public CfnCapacityReservationMixinProps.Builder capacityAssignmentConfiguration(IResolvable capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationMixinProps.getCapacityAssignmentConfiguration()- Parameters:
capacityAssignmentConfiguration- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.- Returns:
this
-
capacityAssignmentConfiguration
@Stability(Stable) public CfnCapacityReservationMixinProps.Builder capacityAssignmentConfiguration(CfnCapacityReservationPropsMixin.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationMixinProps.getCapacityAssignmentConfiguration()- Parameters:
capacityAssignmentConfiguration- Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.- Returns:
this
-
name
Sets the value ofCfnCapacityReservationMixinProps.getName()- Parameters:
name- The name of the capacity reservation.- Returns:
this
-
tags
@Stability(Stable) public CfnCapacityReservationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnCapacityReservationMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the capacity reservation. For more information, see Tag .- Returns:
this
-
targetDpus
Sets the value ofCfnCapacityReservationMixinProps.getTargetDpus()- Parameters:
targetDpus- The number of data processing units requested.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityReservationMixinProps>- Returns:
- a new instance of
CfnCapacityReservationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-