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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PrincipalResourcePermissions.BuilderadditionalDetails(Consumer<DetailsMap.Builder> additionalDetails)This attribute can be used to return any additional details ofPrincipalResourcePermissions.PrincipalResourcePermissions.BuilderadditionalDetails(DetailsMap additionalDetails)This attribute can be used to return any additional details ofPrincipalResourcePermissions.PrincipalResourcePermissions.BuilderlastUpdated(Instant lastUpdated)The date and time when the resource was last updated.PrincipalResourcePermissions.BuilderlastUpdatedBy(String lastUpdatedBy)The user who updated the record.PrincipalResourcePermissions.Builderpermissions(Collection<Permission> permissions)The permissions to be granted or revoked on the resource.PrincipalResourcePermissions.Builderpermissions(Permission... permissions)The permissions to be granted or revoked on the resource.PrincipalResourcePermissions.BuilderpermissionsWithGrantOption(Collection<Permission> permissionsWithGrantOption)Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).PrincipalResourcePermissions.BuilderpermissionsWithGrantOption(Permission... permissionsWithGrantOption)Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).PrincipalResourcePermissions.BuilderpermissionsWithGrantOptionWithStrings(String... permissionsWithGrantOption)Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).PrincipalResourcePermissions.BuilderpermissionsWithGrantOptionWithStrings(Collection<String> permissionsWithGrantOption)Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).PrincipalResourcePermissions.BuilderpermissionsWithStrings(String... permissions)The permissions to be granted or revoked on the resource.PrincipalResourcePermissions.BuilderpermissionsWithStrings(Collection<String> permissions)The permissions to be granted or revoked on the resource.default PrincipalResourcePermissions.Builderprincipal(Consumer<DataLakePrincipal.Builder> principal)The Data Lake principal to be granted or revoked permissions.PrincipalResourcePermissions.Builderprincipal(DataLakePrincipal principal)The Data Lake principal to be granted or revoked permissions.default PrincipalResourcePermissions.Builderresource(Consumer<Resource.Builder> resource)The resource where permissions are to be granted or revoked.PrincipalResourcePermissions.Builderresource(Resource resource)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, sdkFields
-
-
-
-
Method Detail
-
principal
PrincipalResourcePermissions.Builder principal(DataLakePrincipal 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.Builderavoiding the need to create one manually viaDataLakePrincipal.builder().When the
Consumercompletes,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:
principal(DataLakePrincipal)
-
resource
PrincipalResourcePermissions.Builder resource(Resource 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
default PrincipalResourcePermissions.Builder resource(Consumer<Resource.Builder> resource)
The resource where permissions are to be granted or revoked.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,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:
resource(Resource)
-
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
PrincipalResourcePermissions.Builder permissions(Collection<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.
-
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 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.Builderavoiding the need to create one manually viaDetailsMap.builder().When the
Consumercompletes,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:
additionalDetails(DetailsMap)
-
lastUpdated
PrincipalResourcePermissions.Builder lastUpdated(Instant 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.
-
-