Class OperatorControl.Builder
- java.lang.Object
-
- com.oracle.bmc.operatoraccesscontrol.model.OperatorControl.Builder
-
- Enclosing class:
- OperatorControl
public static class OperatorControl.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorControl.BuilderapprovalRequiredOpActionList(List<String> approvalRequiredOpActionList)List of operator actions that need explicit approval.OperatorControl.BuilderapproverGroupsList(List<String> approverGroupsList)List of user groups who can approve an access request associated with a target resource under the governance of this operator control.OperatorControl.BuilderapproversList(List<String> approversList)List of users who can approve an access request associated with a target resource under the governance of this operator control.OperatorControlbuild()OperatorControl.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the operator control.OperatorControl.Buildercopy(OperatorControl model)OperatorControl.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.OperatorControl.Builderdescription(String description)Description of operator control.OperatorControl.BuilderemailIdList(List<String> emailIdList)List of emailId.OperatorControl.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.OperatorControl.Builderid(String id)The OCID of the operator control.OperatorControl.BuilderisDefaultOperatorControl(Boolean isDefaultOperatorControl)Whether the operator control is a default Operator Control.OperatorControl.BuilderisFullyPreApproved(Boolean isFullyPreApproved)Whether all the operator actions have been pre-approved.OperatorControl.BuilderlastModifiedInfo(String lastModifiedInfo)Description associated with the latest modification of the operator control.OperatorControl.BuilderlifecycleState(OperatorControlLifecycleStates lifecycleState)The current lifecycle state of the operator control.OperatorControl.BuildernumberOfApprovers(Integer numberOfApprovers)Number of approvers required to approve an access request.OperatorControl.BuilderoperatorControlName(String operatorControlName)Name of the operator control.OperatorControl.BuilderpreApprovedOpActionList(List<String> preApprovedOpActionList)List of pre-approved operator actions.OperatorControl.BuilderresourceType(ResourceTypes resourceType)resourceType for which the OperatorControl is applicableOperatorControl.BuildersystemMessage(String systemMessage)System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.OperatorControl.BuildertimeOfCreation(Date timeOfCreation)Time when the operator control was created expressed in RFC 3339 timestamp format.OperatorControl.BuildertimeOfDeletion(Date timeOfDeletion)Time when deleted expressed in RFC 3339timestamp format.OperatorControl.BuildertimeOfModification(Date timeOfModification)Time when the operator control was last modified expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public OperatorControl.Builder id(String id)
The OCID of the operator control.- Parameters:
id- the value to set- Returns:
- this builder
-
operatorControlName
public OperatorControl.Builder operatorControlName(String operatorControlName)
Name of the operator control.The name must be unique.
- Parameters:
operatorControlName- the value to set- Returns:
- this builder
-
description
public OperatorControl.Builder description(String description)
Description of operator control.- Parameters:
description- the value to set- Returns:
- this builder
-
approversList
public OperatorControl.Builder approversList(List<String> approversList)
List of users who can approve an access request associated with a target resource under the governance of this operator control.- Parameters:
approversList- the value to set- Returns:
- this builder
-
approverGroupsList
public OperatorControl.Builder approverGroupsList(List<String> approverGroupsList)
List of user groups who can approve an access request associated with a target resource under the governance of this operator control.- Parameters:
approverGroupsList- the value to set- Returns:
- this builder
-
preApprovedOpActionList
public OperatorControl.Builder preApprovedOpActionList(List<String> preApprovedOpActionList)
List of pre-approved operator actions.Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list.
- Parameters:
preApprovedOpActionList- the value to set- Returns:
- this builder
-
approvalRequiredOpActionList
public OperatorControl.Builder approvalRequiredOpActionList(List<String> approvalRequiredOpActionList)
List of operator actions that need explicit approval.Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list.
- Parameters:
approvalRequiredOpActionList- the value to set- Returns:
- this builder
-
isFullyPreApproved
public OperatorControl.Builder isFullyPreApproved(Boolean isFullyPreApproved)
Whether all the operator actions have been pre-approved.If yes, all access requests associated with a resource governed by this operator control will be auto-approved.
- Parameters:
isFullyPreApproved- the value to set- Returns:
- this builder
-
emailIdList
public OperatorControl.Builder emailIdList(List<String> emailIdList)
List of emailId.- Parameters:
emailIdList- the value to set- Returns:
- this builder
-
resourceType
public OperatorControl.Builder resourceType(ResourceTypes resourceType)
resourceType for which the OperatorControl is applicable- Parameters:
resourceType- the value to set- Returns:
- this builder
-
systemMessage
public OperatorControl.Builder systemMessage(String systemMessage)
System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control.- Parameters:
systemMessage- the value to set- Returns:
- this builder
-
compartmentId
public OperatorControl.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the operator control.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
lifecycleState
public OperatorControl.Builder lifecycleState(OperatorControlLifecycleStates lifecycleState)
The current lifecycle state of the operator control.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeOfCreation
public OperatorControl.Builder timeOfCreation(Date timeOfCreation)
Time when the operator control was created expressed in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeOfCreation- the value to set- Returns:
- this builder
-
timeOfModification
public OperatorControl.Builder timeOfModification(Date timeOfModification)
Time when the operator control was last modified expressed in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeOfModification- the value to set- Returns:
- this builder
-
numberOfApprovers
public OperatorControl.Builder numberOfApprovers(Integer numberOfApprovers)
Number of approvers required to approve an access request.- Parameters:
numberOfApprovers- the value to set- Returns:
- this builder
-
isDefaultOperatorControl
public OperatorControl.Builder isDefaultOperatorControl(Boolean isDefaultOperatorControl)
Whether the operator control is a default Operator Control.- Parameters:
isDefaultOperatorControl- the value to set- Returns:
- this builder
-
timeOfDeletion
public OperatorControl.Builder timeOfDeletion(Date timeOfDeletion)
Time when deleted expressed in RFC 3339timestamp format.Example: ‘2020-05-22T21:10:29.600Z’. Note a deleted operator control still stays in the system, so that you can still audit operator actions associated with access requests raised on target resources governed by the deleted operator control.
- Parameters:
timeOfDeletion- the value to set- Returns:
- this builder
-
lastModifiedInfo
public OperatorControl.Builder lastModifiedInfo(String lastModifiedInfo)
Description associated with the latest modification of the operator control.- Parameters:
lastModifiedInfo- the value to set- Returns:
- this builder
-
freeformTags
public OperatorControl.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
-
definedTags
public OperatorControl.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
-
build
public OperatorControl build()
-
copy
public OperatorControl.Builder copy(OperatorControl model)
-
-