Class TransformAuthorization

java.lang.Object
co.elastic.clients.elasticsearch.ml.TransformAuthorization
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class TransformAuthorization
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static TransformAuthorization of​(java.util.function.Function<TransformAuthorization.Builder,​ObjectBuilder<TransformAuthorization>> fn)
    • apiKey

      @Nullable public final ApiKeyAuthorization 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

    • roles

      public final java.util.List<java.lang.String> 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: roles

    • serviceAccount

      @Nullable public final java.lang.String 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

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupTransformAuthorizationDeserializer

      protected static void setupTransformAuthorizationDeserializer​(ObjectDeserializer<TransformAuthorization.Builder> op)