public class CustomImageInner
extends com.azure.core.management.Resource
Constructor and Description |
---|
CustomImageInner() |
Modifier and Type | Method and Description |
---|---|
String |
author()
Get the author property: The author of the custom image.
|
OffsetDateTime |
creationDate()
Get the creationDate property: The creation date of the custom image.
|
CustomImagePropertiesFromPlan |
customImagePlan()
Get the customImagePlan property: Storage information about the plan related to this custom image.
|
List<DataDiskStorageTypeInfo> |
dataDiskStorageInfo()
Get the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.
|
String |
description()
Get the description property: The description of the custom image.
|
Boolean |
isPlanAuthorized()
Get the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for
programmatic deployment.
|
String |
managedImageId()
Get the managedImageId property: The Managed Image Id backing the custom image.
|
String |
managedSnapshotId()
Get the managedSnapshotId property: The Managed Snapshot Id backing the custom image.
|
String |
provisioningState()
Get the provisioningState property: The provisioning status of the resource.
|
String |
uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
|
void |
validate()
Validates the instance.
|
CustomImagePropertiesCustom |
vhd()
Get the vhd property: The VHD from which the image is to be created.
|
CustomImagePropertiesFromVm |
vm()
Get the vm property: The virtual machine from which the image is to be created.
|
CustomImageInner |
withAuthor(String author)
Set the author property: The author of the custom image.
|
CustomImageInner |
withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)
Set the customImagePlan property: Storage information about the plan related to this custom image.
|
CustomImageInner |
withDataDiskStorageInfo(List<DataDiskStorageTypeInfo> dataDiskStorageInfo)
Set the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.
|
CustomImageInner |
withDescription(String description)
Set the description property: The description of the custom image.
|
CustomImageInner |
withIsPlanAuthorized(Boolean isPlanAuthorized)
Set the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for
programmatic deployment.
|
CustomImageInner |
withLocation(String location) |
CustomImageInner |
withManagedImageId(String managedImageId)
Set the managedImageId property: The Managed Image Id backing the custom image.
|
CustomImageInner |
withManagedSnapshotId(String managedSnapshotId)
Set the managedSnapshotId property: The Managed Snapshot Id backing the custom image.
|
CustomImageInner |
withTags(Map<String,String> tags) |
CustomImageInner |
withVhd(CustomImagePropertiesCustom vhd)
Set the vhd property: The VHD from which the image is to be created.
|
CustomImageInner |
withVm(CustomImagePropertiesFromVm vm)
Set the vm property: The virtual machine from which the image is to be created.
|
public CustomImagePropertiesFromVm vm()
public CustomImageInner withVm(CustomImagePropertiesFromVm vm)
vm
- the vm value to set.public CustomImagePropertiesCustom vhd()
public CustomImageInner withVhd(CustomImagePropertiesCustom vhd)
vhd
- the vhd value to set.public String description()
public CustomImageInner withDescription(String description)
description
- the description value to set.public String author()
public CustomImageInner withAuthor(String author)
author
- the author value to set.public OffsetDateTime creationDate()
public String managedImageId()
public CustomImageInner withManagedImageId(String managedImageId)
managedImageId
- the managedImageId value to set.public String managedSnapshotId()
public CustomImageInner withManagedSnapshotId(String managedSnapshotId)
managedSnapshotId
- the managedSnapshotId value to set.public List<DataDiskStorageTypeInfo> dataDiskStorageInfo()
public CustomImageInner withDataDiskStorageInfo(List<DataDiskStorageTypeInfo> dataDiskStorageInfo)
dataDiskStorageInfo
- the dataDiskStorageInfo value to set.public CustomImagePropertiesFromPlan customImagePlan()
public CustomImageInner withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)
customImagePlan
- the customImagePlan value to set.public Boolean isPlanAuthorized()
public CustomImageInner withIsPlanAuthorized(Boolean isPlanAuthorized)
isPlanAuthorized
- the isPlanAuthorized value to set.public String provisioningState()
public String uniqueIdentifier()
public CustomImageInner withLocation(String location)
withLocation
in class com.azure.core.management.Resource
public CustomImageInner withTags(Map<String,String> tags)
withTags
in class com.azure.core.management.Resource
public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.