VersionSelectionRule Class
- java.
lang. Object - com.
azure. ai. agents. models. VersionSelectionRule
- com.
Implements
public class VersionSelectionRule
implements JsonSerializable<VersionSelectionRule>
The VersionSelectionRule model.
Constructor Summary
| Constructor | Description |
|---|---|
| VersionSelectionRule() |
Creates an instance of Version |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Version |
fromJson(JsonReader jsonReader)
Reads an instance of Version |
| String |
getAgentVersion()
Get the agent |
|
Version |
getType()
Get the type property: The type property. |
|
Version |
setAgentVersion(String agentVersion)
Set the agent |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
VersionSelectionRule
public VersionSelectionRule()
Creates an instance of VersionSelectionRule class.
Method Details
fromJson
public static VersionSelectionRule fromJson(JsonReader jsonReader)
Reads an instance of VersionSelectionRule from the JsonReader.
Parameters:
Returns:
Throws:
getAgentVersion
public String getAgentVersion()
Get the agentVersion property: The agent version to route traffic to.
Returns:
getType
public VersionSelectorType getType()
Get the type property: The type property.
Returns:
setAgentVersion
public VersionSelectionRule setAgentVersion(String agentVersion)
Set the agentVersion property: The agent version to route traffic to.
Required when create the resource.
Parameters:
Returns: