VersionSelector Class

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

Implements

public final class VersionSelector
implements JsonSerializable<VersionSelector>

The VersionSelector model.

Constructor Summary

Constructor Description
VersionSelector()

Creates an instance of VersionSelector class.

Method Summary

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

Reads an instance of VersionSelector from the JsonReader.

List<VersionSelectionRule> getVersionSelectionRules()

Get the versionSelectionRules property: The version_selection_rules property.

VersionSelector setVersionSelectionRule(VersionSelectionRule versionSelectionRule)

Set a single version selection rule.

VersionSelector setVersionSelectionRules(List<VersionSelectionRule> versionSelectionRules)

Set the versionSelectionRules property: The version_selection_rules property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VersionSelector

public VersionSelector()

Creates an instance of VersionSelector class.

Method Details

fromJson

public static VersionSelector fromJson(JsonReader jsonReader)

Reads an instance of VersionSelector from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getVersionSelectionRules

public List<VersionSelectionRule> getVersionSelectionRules()

Get the versionSelectionRules property: The version_selection_rules property.

Returns:

the versionSelectionRules value.

setVersionSelectionRule

public VersionSelector setVersionSelectionRule(VersionSelectionRule versionSelectionRule)

Set a single version selection rule.

This is a convenience method equivalent to calling setVersionSelectionRules(List<VersionSelectionRule> versionSelectionRules) with a singleton list.

Parameters:

versionSelectionRule - the version selection rule to set.

Returns:

the VersionSelector object itself.

setVersionSelectionRules

public VersionSelector setVersionSelectionRules(List<VersionSelectionRule> versionSelectionRules)

Set the versionSelectionRules property: The version_selection_rules property.

Required when create the resource.

Parameters:

versionSelectionRules - the versionSelectionRules value to set.

Returns:

the VersionSelector object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to