ApplicationPackageReference Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ApplicationPackageReference
- com.
public final class ApplicationPackageReference
Link to an application package inside the batch account.
Constructor Summary
Constructor | Description | |
---|---|---|
ApplicationPackageReference() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
id()
Get the id property: The ID of the application package to install. |
void |
validate()
Validates the instance. |
String |
version()
Get the version property: The version of the application to deploy. |
Application |
withId(String id)
Set the id property: The ID of the application package to install. |
Application |
withVersion(String version)
Set the version property: The version of the application to deploy. |
Methods inherited from java.lang.Object
Constructor Details
ApplicationPackageReference
public ApplicationPackageReference()
Method Details
id
public String 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:
validate
public void validate()
Validates the instance.
version
public String 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:
withId
public ApplicationPackageReference withId(String id)
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:
Returns:
withVersion
public ApplicationPackageReference withVersion(String version)
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for