Class CreateSnapshotResponse

java.lang.Object
All Implemented Interfaces:
Writeable, org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentObject

public class CreateSnapshotResponse
extends ActionResponse
implements org.opensearch.common.xcontent.ToXContentObject
Create snapshot response
  • Constructor Details

  • Method Details

    • getSnapshotInfo

      public SnapshotInfo getSnapshotInfo()
      Returns snapshot information if snapshot was completed by the time this method returned or null otherwise.
      Returns:
      snapshot information or null
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • status

      public RestStatus status()
      Returns HTTP status
    • 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
    • fromXContent

      public static CreateSnapshotResponse fromXContent​(org.opensearch.common.xcontent.XContentParser parser)
    • toString

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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