Interface PrincipalResourcePermissions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PrincipalResourcePermissions.Builder,
,PrincipalResourcePermissions> SdkBuilder<PrincipalResourcePermissions.Builder,
,PrincipalResourcePermissions> SdkPojo
- Enclosing class:
PrincipalResourcePermissions
-
Method Summary
Modifier and TypeMethodDescriptionadditionalDetails
(Consumer<DetailsMap.Builder> additionalDetails) This attribute can be used to return any additional details ofPrincipalResourcePermissions
.additionalDetails
(DetailsMap additionalDetails) This attribute can be used to return any additional details ofPrincipalResourcePermissions
.condition
(Consumer<Condition.Builder> condition) A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.lastUpdated
(Instant lastUpdated) The date and time when the resource was last updated.lastUpdatedBy
(String lastUpdatedBy) The user who updated the record.permissions
(Collection<Permission> permissions) The permissions to be granted or revoked on the resource.permissions
(Permission... permissions) The permissions to be granted or revoked on the resource.permissionsWithGrantOption
(Collection<Permission> permissionsWithGrantOption) Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).permissionsWithGrantOption
(Permission... permissionsWithGrantOption) Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).permissionsWithGrantOptionWithStrings
(String... permissionsWithGrantOption) Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).permissionsWithGrantOptionWithStrings
(Collection<String> permissionsWithGrantOption) Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).permissionsWithStrings
(String... permissions) The permissions to be granted or revoked on the resource.permissionsWithStrings
(Collection<String> permissions) The permissions to be granted or revoked on the resource.principal
(Consumer<DataLakePrincipal.Builder> principal) The Data Lake principal to be granted or revoked permissions.principal
(DataLakePrincipal principal) The Data Lake principal to be granted or revoked permissions.resource
(Consumer<Resource.Builder> resource) The resource where permissions are to be granted or revoked.The resource where permissions are to be granted or revoked.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
default PrincipalResourcePermissions.Builder principal(Consumer<DataLakePrincipal.Builder> principal) The Data Lake principal to be granted or revoked permissions.
This is a convenience method that creates an instance of theDataLakePrincipal.Builder
avoiding the need to create one manually viaDataLakePrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(DataLakePrincipal)
.- Parameters:
principal
- a consumer that will call methods onDataLakePrincipal.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 theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(Resource)
.- Parameters:
resource
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
condition
A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.
- Parameters:
condition
- A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.
This is a convenience method that creates an instance of theCondition.Builder
avoiding the need to create one manually viaCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocondition(Condition)
.- Parameters:
condition
- a consumer that will call methods onCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permissionsWithStrings
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
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
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
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 ofPrincipalResourcePermissions
. 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
This is a convenience method that creates an instance of thePrincipalResourcePermissions
. Currently returns only as a RAM resource share ARN.DetailsMap.Builder
avoiding the need to create one manually viaDetailsMap.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadditionalDetails(DetailsMap)
.- Parameters:
additionalDetails
- a consumer that will call methods onDetailsMap.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
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.
-