Class CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroup.WorkGroupConfigurationUpdatesProperty>
- Enclosing interface:
CfnWorkGroup.WorkGroupConfigurationUpdatesProperty
@Stability(Stable)
public static final class CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroup.WorkGroupConfigurationUpdatesProperty>
A builder for
CfnWorkGroup.WorkGroupConfigurationUpdatesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalConfiguration
(String additionalConfiguration) build()
Builds the configured instance.bytesScannedCutoffPerQuery
(Number bytesScannedCutoffPerQuery) customerContentEncryptionConfiguration
(IResolvable customerContentEncryptionConfiguration) customerContentEncryptionConfiguration
(CfnWorkGroup.CustomerContentEncryptionConfigurationProperty customerContentEncryptionConfiguration) enforceWorkGroupConfiguration
(Boolean enforceWorkGroupConfiguration) enforceWorkGroupConfiguration
(IResolvable enforceWorkGroupConfiguration) engineVersion
(IResolvable engineVersion) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getEngineVersion()
engineVersion
(CfnWorkGroup.EngineVersionProperty engineVersion) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getEngineVersion()
executionRole
(String executionRole) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getExecutionRole()
publishCloudWatchMetricsEnabled
(Boolean publishCloudWatchMetricsEnabled) publishCloudWatchMetricsEnabled
(IResolvable publishCloudWatchMetricsEnabled) removeBytesScannedCutoffPerQuery
(Boolean removeBytesScannedCutoffPerQuery) removeBytesScannedCutoffPerQuery
(IResolvable removeBytesScannedCutoffPerQuery) removeCustomerContentEncryptionConfiguration
(Boolean removeCustomerContentEncryptionConfiguration) removeCustomerContentEncryptionConfiguration
(IResolvable removeCustomerContentEncryptionConfiguration) requesterPaysEnabled
(Boolean requesterPaysEnabled) requesterPaysEnabled
(IResolvable requesterPaysEnabled) resultConfigurationUpdates
(IResolvable resultConfigurationUpdates) resultConfigurationUpdates
(CfnWorkGroup.ResultConfigurationUpdatesProperty resultConfigurationUpdates)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder additionalConfiguration(String additionalConfiguration) - Parameters:
additionalConfiguration
- Additional Configuration that are passed to Athena Spark Calculations running in this workgroup.- Returns:
this
-
bytesScannedCutoffPerQuery
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder bytesScannedCutoffPerQuery(Number bytesScannedCutoffPerQuery) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getBytesScannedCutoffPerQuery()
- Parameters:
bytesScannedCutoffPerQuery
- The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.- Returns:
this
-
customerContentEncryptionConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder customerContentEncryptionConfiguration(IResolvable customerContentEncryptionConfiguration) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getCustomerContentEncryptionConfiguration()
- Parameters:
customerContentEncryptionConfiguration
- Indicates the KMS key for encrypting notebook content.- Returns:
this
-
customerContentEncryptionConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder customerContentEncryptionConfiguration(CfnWorkGroup.CustomerContentEncryptionConfigurationProperty customerContentEncryptionConfiguration) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getCustomerContentEncryptionConfiguration()
- Parameters:
customerContentEncryptionConfiguration
- Indicates the KMS key for encrypting notebook content.- Returns:
this
-
enforceWorkGroupConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder enforceWorkGroupConfiguration(Boolean enforceWorkGroupConfiguration) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getEnforceWorkGroupConfiguration()
- Parameters:
enforceWorkGroupConfiguration
- If set to "true", the settings for the workgroup override client-side settings. If set to "false", client-side settings are used- Returns:
this
-
enforceWorkGroupConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder enforceWorkGroupConfiguration(IResolvable enforceWorkGroupConfiguration) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getEnforceWorkGroupConfiguration()
- Parameters:
enforceWorkGroupConfiguration
- If set to "true", the settings for the workgroup override client-side settings. If set to "false", client-side settings are used- Returns:
this
-
engineVersion
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder engineVersion(IResolvable engineVersion) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getEngineVersion()
- Parameters:
engineVersion
- The Athena engine version for running queries.- Returns:
this
-
engineVersion
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder engineVersion(CfnWorkGroup.EngineVersionProperty engineVersion) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getEngineVersion()
- Parameters:
engineVersion
- The Athena engine version for running queries.- Returns:
this
-
executionRole
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder executionRole(String executionRole) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getExecutionRole()
- Parameters:
executionRole
- Execution Role ARN required to run Athena Spark Calculations.- Returns:
this
-
publishCloudWatchMetricsEnabled
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder publishCloudWatchMetricsEnabled(Boolean publishCloudWatchMetricsEnabled) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getPublishCloudWatchMetricsEnabled()
- Parameters:
publishCloudWatchMetricsEnabled
- Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.- Returns:
this
-
publishCloudWatchMetricsEnabled
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder publishCloudWatchMetricsEnabled(IResolvable publishCloudWatchMetricsEnabled) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getPublishCloudWatchMetricsEnabled()
- Parameters:
publishCloudWatchMetricsEnabled
- Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.- Returns:
this
-
removeBytesScannedCutoffPerQuery
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder removeBytesScannedCutoffPerQuery(Boolean removeBytesScannedCutoffPerQuery) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getRemoveBytesScannedCutoffPerQuery()
- Parameters:
removeBytesScannedCutoffPerQuery
- Indicates that the data usage control limit per query is removed.- Returns:
this
-
removeBytesScannedCutoffPerQuery
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder removeBytesScannedCutoffPerQuery(IResolvable removeBytesScannedCutoffPerQuery) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getRemoveBytesScannedCutoffPerQuery()
- Parameters:
removeBytesScannedCutoffPerQuery
- Indicates that the data usage control limit per query is removed.- Returns:
this
-
removeCustomerContentEncryptionConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder removeCustomerContentEncryptionConfiguration(Boolean removeCustomerContentEncryptionConfiguration) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getRemoveCustomerContentEncryptionConfiguration()
- Parameters:
removeCustomerContentEncryptionConfiguration
- the value to be set.- Returns:
this
-
removeCustomerContentEncryptionConfiguration
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder removeCustomerContentEncryptionConfiguration(IResolvable removeCustomerContentEncryptionConfiguration) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getRemoveCustomerContentEncryptionConfiguration()
- Parameters:
removeCustomerContentEncryptionConfiguration
- the value to be set.- Returns:
this
-
requesterPaysEnabled
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder requesterPaysEnabled(Boolean requesterPaysEnabled) - Parameters:
requesterPaysEnabled
- If set to true, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error.- Returns:
this
-
requesterPaysEnabled
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder requesterPaysEnabled(IResolvable requesterPaysEnabled) - Parameters:
requesterPaysEnabled
- If set to true, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error.- Returns:
this
-
resultConfigurationUpdates
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder resultConfigurationUpdates(IResolvable resultConfigurationUpdates) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getResultConfigurationUpdates()
- Parameters:
resultConfigurationUpdates
- The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results.- Returns:
this
-
resultConfigurationUpdates
@Stability(Stable) public CfnWorkGroup.WorkGroupConfigurationUpdatesProperty.Builder resultConfigurationUpdates(CfnWorkGroup.ResultConfigurationUpdatesProperty resultConfigurationUpdates) Sets the value ofCfnWorkGroup.WorkGroupConfigurationUpdatesProperty.getResultConfigurationUpdates()
- Parameters:
resultConfigurationUpdates
- The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkGroup.WorkGroupConfigurationUpdatesProperty>
- Returns:
- a new instance of
CfnWorkGroup.WorkGroupConfigurationUpdatesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-