Class GetJudgmentsResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.search_relevance.GetJudgmentsResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GetJudgmentsResponse.Builder,,GetJudgmentsResponse> MutableBuilder<GetJudgmentsResponse.Builder,,GetJudgmentsResponse> ObjectBuilder<GetJudgmentsResponse>
- Enclosing class:
GetJudgmentsResponse
public static class GetJudgmentsResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GetJudgmentsResponse.Builder,GetJudgmentsResponse>
Builder for
GetJudgmentsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetJudgmentsResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:hitsAPI name:hitsAPI name:idjudgmentScores(String key, JsonData value) API name:judgmentScoresjudgmentScores(Map<String, JsonData> map) API name:judgmentScoresAPI name:metadataAPI name:metadataAPI name:nameAPI name:_shardsAPI name:_shardsAPI name:statusAPI name:timed_outAPI name:timestampAPI name:tookAPI name:typeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetJudgmentsResponse.Builder,GetJudgmentsResponse> - Returns:
- a new builder instance.
-
hits
API name:hitsAdds all elements of
maptohits. -
hits
API name:hitsAdds an entry to
hits. -
id
API name:id -
judgmentScores
API name:judgmentScoresAdds all elements of
maptojudgmentScores. -
judgmentScores
API name:judgmentScoresAdds an entry to
judgmentScores. -
metadata
API name:metadataAdds all elements of
maptometadata. -
metadata
API name:metadataAdds an entry to
metadata. -
name
API name:name -
shards
API name:_shardsAdds all elements of
maptoshards. -
shards
API name:_shardsAdds an entry to
shards. -
status
API name:status -
timedOut
API name:timed_out -
timestamp
API name:timestamp -
took
API name:took -
type
API name:type -
build
Builds aGetJudgmentsResponse.- Specified by:
buildin interfaceObjectBuilder<GetJudgmentsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-