Class UserArtifactSettings

java.lang.Object
com.azure.resourcemanager.compute.models.UserArtifactSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<UserArtifactSettings>

public final class UserArtifactSettings extends Object implements com.azure.json.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 Details

    • UserArtifactSettings

      public UserArtifactSettings()
      Creates an instance of UserArtifactSettings class.
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<UserArtifactSettings>
      Throws:
      IOException
    • fromJson

      public static UserArtifactSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.