Class Pool.Builder

  • Enclosing class:
    Pool

    public static class Pool.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public Pool.Builder compartmentId​(String compartmentId)
        The OCID of a compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • definedTags

        public Pool.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
      • description

        public Pool.Builder description​(String description)
        A user-friendly description.

        Avoid entering confidential information.

        Parameters:
        description - the value to set
        Returns:
        this builder
      • displayName

        public Pool.Builder displayName​(String displayName)
        A user-friendly name.

        It does not have to be unique. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • freeformTags

        public Pool.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
      • id

        public Pool.Builder id​(String id)
        The OCID of a pool.

        Unique Id to indentify a dataflow pool resource.

        Parameters:
        id - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Pool.Builder lifecycleDetails​(String lifecycleDetails)
        The detailed messages about the lifecycle state.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • lifecycleState

        public Pool.Builder lifecycleState​(PoolLifecycleState lifecycleState)
        The current state of this pool.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • ownerPrincipalId

        public Pool.Builder ownerPrincipalId​(String ownerPrincipalId)
        The OCID of the user who created the resource.
        Parameters:
        ownerPrincipalId - the value to set
        Returns:
        this builder
      • ownerUserName

        public Pool.Builder ownerUserName​(String ownerUserName)
        The username of the user who created the resource.

        If the username of the owner does not exist, null will be returned and the caller should refer to the ownerPrincipalId value instead.

        Parameters:
        ownerUserName - the value to set
        Returns:
        this builder
      • configurations

        public Pool.Builder configurations​(List<PoolConfig> configurations)
        List of PoolConfig items.
        Parameters:
        configurations - the value to set
        Returns:
        this builder
      • schedules

        public Pool.Builder schedules​(List<PoolSchedule> schedules)
        A list of schedules for pool to auto start and stop.
        Parameters:
        schedules - the value to set
        Returns:
        this builder
      • idleTimeoutInMinutes

        public Pool.Builder idleTimeoutInMinutes​(Integer idleTimeoutInMinutes)
        Optional timeout value in minutes used to auto stop Pools.

        A Pool will be auto stopped after inactivity for this amount of time period. If value not set, pool will not be auto stopped auto.

        Parameters:
        idleTimeoutInMinutes - the value to set
        Returns:
        this builder
      • timeCreated

        public Pool.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created, expressed in RFC 3339 timestamp format.

        Example: 2018-04-03T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Pool.Builder timeUpdated​(Date timeUpdated)
        The date and time the resource was updated, expressed in RFC 3339 timestamp format.

        Example: 2018-04-03T21:10:29.600Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • build

        public Pool build()