Class CfnWorkgroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshiftserverless.CfnWorkgroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkgroupMixinProps>
- Enclosing interface:
CfnWorkgroupMixinProps
@Stability(Stable)
public static final class CfnWorkgroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkgroupMixinProps>
A builder for
CfnWorkgroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseCapacity(Number baseCapacity) Sets the value ofCfnWorkgroupMixinProps.getBaseCapacity()build()Builds the configured instance.configParameters(List<? extends Object> configParameters) Sets the value ofCfnWorkgroupMixinProps.getConfigParameters()configParameters(IResolvable configParameters) Sets the value ofCfnWorkgroupMixinProps.getConfigParameters()enhancedVpcRouting(Boolean enhancedVpcRouting) Sets the value ofCfnWorkgroupMixinProps.getEnhancedVpcRouting()enhancedVpcRouting(IResolvable enhancedVpcRouting) Sets the value ofCfnWorkgroupMixinProps.getEnhancedVpcRouting()maxCapacity(Number maxCapacity) Sets the value ofCfnWorkgroupMixinProps.getMaxCapacity()namespaceName(String namespaceName) Sets the value ofCfnWorkgroupMixinProps.getNamespaceName()Sets the value ofCfnWorkgroupMixinProps.getPort()pricePerformanceTarget(CfnWorkgroupPropsMixin.PerformanceTargetProperty pricePerformanceTarget) Sets the value ofCfnWorkgroupMixinProps.getPricePerformanceTarget()pricePerformanceTarget(IResolvable pricePerformanceTarget) Sets the value ofCfnWorkgroupMixinProps.getPricePerformanceTarget()publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnWorkgroupMixinProps.getPubliclyAccessible()publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnWorkgroupMixinProps.getPubliclyAccessible()recoveryPointId(String recoveryPointId) Sets the value ofCfnWorkgroupMixinProps.getRecoveryPointId()securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnWorkgroupMixinProps.getSecurityGroupIds()snapshotArn(String snapshotArn) Sets the value ofCfnWorkgroupMixinProps.getSnapshotArn()snapshotName(String snapshotName) Sets the value ofCfnWorkgroupMixinProps.getSnapshotName()snapshotOwnerAccount(String snapshotOwnerAccount) Sets the value ofCfnWorkgroupMixinProps.getSnapshotOwnerAccount()Sets the value ofCfnWorkgroupMixinProps.getSubnetIds()Sets the value ofCfnWorkgroupMixinProps.getTags()Sets the value ofCfnWorkgroupMixinProps.getTrackName()Sets the value ofCfnWorkgroupMixinProps.getWorkgroup()workgroup(IResolvable workgroup) Sets the value ofCfnWorkgroupMixinProps.getWorkgroup()workgroupName(String workgroupName) Sets the value ofCfnWorkgroupMixinProps.getWorkgroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseCapacity
Sets the value ofCfnWorkgroupMixinProps.getBaseCapacity()- Parameters:
baseCapacity- The base compute capacity of the workgroup in Redshift Processing Units (RPUs).- Returns:
this
-
configParameters
@Stability(Stable) public CfnWorkgroupMixinProps.Builder configParameters(IResolvable configParameters) Sets the value ofCfnWorkgroupMixinProps.getConfigParameters()- Parameters:
configParameters- The key of the parameter. The options areauto_mv,datestyle,enable_case_sensitive_identifier,enable_user_activity_logging,query_group,search_path,require_ssl,use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless .- Returns:
this
-
configParameters
@Stability(Stable) public CfnWorkgroupMixinProps.Builder configParameters(List<? extends Object> configParameters) Sets the value ofCfnWorkgroupMixinProps.getConfigParameters()- Parameters:
configParameters- The key of the parameter. The options areauto_mv,datestyle,enable_case_sensitive_identifier,enable_user_activity_logging,query_group,search_path,require_ssl,use_fips_ssl, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless .- Returns:
this
-
enhancedVpcRouting
@Stability(Stable) public CfnWorkgroupMixinProps.Builder enhancedVpcRouting(Boolean enhancedVpcRouting) Sets the value ofCfnWorkgroupMixinProps.getEnhancedVpcRouting()- Parameters:
enhancedVpcRouting- The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.- Returns:
this
-
enhancedVpcRouting
@Stability(Stable) public CfnWorkgroupMixinProps.Builder enhancedVpcRouting(IResolvable enhancedVpcRouting) Sets the value ofCfnWorkgroupMixinProps.getEnhancedVpcRouting()- Parameters:
enhancedVpcRouting- The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.- Returns:
this
-
maxCapacity
Sets the value ofCfnWorkgroupMixinProps.getMaxCapacity()- Parameters:
maxCapacity- The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.- Returns:
this
-
namespaceName
Sets the value ofCfnWorkgroupMixinProps.getNamespaceName()- Parameters:
namespaceName- The namespace the workgroup is associated with.- Returns:
this
-
port
Sets the value ofCfnWorkgroupMixinProps.getPort()- Parameters:
port- The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.- Returns:
this
-
pricePerformanceTarget
@Stability(Stable) public CfnWorkgroupMixinProps.Builder pricePerformanceTarget(IResolvable pricePerformanceTarget) Sets the value ofCfnWorkgroupMixinProps.getPricePerformanceTarget()- Parameters:
pricePerformanceTarget- An object that represents the price performance target settings for the workgroup.- Returns:
this
-
pricePerformanceTarget
@Stability(Stable) public CfnWorkgroupMixinProps.Builder pricePerformanceTarget(CfnWorkgroupPropsMixin.PerformanceTargetProperty pricePerformanceTarget) Sets the value ofCfnWorkgroupMixinProps.getPricePerformanceTarget()- Parameters:
pricePerformanceTarget- An object that represents the price performance target settings for the workgroup.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnWorkgroupMixinProps.Builder publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnWorkgroupMixinProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- A value that specifies whether the workgroup can be accessible from a public network.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnWorkgroupMixinProps.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnWorkgroupMixinProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- A value that specifies whether the workgroup can be accessible from a public network.- Returns:
this
-
recoveryPointId
Sets the value ofCfnWorkgroupMixinProps.getRecoveryPointId()- Parameters:
recoveryPointId- The recovery point id to restore from.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnWorkgroupMixinProps.Builder securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnWorkgroupMixinProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security group IDs to associate with the workgroup.- Returns:
this
-
snapshotArn
Sets the value ofCfnWorkgroupMixinProps.getSnapshotArn()- Parameters:
snapshotArn- The Amazon Resource Name (ARN) of the snapshot to restore from.- Returns:
this
-
snapshotName
Sets the value ofCfnWorkgroupMixinProps.getSnapshotName()- Parameters:
snapshotName- The snapshot name to restore from.- Returns:
this
-
snapshotOwnerAccount
@Stability(Stable) public CfnWorkgroupMixinProps.Builder snapshotOwnerAccount(String snapshotOwnerAccount) Sets the value ofCfnWorkgroupMixinProps.getSnapshotOwnerAccount()- Parameters:
snapshotOwnerAccount- The Amazon Web Services account that owns the snapshot.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnWorkgroupMixinProps.Builder subnetIds(List<? extends Object> subnetIds) Sets the value ofCfnWorkgroupMixinProps.getSubnetIds()- Parameters:
subnetIds- A list of subnet IDs the workgroup is associated with.- Returns:
this
-
tags
Sets the value ofCfnWorkgroupMixinProps.getTags()- Parameters:
tags- The map of the key-value pairs used to tag the workgroup.- Returns:
this
-
trackName
Sets the value ofCfnWorkgroupMixinProps.getTrackName()- Parameters:
trackName- An optional parameter for the name of the track for the workgroup. If you don't provide a track name, the workgroup is assigned to the current track.- Returns:
this
-
workgroup
Sets the value ofCfnWorkgroupMixinProps.getWorkgroup()- Parameters:
workgroup- The collection of computing resources from which an endpoint is created.- Returns:
this
-
workgroup
@Stability(Stable) public CfnWorkgroupMixinProps.Builder workgroup(CfnWorkgroupPropsMixin.WorkgroupProperty workgroup) Sets the value ofCfnWorkgroupMixinProps.getWorkgroup()- Parameters:
workgroup- The collection of computing resources from which an endpoint is created.- Returns:
this
-
workgroupName
Sets the value ofCfnWorkgroupMixinProps.getWorkgroupName()- Parameters:
workgroupName- The name of the workgroup.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkgroupMixinProps>- Returns:
- a new instance of
CfnWorkgroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-