AppAttachPackagePatchProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackagePatchProperties

Implements

public final class AppAttachPackagePatchProperties
implements JsonSerializable<AppAttachPackagePatchProperties>

Schema for patchable fields on an App Attach Package.

Constructor Summary

Constructor Description
AppAttachPackagePatchProperties()

Creates an instance of AppAttachPackagePatchProperties class.

Method Summary

Modifier and Type Method and Description
FailHealthCheckOnStagingFailure failHealthCheckOnStagingFailure()

Get the failHealthCheckOnStagingFailure property: Parameter indicating how the health check should behave if this package fails staging.

static AppAttachPackagePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of AppAttachPackagePatchProperties from the JsonReader.

List<String> hostPoolReferences()

Get the hostPoolReferences property: List of Hostpool resource Ids.

AppAttachPackageInfoProperties image()

Get the image property: Detailed properties for App Attach Package.

String keyVaultUrl()

Get the keyVaultUrl property: URL path to certificate name located in keyVault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AppAttachPackagePatchProperties withFailHealthCheckOnStagingFailure(FailHealthCheckOnStagingFailure failHealthCheckOnStagingFailure)

Set the failHealthCheckOnStagingFailure property: Parameter indicating how the health check should behave if this package fails staging.

AppAttachPackagePatchProperties withHostPoolReferences(List<String> hostPoolReferences)

Set the hostPoolReferences property: List of Hostpool resource Ids.

AppAttachPackagePatchProperties withImage(AppAttachPackageInfoProperties image)

Set the image property: Detailed properties for App Attach Package.

AppAttachPackagePatchProperties withKeyVaultUrl(String keyVaultUrl)

Set the keyVaultUrl property: URL path to certificate name located in keyVault.

Methods inherited from java.lang.Object

Constructor Details

AppAttachPackagePatchProperties

public AppAttachPackagePatchProperties()

Creates an instance of AppAttachPackagePatchProperties class.

Method Details

failHealthCheckOnStagingFailure

public FailHealthCheckOnStagingFailure failHealthCheckOnStagingFailure()

Get the failHealthCheckOnStagingFailure property: Parameter indicating how the health check should behave if this package fails staging.

Returns:

the failHealthCheckOnStagingFailure value.

fromJson

public static AppAttachPackagePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of AppAttachPackagePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hostPoolReferences

public List<String> hostPoolReferences()

Get the hostPoolReferences property: List of Hostpool resource Ids.

Returns:

the hostPoolReferences value.

image

public AppAttachPackageInfoProperties image()

Get the image property: Detailed properties for App Attach Package.

Returns:

the image value.

keyVaultUrl

public String keyVaultUrl()

Get the keyVaultUrl property: URL path to certificate name located in keyVault.

Returns:

the keyVaultUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFailHealthCheckOnStagingFailure

public AppAttachPackagePatchProperties withFailHealthCheckOnStagingFailure(FailHealthCheckOnStagingFailure failHealthCheckOnStagingFailure)

Set the failHealthCheckOnStagingFailure property: Parameter indicating how the health check should behave if this package fails staging.

Parameters:

failHealthCheckOnStagingFailure - the failHealthCheckOnStagingFailure value to set.

Returns:

the AppAttachPackagePatchProperties object itself.

withHostPoolReferences

public AppAttachPackagePatchProperties withHostPoolReferences(List<String> hostPoolReferences)

Set the hostPoolReferences property: List of Hostpool resource Ids.

Parameters:

hostPoolReferences - the hostPoolReferences value to set.

Returns:

the AppAttachPackagePatchProperties object itself.

withImage

public AppAttachPackagePatchProperties withImage(AppAttachPackageInfoProperties image)

Set the image property: Detailed properties for App Attach Package.

Parameters:

image - the image value to set.

Returns:

the AppAttachPackagePatchProperties object itself.

withKeyVaultUrl

public AppAttachPackagePatchProperties withKeyVaultUrl(String keyVaultUrl)

Set the keyVaultUrl property: URL path to certificate name located in keyVault.

Parameters:

keyVaultUrl - the keyVaultUrl value to set.

Returns:

the AppAttachPackagePatchProperties object itself.

Applies to