GalleryOSDiskImage Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryDiskImage - com.
azure. resourcemanager. compute. models. GalleryOSDiskImage
- com.
- com.
public final class GalleryOSDiskImage
extends GalleryDiskImage
This is the OS disk image.
Constructor Summary
Constructor | Description |
---|---|
GalleryOSDiskImage() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the instance. |
Gallery |
withHostCaching(HostCaching hostCaching)
Set the host |
Gallery |
withSource(GalleryDiskImageSource source)
Set the source property: The source for the disk image. |
Methods inherited from GalleryDiskImage
Methods inherited from java.lang.Object
Constructor Details
GalleryOSDiskImage
public GalleryOSDiskImage()
Creates an instance of GalleryOSDiskImage class.
Method Details
validate
public void validate()
Validates the instance.
Overrides:
GalleryOSDiskImage.validate()withHostCaching
public GalleryOSDiskImage withHostCaching(HostCaching hostCaching)
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
Overrides:
GalleryOSDiskImage.withHostCaching(HostCaching hostCaching)Parameters:
withSource
public GalleryOSDiskImage withSource(GalleryDiskImageSource source)
Set the source property: The source for the disk image.
Overrides:
GalleryOSDiskImage.withSource(GalleryDiskImageSource source)Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for