Class DatafeedAuthorization
java.lang.Object
co.elastic.clients.elasticsearch.ml.DatafeedAuthorization
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class DatafeedAuthorization extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DatafeedAuthorization.Builder
Builder forDatafeedAuthorization
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<DatafeedAuthorization>
_DESERIALIZER
Json deserializer forDatafeedAuthorization
-
Method Summary
Modifier and Type Method Description ApiKeyAuthorization
apiKey()
If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response.static DatafeedAuthorization
of(java.util.function.Function<DatafeedAuthorization.Builder,ObjectBuilder<DatafeedAuthorization>> fn)
java.util.List<java.lang.String>
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.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
java.lang.String
serviceAccount()
If a service account was used for the most recent update to the datafeed, the account name is listed in the response.protected static void
setupDatafeedAuthorizationDeserializer(ObjectDeserializer<DatafeedAuthorization.Builder> op)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forDatafeedAuthorization
-
-
Method Details
-
of
public static DatafeedAuthorization of(java.util.function.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
public final java.util.List<java.lang.String> 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
@Nullable public final java.lang.String 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupDatafeedAuthorizationDeserializer
protected static void setupDatafeedAuthorizationDeserializer(ObjectDeserializer<DatafeedAuthorization.Builder> op)
-