Class CreateAllowlistRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<CreateAllowlistRequest.Builder>
org.opensearch.client.opensearch.security.CreateAllowlistRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<CreateAllowlistRequest.Builder,,CreateAllowlistRequest> MutableBuilder<CreateAllowlistRequest.Builder,,CreateAllowlistRequest> ObjectBuilder<CreateAllowlistRequest>
- Enclosing class:
CreateAllowlistRequest
public static class CreateAllowlistRequest.Builder
extends RequestBase.AbstractBuilder<CreateAllowlistRequest.Builder>
implements CopyableBuilder<CreateAllowlistRequest.Builder,CreateAllowlistRequest>
Builder for
CreateAllowlistRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCreateAllowlistRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:enabledAn object with APIs as key and array of HTTP methods as values.An object with APIs as key and array of HTTP methods as values.protected CreateAllowlistRequest.Builderself()Methods 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<CreateAllowlistRequest.Builder,CreateAllowlistRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CreateAllowlistRequest.Builder>
-
enabled
API name:enabled -
requests
An object with APIs as key and array of HTTP methods as values.API name:
requestsAdds all elements of
maptorequests. -
requests
An object with APIs as key and array of HTTP methods as values.API name:
requestsAdds an entry to
requests. -
build
Builds aCreateAllowlistRequest.- Specified by:
buildin interfaceObjectBuilder<CreateAllowlistRequest>- Throws:
NullPointerException- if some of the required fields are null.
-