Class DatafeedAuthorization
java.lang.Object
co.elastic.clients.elasticsearch.ml.DatafeedAuthorization
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DatafeedAuthorization>Json deserializer forDatafeedAuthorization -
Method Summary
Modifier and TypeMethodDescriptionfinal ApiKeyAuthorizationapiKey()If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response.static DatafeedAuthorizationroles()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.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final StringIf a service account was used for the most recent update to the datafeed, the account name is listed in the response.protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDatafeedAuthorization
-
-
Method Details
-
of
public static DatafeedAuthorization of(Function<DatafeedAuthorization.Builder, ObjectBuilder<DatafeedAuthorization>> fn) -
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 -
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:
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDatafeedAuthorizationDeserializer
protected static void setupDatafeedAuthorizationDeserializer(ObjectDeserializer<DatafeedAuthorization.Builder> op)
-