CustomImageInner Class

public final class CustomImageInner
extends Resource

A custom image.

Constructor Summary

Constructor Description
CustomImageInner()

Creates an instance of CustomImageInner class.

Method Summary

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.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

CustomImageInner

public CustomImageInner()

Creates an instance of CustomImageInner class.

Method Details

author

public String author()

Get the author property: The author of the custom image.

Returns:

the author value.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The creation date of the custom image.

Returns:

the creationDate value.

customImagePlan

public CustomImagePropertiesFromPlan customImagePlan()

Get the customImagePlan property: Storage information about the plan related to this custom image.

Returns:

the customImagePlan value.

dataDiskStorageInfo

public List dataDiskStorageInfo()

Get the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.

Returns:

the dataDiskStorageInfo value.

description

public String description()

Get the description property: The description of the custom image.

Returns:

the description value.

isPlanAuthorized

public Boolean isPlanAuthorized()

Get the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

Returns:

the isPlanAuthorized value.

managedImageId

public String managedImageId()

Get the managedImageId property: The Managed Image Id backing the custom image.

Returns:

the managedImageId value.

managedSnapshotId

public String managedSnapshotId()

Get the managedSnapshotId property: The Managed Snapshot Id backing the custom image.

Returns:

the managedSnapshotId value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

uniqueIdentifier

public String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

validate

public void validate()

Validates the instance.

vhd

public CustomImagePropertiesCustom vhd()

Get the vhd property: The VHD from which the image is to be created.

Returns:

the vhd value.

vm

public CustomImagePropertiesFromVm vm()

Get the vm property: The virtual machine from which the image is to be created.

Returns:

the vm value.

withAuthor

public CustomImageInner withAuthor(String author)

Set the author property: The author of the custom image.

Parameters:

author - the author value to set.

Returns:

the CustomImageInner object itself.

withCustomImagePlan

public CustomImageInner withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)

Set the customImagePlan property: Storage information about the plan related to this custom image.

Parameters:

customImagePlan - the customImagePlan value to set.

Returns:

the CustomImageInner object itself.

withDataDiskStorageInfo

public CustomImageInner withDataDiskStorageInfo(List dataDiskStorageInfo)

Set the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.

Parameters:

dataDiskStorageInfo - the dataDiskStorageInfo value to set.

Returns:

the CustomImageInner object itself.

withDescription

public CustomImageInner withDescription(String description)

Set the description property: The description of the custom image.

Parameters:

description - the description value to set.

Returns:

the CustomImageInner object itself.

withIsPlanAuthorized

public CustomImageInner withIsPlanAuthorized(Boolean isPlanAuthorized)

Set the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

Parameters:

isPlanAuthorized - the isPlanAuthorized value to set.

Returns:

the CustomImageInner object itself.

withLocation

public CustomImageInner withLocation(String location)

Overrides:

CustomImageInner.withLocation(String location)

Parameters:

location

withManagedImageId

public CustomImageInner withManagedImageId(String managedImageId)

Set the managedImageId property: The Managed Image Id backing the custom image.

Parameters:

managedImageId - the managedImageId value to set.

Returns:

the CustomImageInner object itself.

withManagedSnapshotId

public CustomImageInner withManagedSnapshotId(String managedSnapshotId)

Set the managedSnapshotId property: The Managed Snapshot Id backing the custom image.

Parameters:

managedSnapshotId - the managedSnapshotId value to set.

Returns:

the CustomImageInner object itself.

withTags

public CustomImageInner withTags(Map tags)

Overrides:

CustomImageInner.withTags(Map<String,String> tags)

Parameters:

tags

withVhd

public CustomImageInner withVhd(CustomImagePropertiesCustom vhd)

Set the vhd property: The VHD from which the image is to be created.

Parameters:

vhd - the vhd value to set.

Returns:

the CustomImageInner object itself.

withVm

public CustomImageInner withVm(CustomImagePropertiesFromVm vm)

Set the vm property: The virtual machine from which the image is to be created.

Parameters:

vm - the vm value to set.

Returns:

the CustomImageInner object itself.

Applies to