Class CfnDatabase.PrincipalPrivilegesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnDatabase.PrincipalPrivilegesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatabase.PrincipalPrivilegesProperty>
- Enclosing interface:
CfnDatabase.PrincipalPrivilegesProperty
@Stability(Stable)
public static final class CfnDatabase.PrincipalPrivilegesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatabase.PrincipalPrivilegesProperty>
A builder for
CfnDatabase.PrincipalPrivilegesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.permissions(List<String> permissions) Sets the value ofCfnDatabase.PrincipalPrivilegesProperty.getPermissions()principal(IResolvable principal) Sets the value ofCfnDatabase.PrincipalPrivilegesProperty.getPrincipal()principal(CfnDatabase.DataLakePrincipalProperty principal) Sets the value ofCfnDatabase.PrincipalPrivilegesProperty.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
permissions
@Stability(Stable) public CfnDatabase.PrincipalPrivilegesProperty.Builder permissions(List<String> permissions) Sets the value ofCfnDatabase.PrincipalPrivilegesProperty.getPermissions()- Parameters:
permissions- The permissions that are granted to the principal.- Returns:
this
-
principal
@Stability(Stable) public CfnDatabase.PrincipalPrivilegesProperty.Builder principal(IResolvable principal) Sets the value ofCfnDatabase.PrincipalPrivilegesProperty.getPrincipal()- Parameters:
principal- The principal who is granted permissions.- Returns:
this
-
principal
@Stability(Stable) public CfnDatabase.PrincipalPrivilegesProperty.Builder principal(CfnDatabase.DataLakePrincipalProperty principal) Sets the value ofCfnDatabase.PrincipalPrivilegesProperty.getPrincipal()- Parameters:
principal- The principal who is granted permissions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatabase.PrincipalPrivilegesProperty>- Returns:
- a new instance of
CfnDatabase.PrincipalPrivilegesProperty - Throws:
NullPointerException- if any required attribute was not provided
-