UserArtifactSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.UserArtifactSettings

Implements

public final class UserArtifactSettings
implements JsonSerializable<UserArtifactSettings>

Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.

Constructor Summary

Constructor Description
UserArtifactSettings()

Creates an instance of UserArtifactSettings class.

Method Summary

Modifier and Type Method and Description
String configFileName()

Get the configFileName property: Optional.

static UserArtifactSettings fromJson(JsonReader jsonReader)

Reads an instance of UserArtifactSettings from the JsonReader.

String packageFileName()

Get the packageFileName property: Optional.

GalleryApplicationScriptRebootBehavior scriptBehaviorAfterReboot()

Get the scriptBehaviorAfterReboot property: Optional.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserArtifactSettings withConfigFileName(String configFileName)

Set the configFileName property: Optional.

UserArtifactSettings withPackageFileName(String packageFileName)

Set the packageFileName property: Optional.

UserArtifactSettings withScriptBehaviorAfterReboot(GalleryApplicationScriptRebootBehavior scriptBehaviorAfterReboot)

Set the scriptBehaviorAfterReboot property: Optional.

Methods inherited from java.lang.Object

Constructor Details

UserArtifactSettings

public UserArtifactSettings()

Creates an instance of UserArtifactSettings class.

Method Details

configFileName

public String configFileName()

Get the configFileName property: Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config".

Returns:

the configFileName value.

fromJson

public static UserArtifactSettings fromJson(JsonReader jsonReader)

Reads an instance of UserArtifactSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

packageFileName

public String packageFileName()

Get the packageFileName property: Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same as the Gallery Application name.

Returns:

the packageFileName value.

scriptBehaviorAfterReboot

public GalleryApplicationScriptRebootBehavior scriptBehaviorAfterReboot()

Get the scriptBehaviorAfterReboot property: Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot.

Returns:

the scriptBehaviorAfterReboot value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConfigFileName

public UserArtifactSettings withConfigFileName(String configFileName)

Set the configFileName property: Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config".

Parameters:

configFileName - the configFileName value to set.

Returns:

the UserArtifactSettings object itself.

withPackageFileName

public UserArtifactSettings withPackageFileName(String packageFileName)

Set the packageFileName property: Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same as the Gallery Application name.

Parameters:

packageFileName - the packageFileName value to set.

Returns:

the UserArtifactSettings object itself.

withScriptBehaviorAfterReboot

public UserArtifactSettings withScriptBehaviorAfterReboot(GalleryApplicationScriptRebootBehavior scriptBehaviorAfterReboot)

Set the scriptBehaviorAfterReboot property: Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot.

Parameters:

scriptBehaviorAfterReboot - the scriptBehaviorAfterReboot value to set.

Returns:

the UserArtifactSettings object itself.

Applies to