VersionSelector Class
- java.
lang. Object - com.
azure. ai. agents. models. VersionSelector
- com.
Implements
public final class VersionSelector
implements JsonSerializable<VersionSelector>
The VersionSelector model.
Constructor Summary
| Constructor | Description |
|---|---|
| VersionSelector() |
Creates an instance of Version |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Version |
fromJson(JsonReader jsonReader)
Reads an instance of Version |
|
List<Version |
getVersionSelectionRules()
Get the version |
|
Version |
setVersionSelectionRule(VersionSelectionRule versionSelectionRule)
Set a single version selection rule. |
|
Version |
setVersionSelectionRules(List<VersionSelectionRule> versionSelectionRules)
Set the version |
|
Json |
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:
Returns:
Throws:
getVersionSelectionRules
public List<VersionSelectionRule> getVersionSelectionRules()
Get the versionSelectionRules property: The version_selection_rules property.
Returns:
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:
Returns:
setVersionSelectionRules
public VersionSelector setVersionSelectionRules(List<VersionSelectionRule> versionSelectionRules)
Set the versionSelectionRules property: The version_selection_rules property.
Required when create the resource.
Parameters:
Returns: