Class CfnWorkgroup.WorkgroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.WorkgroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkgroup.WorkgroupProperty>
- Enclosing interface:
CfnWorkgroup.WorkgroupProperty
@Stability(Stable)
public static final class CfnWorkgroup.WorkgroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkgroup.WorkgroupProperty>
A builder for
CfnWorkgroup.WorkgroupProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbaseCapacity
(Number baseCapacity) Sets the value ofCfnWorkgroup.WorkgroupProperty.getBaseCapacity()
build()
Builds the configured instance.configParameters
(List<? extends Object> configParameters) Sets the value ofCfnWorkgroup.WorkgroupProperty.getConfigParameters()
configParameters
(IResolvable configParameters) Sets the value ofCfnWorkgroup.WorkgroupProperty.getConfigParameters()
creationDate
(String creationDate) Sets the value ofCfnWorkgroup.WorkgroupProperty.getCreationDate()
endpoint
(IResolvable endpoint) Sets the value ofCfnWorkgroup.WorkgroupProperty.getEndpoint()
endpoint
(CfnWorkgroup.EndpointProperty endpoint) Sets the value ofCfnWorkgroup.WorkgroupProperty.getEndpoint()
enhancedVpcRouting
(Boolean enhancedVpcRouting) Sets the value ofCfnWorkgroup.WorkgroupProperty.getEnhancedVpcRouting()
enhancedVpcRouting
(IResolvable enhancedVpcRouting) Sets the value ofCfnWorkgroup.WorkgroupProperty.getEnhancedVpcRouting()
maxCapacity
(Number maxCapacity) Sets the value ofCfnWorkgroup.WorkgroupProperty.getMaxCapacity()
namespaceName
(String namespaceName) Sets the value ofCfnWorkgroup.WorkgroupProperty.getNamespaceName()
publiclyAccessible
(Boolean publiclyAccessible) Sets the value ofCfnWorkgroup.WorkgroupProperty.getPubliclyAccessible()
publiclyAccessible
(IResolvable publiclyAccessible) Sets the value ofCfnWorkgroup.WorkgroupProperty.getPubliclyAccessible()
securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnWorkgroup.WorkgroupProperty.getSecurityGroupIds()
Sets the value ofCfnWorkgroup.WorkgroupProperty.getStatus()
Sets the value ofCfnWorkgroup.WorkgroupProperty.getSubnetIds()
workgroupArn
(String workgroupArn) Sets the value ofCfnWorkgroup.WorkgroupProperty.getWorkgroupArn()
workgroupId
(String workgroupId) Sets the value ofCfnWorkgroup.WorkgroupProperty.getWorkgroupId()
workgroupName
(String workgroupName) Sets the value ofCfnWorkgroup.WorkgroupProperty.getWorkgroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseCapacity
Sets the value ofCfnWorkgroup.WorkgroupProperty.getBaseCapacity()
- Parameters:
baseCapacity
- The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).- Returns:
this
-
configParameters
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder configParameters(IResolvable configParameters) Sets the value ofCfnWorkgroup.WorkgroupProperty.getConfigParameters()
- Parameters:
configParameters
- An array of parameters to set for advanced control over a database. 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 CfnWorkgroup.WorkgroupProperty.Builder configParameters(List<? extends Object> configParameters) Sets the value ofCfnWorkgroup.WorkgroupProperty.getConfigParameters()
- Parameters:
configParameters
- An array of parameters to set for advanced control over a database. 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
-
creationDate
Sets the value ofCfnWorkgroup.WorkgroupProperty.getCreationDate()
- Parameters:
creationDate
- The creation date of the workgroup.- Returns:
this
-
endpoint
Sets the value ofCfnWorkgroup.WorkgroupProperty.getEndpoint()
- Parameters:
endpoint
- The endpoint that is created from the workgroup.- Returns:
this
-
endpoint
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder endpoint(CfnWorkgroup.EndpointProperty endpoint) Sets the value ofCfnWorkgroup.WorkgroupProperty.getEndpoint()
- Parameters:
endpoint
- The endpoint that is created from the workgroup.- Returns:
this
-
enhancedVpcRouting
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder enhancedVpcRouting(Boolean enhancedVpcRouting) Sets the value ofCfnWorkgroup.WorkgroupProperty.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 CfnWorkgroup.WorkgroupProperty.Builder enhancedVpcRouting(IResolvable enhancedVpcRouting) Sets the value ofCfnWorkgroup.WorkgroupProperty.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 ofCfnWorkgroup.WorkgroupProperty.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
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder namespaceName(String namespaceName) Sets the value ofCfnWorkgroup.WorkgroupProperty.getNamespaceName()
- Parameters:
namespaceName
- The namespace the workgroup is associated with.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnWorkgroup.WorkgroupProperty.getPubliclyAccessible()
- Parameters:
publiclyAccessible
- A value that specifies whether the workgroup can be accessible from a public network.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnWorkgroup.WorkgroupProperty.getPubliclyAccessible()
- Parameters:
publiclyAccessible
- A value that specifies whether the workgroup can be accessible from a public network.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnWorkgroup.WorkgroupProperty.getSecurityGroupIds()
- Parameters:
securityGroupIds
- An array of security group IDs to associate with the workgroup.- Returns:
this
-
status
Sets the value ofCfnWorkgroup.WorkgroupProperty.getStatus()
- Parameters:
status
- The status of the workgroup.- Returns:
this
-
subnetIds
Sets the value ofCfnWorkgroup.WorkgroupProperty.getSubnetIds()
- Parameters:
subnetIds
- An array of subnet IDs the workgroup is associated with.- Returns:
this
-
workgroupArn
Sets the value ofCfnWorkgroup.WorkgroupProperty.getWorkgroupArn()
- Parameters:
workgroupArn
- The Amazon Resource Name (ARN) that links to the workgroup.- Returns:
this
-
workgroupId
Sets the value ofCfnWorkgroup.WorkgroupProperty.getWorkgroupId()
- Parameters:
workgroupId
- The unique identifier of the workgroup.- Returns:
this
-
workgroupName
@Stability(Stable) public CfnWorkgroup.WorkgroupProperty.Builder workgroupName(String workgroupName) Sets the value ofCfnWorkgroup.WorkgroupProperty.getWorkgroupName()
- Parameters:
workgroupName
- The name of the workgroup.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkgroup.WorkgroupProperty>
- Returns:
- a new instance of
CfnWorkgroup.WorkgroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-