Class OpenApiConnectionSecurityScheme

java.lang.Object
com.azure.ai.agents.persistent.models.OpenApiConnectionSecurityScheme
All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenApiConnectionSecurityScheme>

public final class OpenApiConnectionSecurityScheme extends Object implements com.azure.json.JsonSerializable<OpenApiConnectionSecurityScheme>
Security scheme for OpenApi managed_identity authentication.
  • Constructor Details

    • OpenApiConnectionSecurityScheme

      public OpenApiConnectionSecurityScheme(String connectionId)
      Creates an instance of OpenApiConnectionSecurityScheme class.
      Parameters:
      connectionId - the connectionId value to set.
  • Method Details

    • getConnectionId

      public String getConnectionId()
      Get the connectionId property: Connection id for Connection auth type.
      Returns:
      the connectionId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OpenApiConnectionSecurityScheme>
      Throws:
      IOException
    • fromJson

      public static OpenApiConnectionSecurityScheme fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OpenApiConnectionSecurityScheme from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OpenApiConnectionSecurityScheme if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the OpenApiConnectionSecurityScheme.