Class Owner.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.Owner.Builder
- All Implemented Interfaces:
CopyableBuilder<Owner.Builder,,Owner> MutableBuilder<Owner.Builder,,Owner> ObjectBuilder<Owner>
- Enclosing class:
Owner
public static class Owner.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Owner.Builder,Owner>
Builder for
Owner.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Owner.BuilderbackendRoles(String value, String... values) The backend roles.final Owner.BuilderbackendRoles(List<String> list) The backend roles.build()Builds aOwner.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Owner.BuildercustomAttributeNames(String value, String... values) The custom attribute names.final Owner.BuildercustomAttributeNames(List<String> list) The custom attribute names.final Owner.BuilderRequired - API name:namefinal Owner.BuilderThe roles.final Owner.BuilderThe roles.final Owner.BuilderuserRequestedTenant(String value) The user requested tenant.Methods 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<Owner.Builder,Owner> - Returns:
- a new builder instance.
-
backendRoles
The backend roles.API name:
backend_rolesAdds all elements of
listtobackendRoles. -
backendRoles
The backend roles.API name:
backend_rolesAdds one or more values to
backendRoles. -
customAttributeNames
The custom attribute names.API name:
custom_attribute_namesAdds all elements of
listtocustomAttributeNames. -
customAttributeNames
The custom attribute names.API name:
custom_attribute_namesAdds one or more values to
customAttributeNames. -
name
Required - API name:name -
roles
The roles.API name:
rolesAdds all elements of
listtoroles. -
roles
The roles.API name:
rolesAdds one or more values to
roles. -
userRequestedTenant
The user requested tenant.API name:
user_requested_tenant -
build
Builds aOwner.- Specified by:
buildin interfaceObjectBuilder<Owner>- Throws:
NullPointerException- if some of the required fields are null.
-