Class OperatorControlAssignment.Builder
- java.lang.Object
-
- com.oracle.bmc.operatoraccesscontrol.model.OperatorControlAssignment.Builder
-
- Enclosing class:
- OperatorControlAssignment
public static class OperatorControlAssignment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorControlAssignment.BuilderassignerId(String assignerId)The OCID of the user who created this operator control assignment.OperatorControlAssignmentbuild()OperatorControlAssignment.Buildercomment(String comment)Comment about the assignment of the operator control to this target resource.OperatorControlAssignment.BuildercompartmentId(String compartmentId)The OCID of the comparment that contains the operator control assignment.OperatorControlAssignment.Buildercopy(OperatorControlAssignment model)OperatorControlAssignment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.OperatorControlAssignment.BuilderdetachmentDescription(String detachmentDescription)description containing reason for releasing of OperatorControl.OperatorControlAssignment.BuildererrorCode(Integer errorCode)The code identifying the error occurred during Assignment operation.OperatorControlAssignment.BuildererrorMessage(String errorMessage)The message describing the error occurred during Assignment operation.OperatorControlAssignment.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.OperatorControlAssignment.Builderid(String id)The OCID of the operator control assignment.OperatorControlAssignment.BuilderisAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance)The boolean if true would autoApprove during maintenance.OperatorControlAssignment.BuilderisDefaultAssignment(Boolean isDefaultAssignment)Whether the assignment is a default assignment.OperatorControlAssignment.BuilderisEnforcedAlways(Boolean isEnforcedAlways)If set, then the target resource is always governed by the operator control.OperatorControlAssignment.BuilderisHypervisorLogForwarded(Boolean isHypervisorLogForwarded)If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog serverOperatorControlAssignment.BuilderisLogForwarded(Boolean isLogForwarded)If set indicates that the audit logs are being forwarded to the relevant remote logging serverOperatorControlAssignment.BuilderlifecycleDetails(String lifecycleDetails)More in detail about the lifeCycleState.OperatorControlAssignment.BuilderlifecycleState(OperatorControlAssignmentLifecycleStates lifecycleState)The current lifcycle state of the OperatorControl.OperatorControlAssignment.BuilderopControlName(String opControlName)Name of the operator control name associated.OperatorControlAssignment.BuilderoperatorControlId(String operatorControlId)The OCID of the operator control.OperatorControlAssignment.BuilderremoteSyslogServerAddress(String remoteSyslogServerAddress)The address of the remote syslog server where the audit logs are being forwarded to.OperatorControlAssignment.BuilderremoteSyslogServerCACert(String remoteSyslogServerCACert)The CA certificate of the remote syslog server.OperatorControlAssignment.BuilderremoteSyslogServerPort(Integer remoteSyslogServerPort)The listening port of the remote syslog server.OperatorControlAssignment.BuilderresourceCompartmentId(String resourceCompartmentId)The OCID of the compartment that contains the target resource.OperatorControlAssignment.BuilderresourceId(String resourceId)The OCID of the target resource.OperatorControlAssignment.BuilderresourceName(String resourceName)Name of the target resource.OperatorControlAssignment.BuilderresourceType(ResourceTypes resourceType)resourceType for which the OperatorControlAssignment is applicableOperatorControlAssignment.BuildertimeAssignmentFrom(Date timeAssignmentFrom)The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format.OperatorControlAssignment.BuildertimeAssignmentTo(Date timeAssignmentTo)The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format.OperatorControlAssignment.BuildertimeOfAssignment(Date timeOfAssignment)Time when the operator control assignment is created in RFC 3339 timestamp format.OperatorControlAssignment.BuildertimeOfDeletion(Date timeOfDeletion)Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: ‘2020-05-22T21:10:29.600Z’OperatorControlAssignment.BuilderunassignerId(String unassignerId)User id who released the operatorControl.
-
-
-
Method Detail
-
id
public OperatorControlAssignment.Builder id(String id)
The OCID of the operator control assignment.- Parameters:
id- the value to set- Returns:
- this builder
-
operatorControlId
public OperatorControlAssignment.Builder operatorControlId(String operatorControlId)
The OCID of the operator control.- Parameters:
operatorControlId- the value to set- Returns:
- this builder
-
resourceId
public OperatorControlAssignment.Builder resourceId(String resourceId)
The OCID of the target resource.- Parameters:
resourceId- the value to set- Returns:
- this builder
-
resourceName
public OperatorControlAssignment.Builder resourceName(String resourceName)
Name of the target resource.- Parameters:
resourceName- the value to set- Returns:
- this builder
-
resourceCompartmentId
public OperatorControlAssignment.Builder resourceCompartmentId(String resourceCompartmentId)
The OCID of the compartment that contains the target resource.- Parameters:
resourceCompartmentId- the value to set- Returns:
- this builder
-
compartmentId
public OperatorControlAssignment.Builder compartmentId(String compartmentId)
The OCID of the comparment that contains the operator control assignment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
resourceType
public OperatorControlAssignment.Builder resourceType(ResourceTypes resourceType)
resourceType for which the OperatorControlAssignment is applicable- Parameters:
resourceType- the value to set- Returns:
- this builder
-
timeAssignmentFrom
public OperatorControlAssignment.Builder timeAssignmentFrom(Date timeAssignmentFrom)
The time at which the target resource will be brought under the governance of the operator control expressed in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeAssignmentFrom- the value to set- Returns:
- this builder
-
timeAssignmentTo
public OperatorControlAssignment.Builder timeAssignmentTo(Date timeAssignmentTo)
The time at which the target resource will leave the governance of the operator control expressed in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeAssignmentTo- the value to set- Returns:
- this builder
-
isEnforcedAlways
public OperatorControlAssignment.Builder isEnforcedAlways(Boolean isEnforcedAlways)
If set, then the target resource is always governed by the operator control.- Parameters:
isEnforcedAlways- the value to set- Returns:
- this builder
-
lifecycleState
public OperatorControlAssignment.Builder lifecycleState(OperatorControlAssignmentLifecycleStates lifecycleState)
The current lifcycle state of the OperatorControl.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public OperatorControlAssignment.Builder lifecycleDetails(String lifecycleDetails)
More in detail about the lifeCycleState.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
assignerId
public OperatorControlAssignment.Builder assignerId(String assignerId)
The OCID of the user who created this operator control assignment.- Parameters:
assignerId- the value to set- Returns:
- this builder
-
timeOfAssignment
public OperatorControlAssignment.Builder timeOfAssignment(Date timeOfAssignment)
Time when the operator control assignment is created in RFC 3339 timestamp format.Example: ‘2020-05-22T21:10:29.600Z’
- Parameters:
timeOfAssignment- the value to set- Returns:
- this builder
-
comment
public OperatorControlAssignment.Builder comment(String comment)
Comment about the assignment of the operator control to this target resource.- Parameters:
comment- the value to set- Returns:
- this builder
-
unassignerId
public OperatorControlAssignment.Builder unassignerId(String unassignerId)
User id who released the operatorControl.- Parameters:
unassignerId- the value to set- Returns:
- this builder
-
timeOfDeletion
public OperatorControlAssignment.Builder timeOfDeletion(Date timeOfDeletion)
Time on which the operator control assignment was deleted in RFC 3339timestamp format.Example: ‘2020-05-22T21:10:29.600Z’- Parameters:
timeOfDeletion- the value to set- Returns:
- this builder
-
detachmentDescription
public OperatorControlAssignment.Builder detachmentDescription(String detachmentDescription)
description containing reason for releasing of OperatorControl.- Parameters:
detachmentDescription- the value to set- Returns:
- this builder
-
isLogForwarded
public OperatorControlAssignment.Builder isLogForwarded(Boolean isLogForwarded)
If set indicates that the audit logs are being forwarded to the relevant remote logging server- Parameters:
isLogForwarded- the value to set- Returns:
- this builder
-
remoteSyslogServerAddress
public OperatorControlAssignment.Builder remoteSyslogServerAddress(String remoteSyslogServerAddress)
The address of the remote syslog server where the audit logs are being forwarded to.Address in host or IP format.
- Parameters:
remoteSyslogServerAddress- the value to set- Returns:
- this builder
-
remoteSyslogServerPort
public OperatorControlAssignment.Builder remoteSyslogServerPort(Integer remoteSyslogServerPort)
The listening port of the remote syslog server.The port range is 0 - 65535. Only TCP supported.
- Parameters:
remoteSyslogServerPort- the value to set- Returns:
- this builder
-
remoteSyslogServerCACert
public OperatorControlAssignment.Builder remoteSyslogServerCACert(String remoteSyslogServerCACert)
The CA certificate of the remote syslog server.- Parameters:
remoteSyslogServerCACert- the value to set- Returns:
- this builder
-
isHypervisorLogForwarded
public OperatorControlAssignment.Builder isHypervisorLogForwarded(Boolean isHypervisorLogForwarded)
If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server- Parameters:
isHypervisorLogForwarded- the value to set- Returns:
- this builder
-
opControlName
public OperatorControlAssignment.Builder opControlName(String opControlName)
Name of the operator control name associated.- Parameters:
opControlName- the value to set- Returns:
- this builder
-
isAutoApproveDuringMaintenance
public OperatorControlAssignment.Builder isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance)
The boolean if true would autoApprove during maintenance.- Parameters:
isAutoApproveDuringMaintenance- the value to set- Returns:
- this builder
-
errorCode
public OperatorControlAssignment.Builder errorCode(Integer errorCode)
The code identifying the error occurred during Assignment operation.- Parameters:
errorCode- the value to set- Returns:
- this builder
-
errorMessage
public OperatorControlAssignment.Builder errorMessage(String errorMessage)
The message describing the error occurred during Assignment operation.- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
isDefaultAssignment
public OperatorControlAssignment.Builder isDefaultAssignment(Boolean isDefaultAssignment)
Whether the assignment is a default assignment.- Parameters:
isDefaultAssignment- the value to set- Returns:
- this builder
-
freeformTags
public OperatorControlAssignment.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 OperatorControlAssignment.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 OperatorControlAssignment build()
-
copy
public OperatorControlAssignment.Builder copy(OperatorControlAssignment model)
-
-