ApplicationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.fluent.models.ApplicationProperties

Implements

public final class ApplicationProperties
implements JsonSerializable<ApplicationProperties>

The properties associated with the Application.

Constructor Summary

Constructor Description
ApplicationProperties()

Creates an instance of ApplicationProperties class.

Method Summary

Modifier and Type Method and Description
Boolean allowUpdates()

Get the allowUpdates property: A value indicating whether packages within the application may be overwritten using the same version string.

String defaultVersion()

Get the defaultVersion property: The package to use if a client requests the application but does not specify a version.

String displayName()

Get the displayName property: The display name for the application.

static ApplicationProperties fromJson(JsonReader jsonReader)

Reads an instance of ApplicationProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationProperties withAllowUpdates(Boolean allowUpdates)

Set the allowUpdates property: A value indicating whether packages within the application may be overwritten using the same version string.

ApplicationProperties withDefaultVersion(String defaultVersion)

Set the defaultVersion property: The package to use if a client requests the application but does not specify a version.

ApplicationProperties withDisplayName(String displayName)

Set the displayName property: The display name for the application.

Methods inherited from java.lang.Object

Constructor Details

ApplicationProperties

public ApplicationProperties()

Creates an instance of ApplicationProperties class.

Method Details

allowUpdates

public Boolean 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.

defaultVersion

public String 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.

displayName

public String displayName()

Get the displayName property: The display name for the application.

Returns:

the displayName value.

fromJson

public static ApplicationProperties fromJson(JsonReader jsonReader)

Reads an instance of ApplicationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowUpdates

public ApplicationProperties withAllowUpdates(Boolean allowUpdates)

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.

withDefaultVersion

public ApplicationProperties withDefaultVersion(String defaultVersion)

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.

withDisplayName

public ApplicationProperties withDisplayName(String displayName)

Set the displayName property: The display name for the application.

Parameters:

displayName - the displayName value to set.

Returns:

the ApplicationProperties object itself.

Applies to