Class DataframeAnalyticsAuthorization.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataframeAnalyticsAuthorization.Builder>
co.elastic.clients.elasticsearch.ml.DataframeAnalyticsAuthorization.Builder
- All Implemented Interfaces:
WithJson<DataframeAnalyticsAuthorization.Builder>
,ObjectBuilder<DataframeAnalyticsAuthorization>
- Enclosing class:
- DataframeAnalyticsAuthorization
public static class DataframeAnalyticsAuthorization.Builder extends WithJsonObjectBuilderBase<DataframeAnalyticsAuthorization.Builder> implements ObjectBuilder<DataframeAnalyticsAuthorization>
Builder for
DataframeAnalyticsAuthorization
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DataframeAnalyticsAuthorization.Builder
apiKey(ApiKeyAuthorization value)
If an API key was used for the most recent update to the job, its name and identifier are listed in the response.DataframeAnalyticsAuthorization.Builder
apiKey(java.util.function.Function<ApiKeyAuthorization.Builder,ObjectBuilder<ApiKeyAuthorization>> fn)
If an API key was used for the most recent update to the job, its name and identifier are listed in the response.DataframeAnalyticsAuthorization
build()
Builds aDataframeAnalyticsAuthorization
.DataframeAnalyticsAuthorization.Builder
roles(java.lang.String value, java.lang.String... values)
If a user ID was used for the most recent update to the job, its roles at the time of the update are listed in the response.DataframeAnalyticsAuthorization.Builder
roles(java.util.List<java.lang.String> list)
If a user ID was used for the most recent update to the job, its roles at the time of the update are listed in the response.protected DataframeAnalyticsAuthorization.Builder
self()
DataframeAnalyticsAuthorization.Builder
serviceAccount(java.lang.String value)
If a service account was used for the most recent update to the job, the account name is listed in the response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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 job, its name and identifier are listed in the response.API name:
api_key
-
apiKey
public final DataframeAnalyticsAuthorization.Builder apiKey(java.util.function.Function<ApiKeyAuthorization.Builder,ObjectBuilder<ApiKeyAuthorization>> fn)If an API key was used for the most recent update to the job, 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 job, its roles at the time of the update are listed in the response.API name:
roles
Adds all elements of
list
toroles
. -
roles
public final DataframeAnalyticsAuthorization.Builder roles(java.lang.String value, java.lang.String... values)If a user ID was used for the most recent update to the job, its roles at the time of the update are listed in the response.API name:
roles
Adds one or more values to
roles
. -
serviceAccount
public final DataframeAnalyticsAuthorization.Builder serviceAccount(@Nullable java.lang.String value)If a service account was used for the most recent update to the job, the account name is listed in the response.API name:
service_account
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DataframeAnalyticsAuthorization.Builder>
-
build
Builds aDataframeAnalyticsAuthorization
.- Specified by:
build
in interfaceObjectBuilder<DataframeAnalyticsAuthorization>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-