Package org.opensearch.client.slm
Class PutSnapshotLifecyclePolicyRequest
- java.lang.Object
-
- org.opensearch.client.TimedRequest
-
- org.opensearch.client.slm.PutSnapshotLifecyclePolicyRequest
-
- All Implemented Interfaces:
Validatable,org.opensearch.common.xcontent.ToXContent,org.opensearch.common.xcontent.ToXContentObject
public class PutSnapshotLifecyclePolicyRequest extends TimedRequest implements org.opensearch.common.xcontent.ToXContentObject
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.TimedRequest
DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT
-
Fields inherited from interface org.opensearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description PutSnapshotLifecyclePolicyRequest(SnapshotLifecyclePolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)SnapshotLifecyclePolicygetPolicy()inthashCode()org.opensearch.common.xcontent.XContentBuildertoXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)-
Methods inherited from class org.opensearch.client.TimedRequest
masterNodeTimeout, setMasterTimeout, setTimeout, timeout
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.Validatable
validate
-
-
-
-
Constructor Detail
-
PutSnapshotLifecyclePolicyRequest
public PutSnapshotLifecyclePolicyRequest(SnapshotLifecyclePolicy policy)
-
-
Method Detail
-
getPolicy
public SnapshotLifecyclePolicy getPolicy()
-
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:
toXContentin interfaceorg.opensearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-