Class TransformAuthorization.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TransformAuthorization.Builder>
co.elastic.clients.elasticsearch.ml.TransformAuthorization.Builder
- All Implemented Interfaces:
WithJson<TransformAuthorization.Builder>,ObjectBuilder<TransformAuthorization>
- Enclosing class:
- TransformAuthorization
public static class TransformAuthorization.Builder extends WithJsonObjectBuilderBase<TransformAuthorization.Builder> implements ObjectBuilder<TransformAuthorization>
Builder for
TransformAuthorization.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TransformAuthorization.BuilderapiKey(ApiKeyAuthorization value)If an API key was used for the most recent update to the transform, its name and identifier are listed in the response.TransformAuthorization.BuilderapiKey(java.util.function.Function<ApiKeyAuthorization.Builder,ObjectBuilder<ApiKeyAuthorization>> fn)If an API key was used for the most recent update to the transform, its name and identifier are listed in the response.TransformAuthorizationbuild()Builds aTransformAuthorization.TransformAuthorization.Builderroles(java.lang.String value, java.lang.String... values)If a user ID was used for the most recent update to the transform, its roles at the time of the update are listed in the response.TransformAuthorization.Builderroles(java.util.List<java.lang.String> list)If a user ID was used for the most recent update to the transform, its roles at the time of the update are listed in the response.protected TransformAuthorization.Builderself()TransformAuthorization.BuilderserviceAccount(java.lang.String value)If a service account was used for the most recent update to the transform, the account name is listed in the response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
If an API key was used for the most recent update to the transform, its name and identifier are listed in the response.API name:
api_key -
apiKey
public final TransformAuthorization.Builder apiKey(java.util.function.Function<ApiKeyAuthorization.Builder,ObjectBuilder<ApiKeyAuthorization>> fn)If an API key was used for the most recent update to the transform, its name and identifier are listed in the response.API name:
api_key -
roles
If a user ID was used for the most recent update to the transform, its roles at the time of the update are listed in the response.API name:
rolesAdds all elements of
listtoroles. -
roles
public final TransformAuthorization.Builder roles(java.lang.String value, java.lang.String... values)If a user ID was used for the most recent update to the transform, its roles at the time of the update are listed in the response.API name:
rolesAdds one or more values to
roles. -
serviceAccount
If a service account was used for the most recent update to the transform, the account name is listed in the response.API name:
service_account -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TransformAuthorization.Builder>
-
build
Builds aTransformAuthorization.- Specified by:
buildin interfaceObjectBuilder<TransformAuthorization>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-