Class Model.Builder

  • Enclosing class:
    Model

    public static class Model.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

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

        public Model.Builder compartmentId​(String compartmentId)
        The OCID of the model’s compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • projectId

        public Model.Builder projectId​(String projectId)
        The OCID of the project associated with the model.
        Parameters:
        projectId - the value to set
        Returns:
        this builder
      • displayName

        public Model.Builder displayName​(String displayName)
        A user-friendly display name for the resource.

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

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

        public Model.Builder description​(String description)
        A short description of the model.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • lifecycleState

        public Model.Builder lifecycleState​(ModelLifecycleState lifecycleState)
        The state of the model.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Model.Builder lifecycleDetails​(String lifecycleDetails)
        Details about the lifecycle state of the model.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • timeCreated

        public Model.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created in the timestamp format defined by RFC3339.

        Example: 2019-08-25T21:10:29.41Z

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

        public Model.Builder createdBy​(String createdBy)
        The OCID of the user who created the model.
        Parameters:
        createdBy - the value to set
        Returns:
        this builder
      • freeformTags

        public Model.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. See Resource Tags. Example: {“Department”: “Finance”}

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

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

        Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

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

        public Model.Builder customMetadataList​(List<Metadata> customMetadataList)
        An array of custom metadata details for the model.
        Parameters:
        customMetadataList - the value to set
        Returns:
        this builder
      • definedMetadataList

        public Model.Builder definedMetadataList​(List<Metadata> definedMetadataList)
        An array of defined metadata details for the model.
        Parameters:
        definedMetadataList - the value to set
        Returns:
        this builder
      • inputSchema

        public Model.Builder inputSchema​(String inputSchema)
        Input schema file content in String format
        Parameters:
        inputSchema - the value to set
        Returns:
        this builder
      • outputSchema

        public Model.Builder outputSchema​(String outputSchema)
        Output schema file content in String format
        Parameters:
        outputSchema - the value to set
        Returns:
        this builder
      • modelVersionSetId

        public Model.Builder modelVersionSetId​(String modelVersionSetId)
        The OCID of the model version set that the model is associated to.
        Parameters:
        modelVersionSetId - the value to set
        Returns:
        this builder
      • modelVersionSetName

        public Model.Builder modelVersionSetName​(String modelVersionSetName)
        The name of the model version set that the model is associated to.
        Parameters:
        modelVersionSetName - the value to set
        Returns:
        this builder
      • versionId

        public Model.Builder versionId​(Long versionId)
        Unique identifier assigned to each version of the model.
        Parameters:
        versionId - the value to set
        Returns:
        this builder
      • versionLabel

        public Model.Builder versionLabel​(String versionLabel)
        The version label can add an additional description of the lifecycle state of the model or the application using and training the model.
        Parameters:
        versionLabel - the value to set
        Returns:
        this builder
      • category

        public Model.Builder category​(ModelCategory category)
        The category of the model.
        Parameters:
        category - the value to set
        Returns:
        this builder
      • isModelByReference

        public Model.Builder isModelByReference​(Boolean isModelByReference)
        Identifier to indicate whether a model artifact resides in the Service Tenancy or Customer Tenancy.
        Parameters:
        isModelByReference - the value to set
        Returns:
        this builder
      • build

        public Model build()