AzureFunctionBinding Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.AzureFunctionBinding

Implements

public final class AzureFunctionBinding
implements JsonSerializable<AzureFunctionBinding>

The structure for keeping storage queue name and URI.

Constructor Summary

Constructor Description
AzureFunctionBinding(AzureFunctionStorageQueue storageQueue)

Creates an instance of AzureFunctionBinding class.

Method Summary

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

Reads an instance of AzureFunctionBinding from the JsonReader.

AzureFunctionStorageQueue getStorageQueue()

Get the storageQueue property: Storage queue.

String getType()

Get the type property: The type of binding, which is always 'storage_queue'.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AzureFunctionBinding

public AzureFunctionBinding(AzureFunctionStorageQueue storageQueue)

Creates an instance of AzureFunctionBinding class.

Parameters:

storageQueue - the storageQueue value to set.

Method Details

fromJson

public static AzureFunctionBinding fromJson(JsonReader jsonReader)

Reads an instance of AzureFunctionBinding from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureFunctionBinding 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.

getStorageQueue

public AzureFunctionStorageQueue getStorageQueue()

Get the storageQueue property: Storage queue.

Returns:

the storageQueue value.

getType

public String getType()

Get the type property: The type of binding, which is always 'storage_queue'.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to