Class CfnCapacityReservationProps.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnCapacityReservationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservationProps>
- Enclosing interface:
CfnCapacityReservationProps
@Stability(Stable)
public static final class CfnCapacityReservationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservationProps>
A builder for
CfnCapacityReservationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.capacityAssignmentConfiguration
(IResolvable capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationProps.getCapacityAssignmentConfiguration()
capacityAssignmentConfiguration
(CfnCapacityReservation.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationProps.getCapacityAssignmentConfiguration()
Sets the value ofCfnCapacityReservationProps.getName()
Sets the value ofCfnCapacityReservationProps.getTags()
targetDpus
(Number targetDpus) Sets the value ofCfnCapacityReservationProps.getTargetDpus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCapacityReservationProps.getName()
- Parameters:
name
- The name of the capacity reservation. This parameter is required.- Returns:
this
-
targetDpus
Sets the value ofCfnCapacityReservationProps.getTargetDpus()
- Parameters:
targetDpus
- The number of data processing units requested. This parameter is required.- Returns:
this
-
capacityAssignmentConfiguration
@Stability(Stable) public CfnCapacityReservationProps.Builder capacityAssignmentConfiguration(IResolvable capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationProps.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 CfnCapacityReservationProps.Builder capacityAssignmentConfiguration(CfnCapacityReservation.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) Sets the value ofCfnCapacityReservationProps.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
-
tags
Sets the value ofCfnCapacityReservationProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to the capacity reservation. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCapacityReservationProps>
- Returns:
- a new instance of
CfnCapacityReservationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-