Class DelegatedResourceAccessRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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