ApplicationPackageProperties Class

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

Implements

public final class ApplicationPackageProperties
implements JsonSerializable<ApplicationPackageProperties>

Properties of an application package.

Constructor Summary

Constructor Description
ApplicationPackageProperties()

Creates an instance of ApplicationPackageProperties class.

Method Summary

Modifier and Type Method and Description
String format()

Get the format property: The format of the application package, if the package is active.

static ApplicationPackageProperties fromJson(JsonReader jsonReader)

Reads an instance of ApplicationPackageProperties from the JsonReader.

OffsetDateTime lastActivationTime()

Get the lastActivationTime property: The time at which the package was last activated, if the package is active.

PackageState state()

Get the state property: The current state of the application package.

String storageUrl()

Get the storageUrl property: The URL for the application package in Azure Storage.

OffsetDateTime storageUrlExpiry()

Get the storageUrlExpiry property: The UTC time at which the Azure Storage URL will expire.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ApplicationPackageProperties

public ApplicationPackageProperties()

Creates an instance of ApplicationPackageProperties class.

Method Details

format

public String format()

Get the format property: The format of the application package, if the package is active.

Returns:

the format value.

fromJson

public static ApplicationPackageProperties fromJson(JsonReader jsonReader)

Reads an instance of ApplicationPackageProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastActivationTime

public OffsetDateTime lastActivationTime()

Get the lastActivationTime property: The time at which the package was last activated, if the package is active.

Returns:

the lastActivationTime value.

state

public PackageState state()

Get the state property: The current state of the application package.

Returns:

the state value.

storageUrl

public String storageUrl()

Get the storageUrl property: The URL for the application package in Azure Storage.

Returns:

the storageUrl value.

storageUrlExpiry

public OffsetDateTime storageUrlExpiry()

Get the storageUrlExpiry property: The UTC time at which the Azure Storage URL will expire.

Returns:

the storageUrlExpiry value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to