Class AddIndexBlockResponse.AddBlockShardResult
java.lang.Object
org.opensearch.action.admin.indices.readonly.AddIndexBlockResponse.AddBlockShardResult
- All Implemented Interfaces:
Writeable
,org.opensearch.common.xcontent.ToXContent
,org.opensearch.common.xcontent.ToXContentFragment
- Enclosing class:
- AddIndexBlockResponse
public static class AddIndexBlockResponse.AddBlockShardResult extends java.lang.Object implements Writeable, org.opensearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddIndexBlockResponse.AddBlockShardResult.Failure
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
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AddBlockShardResult(int id, AddIndexBlockResponse.AddBlockShardResult.Failure[] failures)
-
Method Summary
Modifier and Type Method Description AddIndexBlockResponse.AddBlockShardResult.Failure[]
getFailures()
int
getId()
boolean
hasFailures()
java.lang.String
toString()
org.opensearch.common.xcontent.XContentBuilder
toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
hasFailures
public boolean hasFailures() -
getId
public int getId() -
getFailures
-
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 interfaceorg.opensearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-