Package org.opensearch.client.slm
Class SnapshotRetentionConfiguration
java.lang.Object
org.opensearch.client.slm.SnapshotRetentionConfiguration
- All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class SnapshotRetentionConfiguration
extends Object
implements org.opensearch.core.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotRetentionConfiguration(org.opensearch.common.unit.TimeValue expireAfter, Integer minimumSnapshotCount, Integer maximumSnapshotCount) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.opensearch.common.unit.TimeValueinthashCode()toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SnapshotRetentionConfiguration
-
-
Method Details
-
parse
public static SnapshotRetentionConfiguration parse(org.opensearch.core.xcontent.XContentParser parser, String name) -
getExpireAfter
public org.opensearch.common.unit.TimeValue getExpireAfter() -
getMinimumSnapshotCount
-
getMaximumSnapshotCount
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-