Class SnapshotRetentionConfiguration

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

public class SnapshotRetentionConfiguration extends Object implements org.elasticsearch.xcontent.ToXContentObject
  • 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.xcontent.XContentParser parser, String name)
    • getExpireAfter

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

      public Integer getMinimumSnapshotCount()
    • getMaximumSnapshotCount

      public Integer getMaximumSnapshotCount()
    • toXContent

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