Class CfnEndpointAuthorizationProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnEndpointAuthorizationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointAuthorizationProps>
- Enclosing interface:
CfnEndpointAuthorizationProps
@Stability(Stable)
public static final class CfnEndpointAuthorizationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointAuthorizationProps>
A builder for
CfnEndpointAuthorizationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnEndpointAuthorizationProps.getAccount()build()Builds the configured instance.clusterIdentifier(String clusterIdentifier) Sets the value ofCfnEndpointAuthorizationProps.getClusterIdentifier()Sets the value ofCfnEndpointAuthorizationProps.getForce()force(IResolvable force) Sets the value ofCfnEndpointAuthorizationProps.getForce()Sets the value ofCfnEndpointAuthorizationProps.getVpcIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
Sets the value ofCfnEndpointAuthorizationProps.getAccount()- Parameters:
account- The AWS account ID of either the cluster owner (grantor) or grantee. This parameter is required. IfGranteeparameter is true, then theAccountvalue is of the grantor.- Returns:
this
-
clusterIdentifier
@Stability(Stable) public CfnEndpointAuthorizationProps.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofCfnEndpointAuthorizationProps.getClusterIdentifier()- Parameters:
clusterIdentifier- The cluster identifier. This parameter is required.- Returns:
this
-
force
Sets the value ofCfnEndpointAuthorizationProps.getForce()- Parameters:
force- Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.- Returns:
this
-
force
Sets the value ofCfnEndpointAuthorizationProps.getForce()- Parameters:
force- Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.- Returns:
this
-
vpcIds
Sets the value ofCfnEndpointAuthorizationProps.getVpcIds()- Parameters:
vpcIds- The virtual private cloud (VPC) identifiers to grant access to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointAuthorizationProps>- Returns:
- a new instance of
CfnEndpointAuthorizationProps - Throws:
NullPointerException- if any required attribute was not provided
-