Class SnapshotRetentionConfiguration

  • All Implemented Interfaces:
    org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentObject

    public class SnapshotRetentionConfiguration
    extends java.lang.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
      static SnapshotRetentionConfiguration EMPTY  
      • Fields inherited from interface org.opensearch.common.xcontent.ToXContent

        EMPTY_PARAMS
    • Constructor Summary

      Constructors 
      Constructor Description
      SnapshotRetentionConfiguration​(org.opensearch.common.unit.TimeValue expireAfter, java.lang.Integer minimumSnapshotCount, java.lang.Integer maximumSnapshotCount)  
    • Constructor Detail

      • SnapshotRetentionConfiguration

        public SnapshotRetentionConfiguration​(@Nullable
                                              org.opensearch.common.unit.TimeValue expireAfter,
                                              @Nullable
                                              java.lang.Integer minimumSnapshotCount,
                                              @Nullable
                                              java.lang.Integer maximumSnapshotCount)
    • Method Detail

      • getExpireAfter

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

        public java.lang.Integer getMinimumSnapshotCount()
      • getMaximumSnapshotCount

        public java.lang.Integer getMaximumSnapshotCount()
      • toXContent

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object