Class ManagementSavedSearchSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • isOobSavedSearch

        public ManagementSavedSearchSummary.Builder isOobSavedSearch​(Boolean isOobSavedSearch)
        Determines whether the saved search is an Out-of-the-Box (OOB) saved search.

        Note that OOB saved searches are only provided by Oracle and cannot be modified.

        Parameters:
        isOobSavedSearch - the value to set
        Returns:
        this builder
      • compartmentId

        public ManagementSavedSearchSummary.Builder compartmentId​(String compartmentId)
        OCID of the compartment in which the saved search resides.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • providerId

        public ManagementSavedSearchSummary.Builder providerId​(String providerId)
        ID of the service (for example log-analytics) that owns the saved search.

        Each service has a unique ID.

        Parameters:
        providerId - the value to set
        Returns:
        this builder
      • providerVersion

        public ManagementSavedSearchSummary.Builder providerVersion​(String providerVersion)
        The version of the metadata of the provider.

        This is useful for provider to version its features and metadata. Any newly created saved search (or dashboard) should use providerVersion 3.0.0.

        Parameters:
        providerVersion - the value to set
        Returns:
        this builder
      • providerName

        public ManagementSavedSearchSummary.Builder providerName​(String providerName)
        The user friendly name of the service (for example, Logging Analytics) that owns the saved search.
        Parameters:
        providerName - the value to set
        Returns:
        this builder
      • uiConfig

        public ManagementSavedSearchSummary.Builder uiConfig​(Object uiConfig)
        It defines the visualization type of the widget saved search, the UI options of that visualization type, the binding of data to the visualization.
        Parameters:
        uiConfig - the value to set
        Returns:
        this builder
      • dataConfig

        public ManagementSavedSearchSummary.Builder dataConfig​(List<Object> dataConfig)
        It defines how data is fetched.

        A functional saved search needs a valid dataConfig. See examples on how it can be constructed for various data sources.

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

        public ManagementSavedSearchSummary.Builder createdBy​(String createdBy)
        The principle id of the user that created this saved search.

        This is automatically managed by the system. In OCI the value is ignored. In EM it can skipped or otherwise it is ignored in both create and update API and system automatically sets its value.

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

        public ManagementSavedSearchSummary.Builder updatedBy​(String updatedBy)
        The principle id of the user that updated this saved search
        Parameters:
        updatedBy - the value to set
        Returns:
        this builder
      • timeCreated

        public ManagementSavedSearchSummary.Builder timeCreated​(Date timeCreated)
        Date and time the saved search was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public ManagementSavedSearchSummary.Builder timeUpdated​(Date timeUpdated)
        Date and time the saved search was updated.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • metadataVersion

        public ManagementSavedSearchSummary.Builder metadataVersion​(String metadataVersion)
        The version of the metadata defined in the API.

        This is maintained and enforced by dashboard server. Currently it is 2.0.

        Parameters:
        metadataVersion - the value to set
        Returns:
        this builder
      • widgetTemplate

        public ManagementSavedSearchSummary.Builder widgetTemplate​(String widgetTemplate)
        The UI template that the saved search uses to render itself.
        Parameters:
        widgetTemplate - the value to set
        Returns:
        this builder
      • featuresConfig

        public ManagementSavedSearchSummary.Builder featuresConfig​(Object featuresConfig)
        Contains configuration for enabling features.
        Parameters:
        featuresConfig - the value to set
        Returns:
        this builder
      • freeformTags

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