public static class CredentialAccessBoundary.AccessBoundaryRule.Builder extends Object
Modifier and Type | Method and Description |
---|---|
CredentialAccessBoundary.AccessBoundaryRule.Builder |
addAvailablePermission(String availablePermission)
Adds a permission that can be used on the resource.
|
CredentialAccessBoundary.AccessBoundaryRule |
build() |
CredentialAccessBoundary.AccessBoundaryRule.Builder |
setAvailabilityCondition(CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition availabilityCondition)
Sets the availability condition which is an IAM condition that defines constraints to apply
to the token expressed in CEL format.
|
CredentialAccessBoundary.AccessBoundaryRule.Builder |
setAvailablePermissions(List<String> availablePermissions)
Sets the list of permissions that can be used on the resource.
|
CredentialAccessBoundary.AccessBoundaryRule.Builder |
setAvailableResource(String availableResource)
Sets the available resource, which is the full resource name of the GCP resource to allow
access to.
|
public CredentialAccessBoundary.AccessBoundaryRule.Builder setAvailableResource(String availableResource)
For example: "//storage.googleapis.com/projects/_/buckets/example".
availableResource
- the resource name to setBuilder
objectpublic CredentialAccessBoundary.AccessBoundaryRule.Builder setAvailablePermissions(List<String> availablePermissions)
For example: {"inRole:roles/storage.objectViewer"}.
availablePermissions
- the collection of permissions to set, should not be nullBuilder
objectpublic CredentialAccessBoundary.AccessBoundaryRule.Builder addAvailablePermission(String availablePermission)
For example: "inRole:roles/storage.objectViewer".
availablePermission
- a permission to add, should not be nullBuilder
objectpublic CredentialAccessBoundary.AccessBoundaryRule.Builder setAvailabilityCondition(CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition availabilityCondition)
availabilityCondition
- the AvailabilityCondition
to setBuilder
objectpublic CredentialAccessBoundary.AccessBoundaryRule build()
Copyright © 2023 Google. All rights reserved.