Class PurgeAction.Builder

  • Enclosing class:
    PurgeAction

    public static class PurgeAction.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • queryString

        public PurgeAction.Builder queryString​(String queryString)
        Purge query string.
        Parameters:
        queryString - the value to set
        Returns:
        this builder
      • dataType

        public PurgeAction.Builder dataType​(StorageDataType dataType)
        the type of the log data to be purged
        Parameters:
        dataType - the value to set
        Returns:
        this builder
      • purgeDuration

        public PurgeAction.Builder purgeDuration​(String purgeDuration)
        The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires.

        The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).

        Parameters:
        purgeDuration - the value to set
        Returns:
        this builder
      • purgeCompartmentId

        public PurgeAction.Builder purgeCompartmentId​(String purgeCompartmentId)
        the compartment OCID under which the data will be purged
        Parameters:
        purgeCompartmentId - the value to set
        Returns:
        this builder
      • compartmentIdInSubtree

        public PurgeAction.Builder compartmentIdInSubtree​(Boolean compartmentIdInSubtree)
        if true, purge child compartments data
        Parameters:
        compartmentIdInSubtree - the value to set
        Returns:
        this builder