Class GalleryArtifactVersionFullSource
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
com.azure.resourcemanager.compute.models.GalleryArtifactVersionFullSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryArtifactVersionSource>
The source of the gallery artifact version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryArtifactVersionFullSource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the communityGalleryImageId property: The resource Id of the source Community Gallery Image.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryArtifactVersionFullSource from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualMachineId property: The resource Id of the source virtual machine.withCommunityGalleryImageId(String communityGalleryImageId) Set the communityGalleryImageId property: The resource Id of the source Community Gallery Image.Set the id property: The id of the gallery artifact version source.withVirtualMachineId(String virtualMachineId) Set the virtualMachineId property: The resource Id of the source virtual machine.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
idMethods inherited from class java.lang.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
-
GalleryArtifactVersionFullSource
public GalleryArtifactVersionFullSource()Creates an instance of GalleryArtifactVersionFullSource class.
-
-
Method Details
-
communityGalleryImageId
Get the communityGalleryImageId property: The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.- Returns:
- the communityGalleryImageId value.
-
withCommunityGalleryImageId
Set the communityGalleryImageId property: The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.- Parameters:
communityGalleryImageId- the communityGalleryImageId value to set.- Returns:
- the GalleryArtifactVersionFullSource object itself.
-
virtualMachineId
Get the virtualMachineId property: The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.- Returns:
- the virtualMachineId value.
-
withVirtualMachineId
Set the virtualMachineId property: The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.- Parameters:
virtualMachineId- the virtualMachineId value to set.- Returns:
- the GalleryArtifactVersionFullSource object itself.
-
withId
Set the id property: The id of the gallery artifact version source.- Overrides:
withIdin classGalleryArtifactVersionSource- Parameters:
id- the id value to set.- Returns:
- the GalleryArtifactVersionSource object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGalleryArtifactVersionSource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryArtifactVersionSource>- Overrides:
toJsonin classGalleryArtifactVersionSource- Throws:
IOException
-
fromJson
public static GalleryArtifactVersionFullSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryArtifactVersionFullSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryArtifactVersionFullSource 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 GalleryArtifactVersionFullSource.
-