Class UserArtifactSettings

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

public final class UserArtifactSettings extends Object
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.