Class ApplicationProperties
java.lang.Object
com.azure.resourcemanager.batch.fluent.models.ApplicationProperties
The properties associated with the Application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowUpdates property: A value indicating whether packages within the application may be overwritten using the same version string.Get the defaultVersion property: The package to use if a client requests the application but does not specify a version.Get the displayName property: The display name for the application.void
validate()
Validates the instance.withAllowUpdates
(Boolean allowUpdates) Set the allowUpdates property: A value indicating whether packages within the application may be overwritten using the same version string.withDefaultVersion
(String defaultVersion) Set the defaultVersion property: The package to use if a client requests the application but does not specify a version.withDisplayName
(String displayName) Set the displayName property: The display name for the application.
-
Constructor Details
-
ApplicationProperties
public ApplicationProperties()Creates an instance of ApplicationProperties class.
-
-
Method Details
-
displayName
Get the displayName property: The display name for the application.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for the application.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ApplicationProperties object itself.
-
allowUpdates
Get the allowUpdates property: A value indicating whether packages within the application may be overwritten using the same version string.- Returns:
- the allowUpdates value.
-
withAllowUpdates
Set the allowUpdates property: A value indicating whether packages within the application may be overwritten using the same version string.- Parameters:
allowUpdates
- the allowUpdates value to set.- Returns:
- the ApplicationProperties object itself.
-
defaultVersion
Get the defaultVersion property: The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.- Returns:
- the defaultVersion value.
-
withDefaultVersion
Set the defaultVersion property: The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.- Parameters:
defaultVersion
- the defaultVersion value to set.- Returns:
- the ApplicationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-