Class PutJudgmentsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<PutJudgmentsRequest.Builder>
org.opensearch.client.opensearch.search_relevance.PutJudgmentsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<PutJudgmentsRequest.Builder,,PutJudgmentsRequest> MutableBuilder<PutJudgmentsRequest.Builder,,PutJudgmentsRequest> ObjectBuilder<PutJudgmentsRequest>
- Enclosing class:
PutJudgmentsRequest
public static class PutJudgmentsRequest.Builder
extends RequestBase.AbstractBuilder<PutJudgmentsRequest.Builder>
implements CopyableBuilder<PutJudgmentsRequest.Builder,PutJudgmentsRequest>
Builder for
PutJudgmentsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutJudgmentsRequest.clickModel(String value) API name:clickModelcontextFields(String value, String... values) API name:contextFieldscontextFields(List<String> list) API name:contextFieldscopy()Create a new builderCopyableBuilderthat is a copy of this one.description(String value) API name:descriptionignoreFailure(Boolean value) API name:ignoreFailurejudgmentRatings(List<Map<String, JsonData>> list) API name:judgmentRatingsAPI name:judgmentRatingsAPI name:maxRankAPI name:modelIdAPI name:namequerySetId(String value) API name:querySetIdsearchConfigurationList(String value, String... values) API name:searchConfigurationListsearchConfigurationList(List<String> list) API name:searchConfigurationListprotected PutJudgmentsRequest.Builderself()API name:sizeAPI name:typeMethods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<PutJudgmentsRequest.Builder,PutJudgmentsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutJudgmentsRequest.Builder>
-
clickModel
API name:clickModel -
contextFields
API name:contextFieldsAdds all elements of
listtocontextFields. -
contextFields
API name:contextFieldsAdds one or more values to
contextFields. -
description
API name:description -
ignoreFailure
API name:ignoreFailure -
judgmentRatings
API name:judgmentRatingsAdds all elements of
listtojudgmentRatings. -
judgmentRatings
@Nonnull public final PutJudgmentsRequest.Builder judgmentRatings(Map<String, JsonData> value, Map<String, JsonData>... values) API name:judgmentRatingsAdds one or more values to
judgmentRatings. -
maxRank
API name:maxRank -
modelId
API name:modelId -
name
API name:name -
querySetId
API name:querySetId -
searchConfigurationList
API name:searchConfigurationListAdds all elements of
listtosearchConfigurationList. -
searchConfigurationList
@Nonnull public final PutJudgmentsRequest.Builder searchConfigurationList(String value, String... values) API name:searchConfigurationListAdds one or more values to
searchConfigurationList. -
size
API name:size -
type
API name:type -
build
Builds aPutJudgmentsRequest.- Specified by:
buildin interfaceObjectBuilder<PutJudgmentsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-