Class CfnWorkGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroupProps>
- Enclosing interface:
- CfnWorkGroupProps
@Stability(Stable)
public static final class CfnWorkGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroupProps>
A builder for
CfnWorkGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnWorkGroupProps.getDescription()
Sets the value ofCfnWorkGroupProps.getName()
recursiveDeleteOption
(Boolean recursiveDeleteOption) Sets the value ofCfnWorkGroupProps.getRecursiveDeleteOption()
recursiveDeleteOption
(IResolvable recursiveDeleteOption) Sets the value ofCfnWorkGroupProps.getRecursiveDeleteOption()
Sets the value ofCfnWorkGroupProps.getState()
Sets the value ofCfnWorkGroupProps.getTags()
workGroupConfiguration
(IResolvable workGroupConfiguration) Sets the value ofCfnWorkGroupProps.getWorkGroupConfiguration()
workGroupConfiguration
(CfnWorkGroup.WorkGroupConfigurationProperty workGroupConfiguration) Sets the value ofCfnWorkGroupProps.getWorkGroupConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnWorkGroupProps.getName()
- Parameters:
name
- The workgroup name. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnWorkGroupProps.getDescription()
- Parameters:
description
- The workgroup description.- Returns:
this
-
recursiveDeleteOption
@Stability(Stable) public CfnWorkGroupProps.Builder recursiveDeleteOption(Boolean recursiveDeleteOption) Sets the value ofCfnWorkGroupProps.getRecursiveDeleteOption()
- Parameters:
recursiveDeleteOption
- The option to delete a workgroup and its contents even if the workgroup contains any named queries. The default is false.- Returns:
this
-
recursiveDeleteOption
@Stability(Stable) public CfnWorkGroupProps.Builder recursiveDeleteOption(IResolvable recursiveDeleteOption) Sets the value ofCfnWorkGroupProps.getRecursiveDeleteOption()
- Parameters:
recursiveDeleteOption
- The option to delete a workgroup and its contents even if the workgroup contains any named queries. The default is false.- Returns:
this
-
state
Sets the value ofCfnWorkGroupProps.getState()
- Parameters:
state
- The state of the workgroup: ENABLED or DISABLED.- Returns:
this
-
tags
Sets the value ofCfnWorkGroupProps.getTags()
- Parameters:
tags
- The tags (key-value pairs) to associate with this resource.- Returns:
this
-
workGroupConfiguration
@Stability(Stable) public CfnWorkGroupProps.Builder workGroupConfiguration(IResolvable workGroupConfiguration) Sets the value ofCfnWorkGroupProps.getWorkGroupConfiguration()
- Parameters:
workGroupConfiguration
- The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified. TheEnforceWorkGroupConfiguration
option determines whether workgroup settings override client-side query settings.- Returns:
this
-
workGroupConfiguration
@Stability(Stable) public CfnWorkGroupProps.Builder workGroupConfiguration(CfnWorkGroup.WorkGroupConfigurationProperty workGroupConfiguration) Sets the value ofCfnWorkGroupProps.getWorkGroupConfiguration()
- Parameters:
workGroupConfiguration
- The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified. TheEnforceWorkGroupConfiguration
option determines whether workgroup settings override client-side query settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkGroupProps>
- Returns:
- a new instance of
CfnWorkGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-