Class DatafeedAuthorization.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DatafeedAuthorization.Builder>
co.elastic.clients.elasticsearch.ml.DatafeedAuthorization.Builder
- All Implemented Interfaces:
WithJson<DatafeedAuthorization.Builder>,ObjectBuilder<DatafeedAuthorization>
- Enclosing class:
- DatafeedAuthorization
public static class DatafeedAuthorization.Builder
extends WithJsonObjectBuilderBase<DatafeedAuthorization.Builder>
implements ObjectBuilder<DatafeedAuthorization>
Builder for
DatafeedAuthorization.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey(ApiKeyAuthorization value) If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response.If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response.build()Builds aDatafeedAuthorization.If a user ID was used for the most recent update to the datafeed, its roles at the time of the update are listed in the response.If a user ID was used for the most recent update to the datafeed, its roles at the time of the update are listed in the response.protected DatafeedAuthorization.Builderself()serviceAccount(String value) If a service account was used for the most recent update to the datafeed, 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, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response.API name:
api_key -
apiKey
public final DatafeedAuthorization.Builder apiKey(Function<ApiKeyAuthorization.Builder, ObjectBuilder<ApiKeyAuthorization>> fn) If an API key was used for the most recent update to the datafeed, 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 datafeed, its roles at the time of the update are listed in the response.API name:
rolesAdds all elements of
listtoroles. -
roles
If a user ID was used for the most recent update to the datafeed, 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 datafeed, the account name is listed in the response.API name:
service_account -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DatafeedAuthorization.Builder>
-
build
Builds aDatafeedAuthorization.- Specified by:
buildin interfaceObjectBuilder<DatafeedAuthorization>- Throws:
NullPointerException- if some of the required fields are null.
-