Class CreateIndexResponse

java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject
Direct Known Subclasses:
ResizeResponse

@PublicApi(since="1.0.0") public class CreateIndexResponse extends ShardsAcknowledgedResponse
A response for a create index action.
Opensearch.api:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.opensearch.core.transport.TransportResponse

    org.opensearch.core.transport.TransportResponse.Empty

    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

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Field Summary

    Fields inherited from class org.opensearch.action.support.master.ShardsAcknowledgedResponse

    SHARDS_ACKNOWLEDGED

    Fields inherited from class org.opensearch.action.support.master.AcknowledgedResponse

    acknowledged

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    CreateIndexResponse(boolean acknowledged, boolean shardsAcknowledged, String index)
     
    protected
    CreateIndexResponse(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addCustomFields(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
    protected static <T extends CreateIndexResponse>
    void
    declareFields(org.opensearch.core.xcontent.ConstructingObjectParser<T,Void> objectParser)
     
    boolean
     
    fromXContent(org.opensearch.core.xcontent.XContentParser parser)
     
    int
     
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class org.opensearch.action.support.master.AcknowledgedResponse

    declareAcknowledgedField, isAcknowledged, toXContent

    Methods inherited from class org.opensearch.core.transport.TransportMessage

    remoteAddress, remoteAddress

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentObject

    isFragment
  • Constructor Details

    • CreateIndexResponse

      protected CreateIndexResponse(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • CreateIndexResponse

      public CreateIndexResponse(boolean acknowledged, boolean shardsAcknowledged, String index)
  • Method Details