Class AccessRequest.Builder
- java.lang.Object
- 
- com.oracle.bmc.operatoraccesscontrol.model.AccessRequest.Builder
 
- 
- Enclosing class:
- AccessRequest
 
 public static class AccessRequest.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessRequest.BuilderaccessReasonSummary(String accessReasonSummary)Summary comment by the operator creating the access request.AccessRequest.BuilderactionRequestsList(List<String> actionRequestsList)List of operator actions for which approval is sought by the operator user.AccessRequest.BuilderapproverComment(String approverComment)The last recent Comment entered by the approver of the request.AccessRequest.BuilderapproverDetails(List<ApproverDetail> approverDetails)Contains the user ids who have approved the accessRequest for extension.AccessRequest.BuilderauditType(List<String> auditType)Specifies the type of auditing to be enabled.AccessRequestbuild()AccessRequest.BuilderclosureComment(String closureComment)The comment entered by the operator while closing the request.AccessRequest.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the access request.AccessRequest.Buildercopy(AccessRequest model)AccessRequest.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AccessRequest.Builderduration(Integer duration)Duration in hours for which access is sought on the target resource.AccessRequest.BuilderextendDuration(Integer extendDuration)Duration in hours for which extension access is sought on the target resource.AccessRequest.BuilderextensionApproverDetails(List<ApproverDetail> extensionApproverDetails)Contains the user ids who have approved the accessRequest for extension.AccessRequest.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.AccessRequest.Builderid(String id)The OCID of the access request.AccessRequest.BuilderisAutoApproved(Boolean isAutoApproved)Whether the access request was automatically approved.AccessRequest.BuilderisValidateAssignment(Boolean isValidateAssignment)Whether the access request was requested for Validate Assignment.AccessRequest.BuilderlifecycleDetails(String lifecycleDetails)more in detail about the lifeCycleState.AccessRequest.BuilderlifecycleState(AccessRequestLifecycleStates lifecycleState)The current state of the AccessRequest.AccessRequest.BuildernumberOfApprovers(Integer numberOfApprovers)Number of approvers who have authorized an access request.AccessRequest.BuildernumberOfApproversRequired(Integer numberOfApproversRequired)Number of approvers required to approve an access request.AccessRequest.BuildernumberOfExtensionApprovers(Integer numberOfExtensionApprovers)Number of approvers who have authorized an access request for extension.AccessRequest.BuilderopctlAdditionalMessage(String opctlAdditionalMessage)Additional message specific to the access request that can be specified by the approver at the time of approval.AccessRequest.BuilderopctlId(String opctlId)The OCID of the operator control governing the target resource.AccessRequest.BuilderopctlName(String opctlName)Name of the Operator control governing the target resource.AccessRequest.BuilderoperatorId(String operatorId)A unique identifier associated with the operator who raised the request.AccessRequest.Builderreason(String reason)Summary reason for which the operator is requesting access on the target resource.AccessRequest.BuilderrequestId(String requestId)This is an automatic identifier generated by the system which is easier for human comprehension.AccessRequest.BuilderresourceId(String resourceId)The OCID of the target resource associated with the access request.AccessRequest.BuilderresourceName(String resourceName)The name of the target resource.AccessRequest.BuilderresourceType(ResourceTypes resourceType)resourceType for which the AccessRequest is applicableAccessRequest.Builderseverity(AccessRequestSeverities severity)Priority assigned to the access request by the operatorAccessRequest.BuildersubResourceList(List<String> subResourceList)The subresources requested for approval.AccessRequest.BuildersystemMessage(String systemMessage)System message that will be displayed to the operator at login to the target resource.AccessRequest.BuildertimeOfCreation(Date timeOfCreation)Time when the access request was created in RFC 3339timestamp format.AccessRequest.BuildertimeOfModification(Date timeOfModification)Time when the access request was last modified in RFC 3339timestamp format.AccessRequest.BuildertimeOfUserCreation(Date timeOfUserCreation)The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’AccessRequest.BuildertimeRequestedForFutureAccess(Date timeRequestedForFutureAccess)Time in future when the user for the access request needs to be created in RFC 3339timestamp format.AccessRequest.BuilderuserId(String userId)The OCID of the user that last modified the access request.AccessRequest.BuilderworkflowId(List<String> workflowId)The OCID of the workflow associated with the access request.
 
