Class SnapshotRetentionConfiguration

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

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

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

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

    Fields
    Modifier and Type
    Field
    Description
     

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

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    SnapshotRetentionConfiguration​(org.elasticsearch.core.TimeValue expireAfter, Integer minimumSnapshotCount, Integer maximumSnapshotCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals​(Object obj)
     
    org.elasticsearch.core.TimeValue
     
     
     
    int
     
    parse​(org.elasticsearch.common.xcontent.XContentParser parser, String name)
     
     
    org.elasticsearch.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.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.elasticsearch.common.xcontent.ToXContentObject

    isFragment
  • Field Details

  • Constructor Details

    • SnapshotRetentionConfiguration

      public SnapshotRetentionConfiguration(@Nullable org.elasticsearch.core.TimeValue expireAfter, @Nullable Integer minimumSnapshotCount, @Nullable Integer maximumSnapshotCount)
  • Method Details

    • parse

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

      public org.elasticsearch.core.TimeValue getExpireAfter()
    • getMinimumSnapshotCount

      public Integer getMinimumSnapshotCount()
    • getMaximumSnapshotCount

      public Integer getMaximumSnapshotCount()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.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