ActivityProtocolConfiguration Class

  • java.lang.Object
    • com.azure.ai.agents.models.ActivityProtocolConfiguration

Implements

public final class ActivityProtocolConfiguration
implements JsonSerializable<ActivityProtocolConfiguration>

Configuration specific to the activity protocol.

Constructor Summary

Constructor Description
ActivityProtocolConfiguration()

Creates an instance of ActivityProtocolConfiguration class.

Method Summary

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

Reads an instance of ActivityProtocolConfiguration from the JsonReader.

List<ActivityProtocolAccessBoundary> getAccessBoundaries()

Get the accessBoundaries property: The access boundaries for the activity protocol.

Boolean isEnableM365PublicEndpoint()

Get the enableM365PublicEndpoint property: Whether to enable the M365 public endpoint for the activity protocol.

ActivityProtocolConfiguration setEnableM365PublicEndpoint(Boolean enableM365PublicEndpoint)

Set the enableM365PublicEndpoint property: Whether to enable the M365 public endpoint for the activity protocol.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ActivityProtocolConfiguration

public ActivityProtocolConfiguration()

Creates an instance of ActivityProtocolConfiguration class.

Method Details

fromJson

public static ActivityProtocolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ActivityProtocolConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ActivityProtocolConfiguration.

getAccessBoundaries

public List<ActivityProtocolAccessBoundary> getAccessBoundaries()

Get the accessBoundaries property: The access boundaries for the activity protocol.

Returns:

the accessBoundaries value.

isEnableM365PublicEndpoint

public Boolean isEnableM365PublicEndpoint()

Get the enableM365PublicEndpoint property: Whether to enable the M365 public endpoint for the activity protocol.

Returns:

the enableM365PublicEndpoint value.

setEnableM365PublicEndpoint

public ActivityProtocolConfiguration setEnableM365PublicEndpoint(Boolean enableM365PublicEndpoint)

Set the enableM365PublicEndpoint property: Whether to enable the M365 public endpoint for the activity protocol.

Parameters:

enableM365PublicEndpoint - the enableM365PublicEndpoint value to set.

Returns:

the ActivityProtocolConfiguration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to