Class DataAsset.Builder

  • Enclosing class:
    DataAsset

    public static class DataAsset.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public DataAsset.Builder key​(String key)
        Unique data asset key that is immutable.
        Parameters:
        key - the value to set
        Returns:
        this builder
      • displayName

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

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

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

        public DataAsset.Builder description​(String description)
        Detailed description of the data asset.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • catalogId

        public DataAsset.Builder catalogId​(String catalogId)
        The data catalog’s OCID.
        Parameters:
        catalogId - the value to set
        Returns:
        this builder
      • externalKey

        public DataAsset.Builder externalKey​(String externalKey)
        External URI that can be used to reference the object.

        Format will differ based on the type of object.

        Parameters:
        externalKey - the value to set
        Returns:
        this builder
      • typeKey

        public DataAsset.Builder typeKey​(String typeKey)
        The key of the object type.

        Type key’s can be found via the ‘/types’ endpoint.

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

        public DataAsset.Builder lifecycleState​(LifecycleState lifecycleState)
        The current state of the data asset.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

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

        An object not in ACTIVE state may have functional limitations, see service documentation for details.

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

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

        Example: 2019-03-25T21:10:29.600Z

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

        public DataAsset.Builder timeUpdated​(Date timeUpdated)
        The last time that any change was made to the data asset.

        An RFC3339 formatted datetime string.

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

        public DataAsset.Builder timeHarvested​(Date timeHarvested)
        The last time that a harvest was performed on the data asset.

        An RFC3339 formatted datetime string.

        Parameters:
        timeHarvested - the value to set
        Returns:
        this builder
      • createdById

        public DataAsset.Builder createdById​(String createdById)
        OCID of the user who created the data asset.
        Parameters:
        createdById - the value to set
        Returns:
        this builder
      • updatedById

        public DataAsset.Builder updatedById​(String updatedById)
        OCID of the user who last modified the data asset.
        Parameters:
        updatedById - the value to set
        Returns:
        this builder
      • uri

        public DataAsset.Builder uri​(String uri)
        URI to the data asset instance in the API.
        Parameters:
        uri - the value to set
        Returns:
        this builder
      • customPropertyMembers

        public DataAsset.Builder customPropertyMembers​(List<CustomPropertyGetUsage> customPropertyMembers)
        The list of customized properties along with the values for this object
        Parameters:
        customPropertyMembers - the value to set
        Returns:
        this builder
      • dataSelectorPatterns

        public DataAsset.Builder dataSelectorPatterns​(List<PatternSummary> dataSelectorPatterns)
        The list of data selector patterns used in the harvest for this data asset to derive logical entities.
        Parameters:
        dataSelectorPatterns - the value to set
        Returns:
        this builder
      • properties

        public DataAsset.Builder properties​(Map<String,​Map<String,​String>> properties)
        A map of maps that contains the properties which are specific to the asset type.

        Each data asset type definition defines it’s set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the “default” category. Example: {“properties”: { “default”: { “host”: “host1”, “port”: “1521”, “database”: “orcl”}}}

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