Class Tenancy.Builder

  • Enclosing class:
    Tenancy

    public static class Tenancy.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Tenancy.Builder id​(String id)
        The OCID of the tenancy.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • name

        public Tenancy.Builder name​(String name)
        The name of the tenancy.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public Tenancy.Builder description​(String description)
        The description of the tenancy.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • homeRegionKey

        public Tenancy.Builder homeRegionKey​(String homeRegionKey)
        The region key for the tenancy’s home region.

        For the full list of supported regions, see Regions and Availability Domains.

        Example: PHX

        Parameters:
        homeRegionKey - the value to set
        Returns:
        this builder
      • upiIdcsCompatibilityLayerEndpoint

        public Tenancy.Builder upiIdcsCompatibilityLayerEndpoint​(String upiIdcsCompatibilityLayerEndpoint)
        Url which refers to the UPI IDCS compatibility layer endpoint configured for this Tenant’s home region.
        Parameters:
        upiIdcsCompatibilityLayerEndpoint - the value to set
        Returns:
        this builder
      • freeformTags

        public Tenancy.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 Tenancy.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