- 
- 
- 
Method Detail- 
idpublic AccessRequest.Builder id(String id) The OCID of the access request.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
requestIdpublic AccessRequest.Builder requestId(String requestId) This is an automatic identifier generated by the system which is easier for human comprehension.- Parameters:
- requestId- the value to set
- Returns:
- this builder
 
 - 
accessReasonSummarypublic AccessRequest.Builder accessReasonSummary(String accessReasonSummary) Summary comment by the operator creating the access request.- Parameters:
- accessReasonSummary- the value to set
- Returns:
- this builder
 
 - 
operatorIdpublic AccessRequest.Builder operatorId(String operatorId) A unique identifier associated with the operator who raised the request.This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy. - Parameters:
- operatorId- the value to set
- Returns:
- this builder
 
 - 
resourceIdpublic AccessRequest.Builder resourceId(String resourceId) The OCID of the target resource associated with the access request.The operator raises an access request to get approval to access the target resource. - Parameters:
- resourceId- the value to set
- Returns:
- this builder
 
 - 
resourceNamepublic AccessRequest.Builder resourceName(String resourceName) The name of the target resource.- Parameters:
- resourceName- the value to set
- Returns:
- this builder
 
 - 
subResourceListpublic AccessRequest.Builder subResourceList(List<String> subResourceList) The subresources requested for approval.- Parameters:
- subResourceList- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic AccessRequest.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the access request.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
resourceTypepublic AccessRequest.Builder resourceType(ResourceTypes resourceType) resourceType for which the AccessRequest is applicable- Parameters:
- resourceType- the value to set
- Returns:
- this builder
 
 - 
actionRequestsListpublic AccessRequest.Builder actionRequestsList(List<String> actionRequestsList) List of operator actions for which approval is sought by the operator user.- Parameters:
- actionRequestsList- the value to set
- Returns:
- this builder
 
 - 
reasonpublic AccessRequest.Builder reason(String reason) Summary reason for which the operator is requesting access on the target resource.- Parameters:
- reason- the value to set
- Returns:
- this builder
 
 - 
severitypublic AccessRequest.Builder severity(AccessRequestSeverities severity) Priority assigned to the access request by the operator- Parameters:
- severity- the value to set
- Returns:
- this builder
 
 - 
durationpublic AccessRequest.Builder duration(Integer duration) Duration in hours for which access is sought on the target resource.- Parameters:
- duration- the value to set
- Returns:
- this builder
 
 - 
extendDurationpublic AccessRequest.Builder extendDuration(Integer extendDuration) Duration in hours for which extension access is sought on the target resource.- Parameters:
- extendDuration- the value to set
- Returns:
- this builder
 
 - 
workflowIdpublic AccessRequest.Builder workflowId(List<String> workflowId) The OCID of the workflow associated with the access request.This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error. - Parameters:
- workflowId- the value to set
- Returns:
- this builder
 
 - 
isAutoApprovedpublic AccessRequest.Builder isAutoApproved(Boolean isAutoApproved) Whether the access request was automatically approved.- Parameters:
- isAutoApproved- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic AccessRequest.Builder lifecycleState(AccessRequestLifecycleStates lifecycleState) The current state of the AccessRequest.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic AccessRequest.Builder lifecycleDetails(String lifecycleDetails) more in detail about the lifeCycleState.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
timeOfCreationpublic AccessRequest.Builder timeOfCreation(Date timeOfCreation) Time when the access request was created in RFC 3339timestamp format.Example: ‘2020-05-22T21:10:29.600Z’ - Parameters:
- timeOfCreation- the value to set
- Returns:
- this builder
 
 - 
timeOfModificationpublic AccessRequest.Builder timeOfModification(Date timeOfModification) Time when the access request was last modified in RFC 3339timestamp format.Example: ‘2020-05-22T21:10:29.600Z’ - Parameters:
- timeOfModification- the value to set
- Returns:
- this builder
 
 - 
