Class Fleet.Builder

  • Enclosing class:
    Fleet

    public static class Fleet.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Fleet.Builder id​(String id)
        The OCID of the resource.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • compartmentId

        public Fleet.Builder compartmentId​(String compartmentId)
        Tenancy OCID
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • resourceRegion

        public Fleet.Builder resourceRegion​(String resourceRegion)
        Associated region
        Parameters:
        resourceRegion - the value to set
        Returns:
        this builder
      • displayName

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

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Example: My new resource

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

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

        To provide some insight about the resource. Avoid entering confidential information.

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

        public Fleet.Builder timeCreated​(Date timeCreated)
        The time this resource was created.

        An RFC3339 formatted datetime string.

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

        public Fleet.Builder timeUpdated​(Date timeUpdated)
        The time this resource was last updated.

        An RFC3339 formatted datetime string.

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

        public Fleet.Builder fleetType​(Fleet.FleetType fleetType)
        Type of the Fleet.

        PRODUCT - A fleet of product-specific resources for a product type. ENVIRONMENT - A fleet of environment-specific resources for a product stack. GROUP - A fleet of a fleet of either environment or product fleets. GENERIC - A fleet of resources selected dynamically or manually for reporting purposes

        Parameters:
        fleetType - the value to set
        Returns:
        this builder
      • products

        public Fleet.Builder products​(List<String> products)
        Products associated with the Fleet.
        Parameters:
        products - the value to set
        Returns:
        this builder
      • applicationType

        public Fleet.Builder applicationType​(String applicationType)
        Product stack associated with the Fleet.

        Applicable for ENVIRONMENT fleet types.

        Parameters:
        applicationType - the value to set
        Returns:
        this builder
      • environmentType

        public Fleet.Builder environmentType​(String environmentType)
        Environment Type associated with the Fleet.

        Applicable for ENVIRONMENT fleet types.

        Parameters:
        environmentType - the value to set
        Returns:
        this builder
      • groupType

        public Fleet.Builder groupType​(Fleet.GroupType groupType)
        Group Type associated with Group Fleet.

        Applicable for GROUP fleet types.

        Parameters:
        groupType - the value to set
        Returns:
        this builder
      • resourceSelectionType

        public Fleet.Builder resourceSelectionType​(Fleet.ResourceSelectionType resourceSelectionType)
        Type of resource selection in a Fleet.

        Select resources manually or select resources based on rules.

        Parameters:
        resourceSelectionType - the value to set
        Returns:
        this builder
      • isTargetAutoConfirm

        public Fleet.Builder isTargetAutoConfirm​(Boolean isTargetAutoConfirm)
        A value that represents if auto-confirming of the targets can be enabled.

        This will allow targets to be auto-confirmed in the fleet without manual intervention.

        Parameters:
        isTargetAutoConfirm - the value to set
        Returns:
        this builder
      • lifecycleState

        public Fleet.Builder lifecycleState​(Fleet.LifecycleState lifecycleState)
        The lifecycle state of the Fleet.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Fleet.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current state in more detail.

        For example, can be used to provide actionable information for a resource in Failed state.

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

        public Fleet.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. Example: {“bar-key”: “value”}

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

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

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

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

        public Fleet.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
      • build

        public Fleet build()