Class ApplicationPackageReference
java.lang.Object
com.azure.resourcemanager.batch.models.ApplicationPackageReference
Link to an application package inside the batch account.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ApplicationPackageReference class. -
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id property: The ID of the application package to install.void
validate()
Validates the instance.version()
Get the version property: The version of the application to deploy.Set the id property: The ID of the application package to install.withVersion
(String version) Set the version property: The version of the application to deploy.
-
Constructor Details
-
ApplicationPackageReference
public ApplicationPackageReference()Creates an instance of ApplicationPackageReference class.
-
-
Method Details
-
id
Get the id property: The ID of the application package to install. This must be inside the same batch account as the pool. This can either be a reference to a specific version or the default version if one exists.- Returns:
- the id value.
-
withId
Set the id property: The ID of the application package to install. This must be inside the same batch account as the pool. This can either be a reference to a specific version or the default version if one exists.- Parameters:
id
- the id value to set.- Returns:
- the ApplicationPackageReference object itself.
-
version
Get the version property: The version of the application to deploy. If omitted, the default version is deployed.If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
- Returns:
- the version value.
-
withVersion
Set the version property: The version of the application to deploy. If omitted, the default version is deployed.If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
- Parameters:
version
- the version value to set.- Returns:
- the ApplicationPackageReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-