Class DelegatedResourceAccessRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest.Builder
-
- Enclosing class:
- DelegatedResourceAccessRequest
public static class DelegatedResourceAccessRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegatedResourceAccessRequest.Builder
approvalInfo(List<DelegatedResourceAccessRequestApprovalDetails> approvalInfo)
In case of single approval, this will have only one item.DelegatedResourceAccessRequest.Builder
auditTypes(List<DelegatedResourceAccessRequestAuditType> auditTypes)
Specifies the type of auditing to be enabled.DelegatedResourceAccessRequest
build()
DelegatedResourceAccessRequest.Builder
closureComment(String closureComment)
The comment entered by the support operator while closing the request.DelegatedResourceAccessRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
copy(DelegatedResourceAccessRequest model)
DelegatedResourceAccessRequest.Builder
databaseNameList(List<String> databaseNameList)
List of Database unique names for which access is requested.DelegatedResourceAccessRequest.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DelegatedResourceAccessRequest.Builder
delegationControlId(String delegationControlId)
The OCID of the Delegation Control governing the target resource.DelegatedResourceAccessRequest.Builder
delegationSubscriptionIds(List<String> delegationSubscriptionIds)
List of Delegation Subscription OCID that are associated with this Delegated Resource Access Request based on the service types being requested.DelegatedResourceAccessRequest.Builder
description(String description)
Detailed description of this Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
displayName(String displayName)
Display name.DelegatedResourceAccessRequest.Builder
durationInHours(Integer durationInHours)
Duration in hours for which access is sought on the target resource.DelegatedResourceAccessRequest.Builder
extendDurationInHours(Integer extendDurationInHours)
Duration in hours for which extension access is sought on the target resource.DelegatedResourceAccessRequest.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.DelegatedResourceAccessRequest.Builder
id(String id)
The OCID of the Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
isAutoApproved(Boolean isAutoApproved)
Set to true if the request is approved automatically based on preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated Delegation Control.DelegatedResourceAccessRequest.Builder
isPendingMoreInfo(Boolean isPendingMoreInfo)
Indicates if the delegated resource access request is waiting on more information from the operatorDelegatedResourceAccessRequest.Builder
lifecycleState(DelegatedResourceAccessRequest.LifecycleState lifecycleState)
The current lifecycle state of the Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
lifecycleStateDetails(String lifecycleStateDetails)
Description of the current lifecycle state in more detail.DelegatedResourceAccessRequest.Builder
numExtensionApprovals(Integer numExtensionApprovals)
Number of extension approvals that have been obtained so far.DelegatedResourceAccessRequest.Builder
numInitialApprovals(Integer numInitialApprovals)
Number of initial approvals that have been obtained so far.DelegatedResourceAccessRequest.Builder
providedServiceTypes(List<ServiceProviderServiceType> providedServiceTypes)
List of Service Provider Service Types being provided by the support operator user.DelegatedResourceAccessRequest.Builder
reasonForRequest(String reasonForRequest)
A short description explaining why this Delegated Resource Access Request is needed by the support operator.DelegatedResourceAccessRequest.Builder
requestedActionNames(List<String> requestedActionNames)
List of Service Provider Action names for which approval is sought by the support operator user.DelegatedResourceAccessRequest.Builder
requesterType(DelegatedResourceAccessRequesterType requesterType)
Requester typeDelegatedResourceAccessRequest.Builder
requestStatus(DelegatedResourceAccessRequestStatus requestStatus)
The current status of the Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
resourceId(String resourceId)
The OCID of the target resource associated with the Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
resourceName(String resourceName)
The name of the target resource associated with the Delegated Resource Access Request.DelegatedResourceAccessRequest.Builder
resourceType(DelegationControlResourceType resourceType)
Resource type for which the associated Delegation Control is applicable to.DelegatedResourceAccessRequest.Builder
severity(DelegatedResourceAccessRequestSeverity severity)
Priority assigned to the Delegated Resource Access Request by the support operatorDelegatedResourceAccessRequest.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.DelegatedResourceAccessRequest.Builder
ticketNumbers(List<String> ticketNumbers)
A list of ticket numbers related to this Delegated Resource Access Request, e.g.DelegatedResourceAccessRequest.Builder
timeAccessRequested(Date timeAccessRequested)
Requested access start time in UTC.DelegatedResourceAccessRequest.Builder
timeCreated(Date timeCreated)
Time when the Delegated Resource Access Request was created in RFC 3339timestamp format, e.g.DelegatedResourceAccessRequest.Builder
timeUpdated(Date timeUpdated)
Time when the Delegated Resource Access Request was last modified in RFC 3339timestamp format, e.g.
-
-
-
Method Detail
-
id
public DelegatedResourceAccessRequest.Builder id(String id)
The OCID of the Delegated Resource Access Request.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public DelegatedResourceAccessRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the Delegated Resource Access Request.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public DelegatedResourceAccessRequest.Builder displayName(String displayName)
Display name.This is generated by the system automatically.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
ticketNumbers
public DelegatedResourceAccessRequest.Builder ticketNumbers(List<String> ticketNumbers)
A list of ticket numbers related to this Delegated Resource Access Request, e.g.Service Request (SR) number and JIRA ticket number.
- Parameters:
ticketNumbers
- the value to set- Returns:
- this builder
-
reasonForRequest
public DelegatedResourceAccessRequest.Builder reasonForRequest(String reasonForRequest)
A short description explaining why this Delegated Resource Access Request is needed by the support operator.- Parameters:
reasonForRequest
- the value to set- Returns:
- this builder
-
description
public DelegatedResourceAccessRequest.Builder description(String description)
Detailed description of this Delegated Resource Access Request.- Parameters:
description
- the value to set- Returns:
- this builder
-
timeAccessRequested
public DelegatedResourceAccessRequest.Builder timeAccessRequested(Date timeAccessRequested)
Requested access start time in UTC.- Parameters:
timeAccessRequested
- the value to set- Returns:
- this builder
-
resourceId
public DelegatedResourceAccessRequest.Builder resourceId(String resourceId)
The OCID of the target resource associated with the Delegated Resource Access Request.The support operator raises a Delegated Resource Access Request to get approval to access the target resource.
- Parameters:
resourceId
- the value to set- Returns:
- this builder
-
resourceName
public DelegatedResourceAccessRequest.Builder resourceName(String resourceName)
The name of the target resource associated with the Delegated Resource Access Request.The support operator raises a Delegated Resource Access Request to get approval to access the target resource.
- Parameters:
resourceName
- the value to set- Returns:
- this builder
-
resourceType
public DelegatedResourceAccessRequest.Builder resourceType(DelegationControlResourceType resourceType)
Resource type for which the associated Delegation Control is applicable to.- Parameters:
resourceType
- the value to set- Returns:
- this builder
-
requesterType
public DelegatedResourceAccessRequest.Builder requesterType(DelegatedResourceAccessRequesterType requesterType)
Requester type- Parameters:
requesterType
- the value to set- Returns:
- this builder
-
requestedActionNames
public DelegatedResourceAccessRequest.Builder requestedActionNames(List<String> requestedActionNames)
List of Service Provider Action names for which approval is sought by the support operator user.The list of pre-defined Service Provider Actions can be obtained from the ListServiceProviderActions API.
- Parameters:
requestedActionNames
- the value to set- Returns:
- this builder
-
databaseNameList
public DelegatedResourceAccessRequest.Builder databaseNameList(List<String> databaseNameList)
List of Database unique names for which access is requested.This parameter is required for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed.
- Parameters:
databaseNameList
- the value to set- Returns:
- this builder
-
providedServiceTypes
public DelegatedResourceAccessRequest.Builder providedServiceTypes(List<ServiceProviderServiceType> providedServiceTypes)
List of Service Provider Service Types being provided by the support operator user.- Parameters:
providedServiceTypes
- the value to set- Returns:
- this builder
-
delegationSubscriptionIds
public DelegatedResourceAccessRequest.Builder delegationSubscriptionIds(List<String> delegationSubscriptionIds)
List of Delegation Subscription OCID that are associated with this Delegated Resource Access Request based on the service types being requested.- Parameters:
delegationSubscriptionIds
- the value to set- Returns:
- this builder
-
severity
public DelegatedResourceAccessRequest.Builder severity(DelegatedResourceAccessRequestSeverity severity)
Priority assigned to the Delegated Resource Access Request by the support operator- Parameters:
severity
- the value to set- Returns:
- this builder
-
durationInHours
public DelegatedResourceAccessRequest.Builder durationInHours(Integer durationInHours)
Duration in hours for which access is sought on the target resource.- Parameters:
durationInHours
- the value to set- Returns:
- this builder
-
extendDurationInHours
public DelegatedResourceAccessRequest.Builder extendDurationInHours(Integer extendDurationInHours)
Duration in hours for which extension access is sought on the target resource.- Parameters:
extendDurationInHours
- the value to set- Returns:
- this builder
-
isAutoApproved
public DelegatedResourceAccessRequest.Builder isAutoApproved(Boolean isAutoApproved)
Set to true if the request is approved automatically based on preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated Delegation Control.- Parameters:
isAutoApproved
- the value to set- Returns:
- this builder
-
lifecycleState
public DelegatedResourceAccessRequest.Builder lifecycleState(DelegatedResourceAccessRequest.LifecycleState lifecycleState)
The current lifecycle state of the Delegated Resource Access Request.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleStateDetails
public DelegatedResourceAccessRequest.Builder lifecycleStateDetails(String lifecycleStateDetails)
Description of the current lifecycle state in more detail.- Parameters:
lifecycleStateDetails
- the value to set- Returns:
- this builder
-
requestStatus
public DelegatedResourceAccessRequest.Builder requestStatus(DelegatedResourceAccessRequestStatus requestStatus)
The current status of the Delegated Resource Access Request.- Parameters:
requestStatus
- the value to set- Returns:
- this builder
-
timeCreated
public DelegatedResourceAccessRequest.Builder timeCreated(Date timeCreated)
Time when the Delegated Resource Access Request was created in RFC 3339timestamp format, e.g.‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DelegatedResourceAccessRequest.Builder timeUpdated(Date timeUpdated)
Time when the Delegated Resource Access Request was last modified in RFC 3339timestamp format, e.g.‘2020-05-22T21:10:29.600Z’.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
numInitialApprovals
public DelegatedResourceAccessRequest.Builder numInitialApprovals(Integer numInitialApprovals)
Number of initial approvals that have been obtained so far.- Parameters:
numInitialApprovals
- the value to set- Returns:
- this builder
-
numExtensionApprovals
public DelegatedResourceAccessRequest.Builder numExtensionApprovals(Integer numExtensionApprovals)
Number of extension approvals that have been obtained so far.- Parameters:
numExtensionApprovals
- the value to set- Returns:
- this builder
-
approvalInfo
public DelegatedResourceAccessRequest.Builder approvalInfo(List<DelegatedResourceAccessRequestApprovalDetails> approvalInfo)
In case of single approval, this will have only one item.Else, a list of approvals.
- Parameters:
approvalInfo
- the value to set- Returns:
- this builder
-
closureComment
public DelegatedResourceAccessRequest.Builder closureComment(String closureComment)
The comment entered by the support operator while closing the request.- Parameters:
closureComment
- the value to set- Returns:
- this builder
-
delegationControlId
public DelegatedResourceAccessRequest.Builder delegationControlId(String delegationControlId)
The OCID of the Delegation Control governing the target resource.- Parameters:
delegationControlId
- the value to set- Returns:
- this builder
-
auditTypes
public DelegatedResourceAccessRequest.Builder auditTypes(List<DelegatedResourceAccessRequestAuditType> auditTypes)
Specifies the type of auditing to be enabled.There are two levels of auditing: command-level and keystroke-level. By default, both command-level and keystroke-level auditing are enabled, i.e. commands and key strokes issued by the support operator are logged.
- Parameters:
auditTypes
- the value to set- Returns:
- this builder
-
isPendingMoreInfo
public DelegatedResourceAccessRequest.Builder isPendingMoreInfo(Boolean isPendingMoreInfo)
Indicates if the delegated resource access request is waiting on more information from the operator- Parameters:
isPendingMoreInfo
- the value to set- Returns:
- this builder
-
freeformTags
public DelegatedResourceAccessRequest.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public DelegatedResourceAccessRequest.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public DelegatedResourceAccessRequest.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public DelegatedResourceAccessRequest build()
-
copy
public DelegatedResourceAccessRequest.Builder copy(DelegatedResourceAccessRequest model)
-
-