timeOfUserCreationpublic AccessRequest.Builder timeOfUserCreation(Date timeOfUserCreation) The time when access request is scheduled to be approved in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’- Parameters:
- timeOfUserCreation- the value to set
- Returns:
- this builder
 
 - 
userIdpublic AccessRequest.Builder userId(String userId) The OCID of the user that last modified the access request.- Parameters:
- userId- the value to set
- Returns:
- this builder
 
 - 
approverCommentpublic AccessRequest.Builder approverComment(String approverComment) The last recent Comment entered by the approver of the request.- Parameters:
- approverComment- the value to set
- Returns:
- this builder
 
 - 
closureCommentpublic AccessRequest.Builder closureComment(String closureComment) The comment entered by the operator while closing the request.- Parameters:
- closureComment- the value to set
- Returns:
- this builder
 
 - 
opctlIdpublic AccessRequest.Builder opctlId(String opctlId) The OCID of the operator control governing the target resource.- Parameters:
- opctlId- the value to set
- Returns:
- this builder
 
 - 
opctlNamepublic AccessRequest.Builder opctlName(String opctlName) Name of the Operator control governing the target resource.- Parameters:
- opctlName- the value to set
- Returns:
- this builder
 
 - 
systemMessagepublic AccessRequest.Builder systemMessage(String systemMessage) System message that will be displayed to the operator at login to the target resource.- Parameters:
- systemMessage- the value to set
- Returns:
- this builder
 
 - 
opctlAdditionalMessagepublic AccessRequest.Builder opctlAdditionalMessage(String opctlAdditionalMessage) Additional message specific to the access request that can be specified by the approver at the time of approval.- Parameters:
- opctlAdditionalMessage- the value to set
- Returns:
- this builder
 
 - 
auditTypepublic AccessRequest.Builder auditType(List<String> auditType) Specifies the type of auditing to be enabled.There are two levels of auditing: command-level and keystroke-level. By default, auditing is enabled at the command level i.e., each command issued by the operator is audited. When keystroke-level is chosen, in addition to command level logging, key strokes are also logged. - Parameters:
- auditType- the value to set
- Returns:
- this builder
 
 - 
numberOfApproversRequiredpublic AccessRequest.Builder numberOfApproversRequired(Integer numberOfApproversRequired) Number of approvers required to approve an access request.- Parameters:
- numberOfApproversRequired- the value to set
- Returns:
- this builder
 
 - 
numberOfApproverspublic AccessRequest.Builder numberOfApprovers(Integer numberOfApprovers) Number of approvers who have authorized an access request.- Parameters:
- numberOfApprovers- the value to set
- Returns:
- this builder
 
 - 
numberOfExtensionApproverspublic AccessRequest.Builder numberOfExtensionApprovers(Integer numberOfExtensionApprovers) Number of approvers who have authorized an access request for extension.- Parameters:
- numberOfExtensionApprovers- the value to set
- Returns:
- this builder
 
 - 
approverDetailspublic AccessRequest.Builder approverDetails(List<ApproverDetail> approverDetails) Contains the user ids who have approved the accessRequest for extension.- Parameters:
- approverDetails- the value to set
- Returns:
- this builder
 
 - 
extensionApproverDetailspublic AccessRequest.Builder extensionApproverDetails(List<ApproverDetail> extensionApproverDetails) Contains the user ids who have approved the accessRequest for extension.- Parameters:
- extensionApproverDetails- the value to set
- Returns:
- this builder
 
 - 
isValidateAssignmentpublic AccessRequest.Builder isValidateAssignment(Boolean isValidateAssignment) Whether the access request was requested for Validate Assignment.- Parameters:
- isValidateAssignment- the value to set
- Returns:
- this builder
 
 - 
timeRequestedForFutureAccesspublic AccessRequest.Builder timeRequestedForFutureAccess(Date timeRequestedForFutureAccess) Time in future when the user for the access request needs to be created in RFC 3339timestamp format.Example: ‘2020-05-22T21:10:29.600Z’ - Parameters:
- timeRequestedForFutureAccess- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic AccessRequest.Builder freeformTags(Map<String,String> freeformTags) Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic AccessRequest.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic AccessRequest build() 
 - 
copypublic AccessRequest.Builder copy(AccessRequest model) 
 
- 
 
-