Class GalleryArtifactVersionSource
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
-
public final class GalleryArtifactVersionSource extends Object
The gallery artifact version source.
-
-
Constructor Summary
Constructors Constructor Description GalleryArtifactVersionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: The id of the gallery artifact version source.Stringuri()Get the uri property: The uri of the gallery artifact version source.voidvalidate()Validates the instance.GalleryArtifactVersionSourcewithId(String id)Set the id property: The id of the gallery artifact version source.GalleryArtifactVersionSourcewithUri(String uri)Set the uri property: The uri of the gallery artifact version source.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.- Returns:
- the id value.
-
withId
public GalleryArtifactVersionSource withId(String id)
Set the id property: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.- Parameters:
id- the id value to set.- Returns:
- the GalleryArtifactVersionSource object itself.
-
uri
public String uri()
Get the uri property: The uri of the gallery artifact version source. Currently used to specify vhd/blob source.- Returns:
- the uri value.
-
withUri
public GalleryArtifactVersionSource withUri(String uri)
Set the uri property: The uri of the gallery artifact version source. Currently used to specify vhd/blob source.- Parameters:
uri- the uri value to set.- Returns:
- the GalleryArtifactVersionSource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-