UserArtifactSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. UserArtifactSettings
- com.
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 User |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
configFileName()
Get the config |
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
String |
packageFileName()
Get the package |
Gallery |
scriptBehaviorAfterReboot()
Get the script |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
User |
withConfigFileName(String configFileName)
Set the config |
User |
withPackageFileName(String packageFileName)
Set the package |
User |
withScriptBehaviorAfterReboot(GalleryApplicationScriptRebootBehavior scriptBehaviorAfterReboot)
Set the script |
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:
fromJson
public static UserArtifactSettings fromJson(JsonReader jsonReader)
Reads an instance of UserArtifactSettings from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java