Class Profile.Builder

  • Enclosing class:
    Profile

    public static class Profile.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • userAssessmentId

        public Profile.Builder userAssessmentId​(String userAssessmentId)
        The OCID of the user assessment corresponding to the target under consideration.
        Parameters:
        userAssessmentId - the value to set
        Returns:
        this builder
      • compartmentId

        public Profile.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the user assessment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • targetId

        public Profile.Builder targetId​(String targetId)
        The OCID of the target database.
        Parameters:
        targetId - the value to set
        Returns:
        this builder
      • profileName

        public Profile.Builder profileName​(String profileName)
        The name of the profile.
        Parameters:
        profileName - the value to set
        Returns:
        this builder
      • userCount

        public Profile.Builder userCount​(Integer userCount)
        The number of users that have a given profile.
        Parameters:
        userCount - the value to set
        Returns:
        this builder
      • failedLoginAttempts

        public Profile.Builder failedLoginAttempts​(String failedLoginAttempts)
        Maximum times the user is allowed in fail login before the user account is locked.
        Parameters:
        failedLoginAttempts - the value to set
        Returns:
        this builder
      • passwordVerificationFunction

        public Profile.Builder passwordVerificationFunction​(String passwordVerificationFunction)
        Name of the PL/SQL that can be used for password verification.
        Parameters:
        passwordVerificationFunction - the value to set
        Returns:
        this builder
      • passwordVerificationFunctionDetails

        public Profile.Builder passwordVerificationFunctionDetails​(String passwordVerificationFunctionDetails)
        Details about the PL/SQL that can be used for password verification.
        Parameters:
        passwordVerificationFunctionDetails - the value to set
        Returns:
        this builder
      • passwordLockTime

        public Profile.Builder passwordLockTime​(String passwordLockTime)
        Number of days the user account remains locked after failed login.
        Parameters:
        passwordLockTime - the value to set
        Returns:
        this builder
      • passwordLifeTime

        public Profile.Builder passwordLifeTime​(String passwordLifeTime)
        Number of days the password is valid before expiry.
        Parameters:
        passwordLifeTime - the value to set
        Returns:
        this builder
      • passwordReuseMax

        public Profile.Builder passwordReuseMax​(String passwordReuseMax)
        Number of day after the user can use the already used password.
        Parameters:
        passwordReuseMax - the value to set
        Returns:
        this builder
      • passwordReuseTime

        public Profile.Builder passwordReuseTime​(String passwordReuseTime)
        Number of days before which a password cannot be reused.
        Parameters:
        passwordReuseTime - the value to set
        Returns:
        this builder
      • passwordRolloverTime

        public Profile.Builder passwordRolloverTime​(String passwordRolloverTime)
        Number of days the password rollover is allowed.

        Minimum value can be 1/24 day (1 hour) to 60 days.

        Parameters:
        passwordRolloverTime - the value to set
        Returns:
        this builder
      • passwordGraceTime

        public Profile.Builder passwordGraceTime​(String passwordGraceTime)
        Number of grace days for user to change password.
        Parameters:
        passwordGraceTime - the value to set
        Returns:
        this builder
      • isUserCreated

        public Profile.Builder isUserCreated​(Boolean isUserCreated)
        Represents if the profile is created by user.
        Parameters:
        isUserCreated - the value to set
        Returns:
        this builder
      • sessionsPerUser

        public Profile.Builder sessionsPerUser​(String sessionsPerUser)
        Specify the number of concurrent sessions to which you want to limit the user.
        Parameters:
        sessionsPerUser - the value to set
        Returns:
        this builder
      • inactiveAccountTime

        public Profile.Builder inactiveAccountTime​(String inactiveAccountTime)
        The permitted periods of continuous inactive time during a session, expressed in minutes.

        Long-running queries and other operations are not subject to this limit.

        Parameters:
        inactiveAccountTime - the value to set
        Returns:
        this builder
      • connectTime

        public Profile.Builder connectTime​(String connectTime)
        Specify the total elapsed time limit for a session, expressed in minutes.
        Parameters:
        connectTime - the value to set
        Returns:
        this builder
      • idleTime

        public Profile.Builder idleTime​(String idleTime)
        Specify the permitted periods of continuous inactive time during a session, expressed in minutes.
        Parameters:
        idleTime - the value to set
        Returns:
        this builder
      • compositeLimit

        public Profile.Builder compositeLimit​(String compositeLimit)
        Specify the total resource cost for a session, expressed in service units.

        Oracle Database calculates the total service units as a weighted sum of CPU_PER_SESSION, CONNECT_TIME, LOGICAL_READS_PER_SESSION, and PRIVATE_SGA.

        Parameters:
        compositeLimit - the value to set
        Returns:
        this builder
      • cpuPerCall

        public Profile.Builder cpuPerCall​(String cpuPerCall)
        Specify the CPU time limit for a call (a parse, execute, or fetch), expressed in hundredths of seconds.
        Parameters:
        cpuPerCall - the value to set
        Returns:
        this builder
      • cpuPerSession

        public Profile.Builder cpuPerSession​(String cpuPerSession)
        Specify the CPU time limit for a session, expressed in hundredth of seconds.
        Parameters:
        cpuPerSession - the value to set
        Returns:
        this builder
      • logicalReadsPerCall

        public Profile.Builder logicalReadsPerCall​(String logicalReadsPerCall)
        Specify the permitted the number of data blocks read for a call to process a SQL statement (a parse, execute, or fetch).
        Parameters:
        logicalReadsPerCall - the value to set
        Returns:
        this builder
      • logicalReadsPerSession

        public Profile.Builder logicalReadsPerSession​(String logicalReadsPerSession)
        Specify the permitted number of data blocks read in a session, including blocks read from memory and disk.
        Parameters:
        logicalReadsPerSession - the value to set
        Returns:
        this builder
      • privateSga

        public Profile.Builder privateSga​(String privateSga)
        Specify the amount of private space a session can allocate in the shared pool of the system global area (SGA), expressed in bytes.
        Parameters:
        privateSga - the value to set
        Returns:
        this builder
      • freeformTags

        public Profile.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
      • definedTags

        public Profile.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder