Class UserArtifactSource

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

public final class UserArtifactSource extends Object implements com.azure.json.JsonSerializable<UserArtifactSource>
The source image from which the Image Version is going to be created.
  • Constructor Details

    • UserArtifactSource

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

    • mediaLink

      public String mediaLink()
      Get the mediaLink property: Required. The mediaLink of the artifact, must be a readable storage page blob.
      Returns:
      the mediaLink value.
    • withMediaLink

      public UserArtifactSource withMediaLink(String mediaLink)
      Set the mediaLink property: Required. The mediaLink of the artifact, must be a readable storage page blob.
      Parameters:
      mediaLink - the mediaLink value to set.
      Returns:
      the UserArtifactSource object itself.
    • defaultConfigurationLink

      public String defaultConfigurationLink()
      Get the defaultConfigurationLink property: Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.
      Returns:
      the defaultConfigurationLink value.
    • withDefaultConfigurationLink

      public UserArtifactSource withDefaultConfigurationLink(String defaultConfigurationLink)
      Set the defaultConfigurationLink property: Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.
      Parameters:
      defaultConfigurationLink - the defaultConfigurationLink value to set.
      Returns:
      the UserArtifactSource 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<UserArtifactSource>
      Throws:
      IOException
    • fromJson

      public static UserArtifactSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UserArtifactSource from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UserArtifactSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the UserArtifactSource.