Class Drg.Builder

  • Enclosing class:
    Drg

    public static class Drg.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

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

        public Drg.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
      • displayName

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

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

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

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

        public Drg.Builder id​(String id)
        The DRG’s Oracle ID (OCID).
        Parameters:
        id - the value to set
        Returns:
        this builder
      • lifecycleState

        public Drg.Builder lifecycleState​(Drg.LifecycleState lifecycleState)
        The DRG’s current state.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeCreated

        public Drg.Builder timeCreated​(Date timeCreated)
        The date and time the DRG was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

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

        public Drg.Builder defaultExportDrgRouteDistributionId​(String defaultExportDrgRouteDistributionId)
        The OCID of this DRG’s default export route distribution for the DRG attachments.
        Parameters:
        defaultExportDrgRouteDistributionId - the value to set
        Returns:
        this builder
      • build

        public Drg build()