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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultConfigurationLink property: Optional.static UserArtifactSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserArtifactSource from the JsonReader.Get the mediaLink property: Required.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDefaultConfigurationLink(String defaultConfigurationLink) Set the defaultConfigurationLink property: Optional.withMediaLink(String mediaLink) Set the mediaLink property: Required.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UserArtifactSource
public UserArtifactSource()Creates an instance of UserArtifactSource class.
-
-
Method Details
-
mediaLink
Get the mediaLink property: Required. The mediaLink of the artifact, must be a readable storage page blob.- Returns:
- the mediaLink value.
-
withMediaLink
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
Get the defaultConfigurationLink property: Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.- Returns:
- the defaultConfigurationLink value.
-
withDefaultConfigurationLink
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserArtifactSource>- Throws:
IOException
-
fromJson
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.
-