Interface PrincipalResourcePermissions.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PrincipalResourcePermissions.Builder,PrincipalResourcePermissions>, SdkBuilder<PrincipalResourcePermissions.Builder,PrincipalResourcePermissions>, SdkPojo
Enclosing class:
PrincipalResourcePermissions

public static interface PrincipalResourcePermissions.Builder extends SdkPojo, CopyableBuilder<PrincipalResourcePermissions.Builder,PrincipalResourcePermissions>
  • Method Details

    • principal

      The Data Lake principal to be granted or revoked permissions.

      Parameters:
      principal - The Data Lake principal to be granted or revoked permissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The Data Lake principal to be granted or revoked permissions.

      This is a convenience method that creates an instance of the DataLakePrincipal.Builder avoiding the need to create one manually via DataLakePrincipal.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(DataLakePrincipal).

      Parameters:
      principal - a consumer that will call methods on DataLakePrincipal.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resource

      The resource where permissions are to be granted or revoked.

      Parameters:
      resource - The resource where permissions are to be granted or revoked.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource where permissions are to be granted or revoked.

      This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resource(Resource).

      Parameters:
      resource - a consumer that will call methods on Resource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • permissionsWithStrings

      PrincipalResourcePermissions.Builder permissionsWithStrings(Collection<String> permissions)

      The permissions to be granted or revoked on the resource.

      Parameters:
      permissions - The permissions to be granted or revoked on the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithStrings

      PrincipalResourcePermissions.Builder permissionsWithStrings(String... permissions)

      The permissions to be granted or revoked on the resource.

      Parameters:
      permissions - The permissions to be granted or revoked on the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      The permissions to be granted or revoked on the resource.

      Parameters:
      permissions - The permissions to be granted or revoked on the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      PrincipalResourcePermissions.Builder permissions(Permission... permissions)

      The permissions to be granted or revoked on the resource.

      Parameters:
      permissions - The permissions to be granted or revoked on the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithGrantOptionWithStrings

      PrincipalResourcePermissions.Builder permissionsWithGrantOptionWithStrings(Collection<String> permissionsWithGrantOption)

      Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).

      Parameters:
      permissionsWithGrantOption - Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithGrantOptionWithStrings

      PrincipalResourcePermissions.Builder permissionsWithGrantOptionWithStrings(String... permissionsWithGrantOption)

      Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).

      Parameters:
      permissionsWithGrantOption - Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithGrantOption

      PrincipalResourcePermissions.Builder permissionsWithGrantOption(Collection<Permission> permissionsWithGrantOption)

      Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).

      Parameters:
      permissionsWithGrantOption - Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissionsWithGrantOption

      PrincipalResourcePermissions.Builder permissionsWithGrantOption(Permission... permissionsWithGrantOption)

      Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).

      Parameters:
      permissionsWithGrantOption - Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalDetails

      PrincipalResourcePermissions.Builder additionalDetails(DetailsMap additionalDetails)

      This attribute can be used to return any additional details of PrincipalResourcePermissions. Currently returns only as a RAM resource share ARN.

      Parameters:
      additionalDetails - This attribute can be used to return any additional details of PrincipalResourcePermissions. Currently returns only as a RAM resource share ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalDetails

      default PrincipalResourcePermissions.Builder additionalDetails(Consumer<DetailsMap.Builder> additionalDetails)

      This attribute can be used to return any additional details of PrincipalResourcePermissions. Currently returns only as a RAM resource share ARN.

      This is a convenience method that creates an instance of the DetailsMap.Builder avoiding the need to create one manually via DetailsMap.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to additionalDetails(DetailsMap).

      Parameters:
      additionalDetails - a consumer that will call methods on DetailsMap.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastUpdated

      The date and time when the resource was last updated.

      Parameters:
      lastUpdated - The date and time when the resource was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedBy

      PrincipalResourcePermissions.Builder lastUpdatedBy(String lastUpdatedBy)

      The user who updated the record.

      Parameters:
      lastUpdatedBy - The user who updated the record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.