Class AuthorizationRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.identitydataplane.model.AuthorizationRequest.Builder
-
- Enclosing class:
- AuthorizationRequest
public static class AuthorizationRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationRequest
build()
AuthorizationRequest.Builder
context(List<PermissionContext> context)
A set of permission contextsAuthorizationRequest.Builder
copy(AuthorizationRequest model)
AuthorizationRequest.Builder
policyHash(String policyHash)
The hash of cached policy on the caller service side.AuthorizationRequest.Builder
requestId(String requestId)
The id of this request.AuthorizationRequest.Builder
serviceName(String serviceName)
The name of the service that is making this authorization requestAuthorizationRequest.Builder
svcPrincipal(Principal svcPrincipal)
The service principal object for service to service calls.AuthorizationRequest.Builder
userPrincipal(Principal userPrincipal)
The user principal object
-
-
-
Method Detail
-
requestId
public AuthorizationRequest.Builder requestId(String requestId)
The id of this request.It is a GUID.
- Parameters:
requestId
- the value to set- Returns:
- this builder
-
userPrincipal
public AuthorizationRequest.Builder userPrincipal(Principal userPrincipal)
The user principal object- Parameters:
userPrincipal
- the value to set- Returns:
- this builder
-
svcPrincipal
public AuthorizationRequest.Builder svcPrincipal(Principal svcPrincipal)
The service principal object for service to service calls.- Parameters:
svcPrincipal
- the value to set- Returns:
- this builder
-
serviceName
public AuthorizationRequest.Builder serviceName(String serviceName)
The name of the service that is making this authorization request- Parameters:
serviceName
- the value to set- Returns:
- this builder
-
context
public AuthorizationRequest.Builder context(List<PermissionContext> context)
A set of permission contexts- Parameters:
context
- the value to set- Returns:
- this builder
-
policyHash
public AuthorizationRequest.Builder policyHash(String policyHash)
The hash of cached policy on the caller service side.If this is different than what Identity has, it will send the most recent policy statements.
- Parameters:
policyHash
- the value to set- Returns:
- this builder
-
build
public AuthorizationRequest build()
-
copy
public AuthorizationRequest.Builder copy(AuthorizationRequest model)
-
-