Class SnapshotRetentionConfiguration

java.lang.Object
org.opensearch.client.slm.SnapshotRetentionConfiguration
All Implemented Interfaces:
org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentObject

public class SnapshotRetentionConfiguration extends Object implements org.opensearch.common.xcontent.ToXContentObject
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent

    org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface org.opensearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    SnapshotRetentionConfiguration(org.opensearch.common.unit.TimeValue expireAfter, Integer minimumSnapshotCount, Integer maximumSnapshotCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.opensearch.common.unit.TimeValue
     
     
     
    int
     
    parse(org.opensearch.common.xcontent.XContentParser parser, String name)
     
     
    org.opensearch.common.xcontent.XContentBuilder
    toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opensearch.common.xcontent.ToXContentObject

    isFragment
  • Field Details

  • Constructor Details

    • SnapshotRetentionConfiguration

      public SnapshotRetentionConfiguration(@Nullable org.opensearch.common.unit.TimeValue expireAfter, @Nullable Integer minimumSnapshotCount, @Nullable Integer maximumSnapshotCount)
  • Method Details

    • parse

      public static SnapshotRetentionConfiguration parse(org.opensearch.common.xcontent.XContentParser parser, String name)
    • getExpireAfter

      public org.opensearch.common.unit.TimeValue getExpireAfter()
    • getMinimumSnapshotCount

      public Integer getMinimumSnapshotCount()
    • getMaximumSnapshotCount

      public Integer getMaximumSnapshotCount()
    • toXContent

      public org.opensearch.common.xcontent.XContentBuilder toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.common.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object