ModelCredentialInput Class

  • java.lang.Object
    • com.azure.ai.projects.models.ModelCredentialInput

Implements

public final class ModelCredentialInput
implements JsonSerializable<ModelCredentialInput>

Request to fetch credentials for a model asset.

Constructor Summary

Constructor Description
ModelCredentialInput(String blobUrl)

Creates an instance of ModelCredentialInput class.

Method Summary

Modifier and Type Method and Description
static ModelCredentialInput fromJson(JsonReader jsonReader)

Reads an instance of ModelCredentialInput from the JsonReader.

String getBlobUrl()

Get the blobUrl property: Blob URI of the model asset to fetch credentials for.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ModelCredentialInput

public ModelCredentialInput(String blobUrl)

Creates an instance of ModelCredentialInput class.

Parameters:

blobUrl - the blobUrl value to set.

Method Details

fromJson

public static ModelCredentialInput fromJson(JsonReader jsonReader)

Reads an instance of ModelCredentialInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ModelCredentialInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getBlobUrl

public String getBlobUrl()

Get the blobUrl property: Blob URI of the model asset to fetch credentials for.

Returns:

the blobUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to