Class OperatorControlAssignment.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • operatorControlId

        public OperatorControlAssignment.Builder operatorControlId​(String operatorControlId)
        The OCID of the operator control.
        Parameters:
        operatorControlId - 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
      • 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