你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CreationData Class

  • java.lang.Object
    • com.microsoft.azure.management.compute.CreationData

public class CreationData

Data used when creating a disk.

Method Summary

Modifier and Type Method and Description
DiskCreateOption createOption()

Get the createOption value.

ImageDiskReference imageReference()

Get the imageReference value.

String sourceResourceId()

Get the sourceResourceId value.

String sourceUri()

Get the sourceUri value.

String storageAccountId()

Get the storageAccountId value.

CreationData withCreateOption(DiskCreateOption createOption)

Set the createOption value.

CreationData withImageReference(ImageDiskReference imageReference)

Set the imageReference value.

CreationData withSourceResourceId(String sourceResourceId)

Set the sourceResourceId value.

CreationData withSourceUri(String sourceUri)

Set the sourceUri value.

CreationData withStorageAccountId(String storageAccountId)

Set the storageAccountId value.

Method Details

createOption

public DiskCreateOption createOption()

Get the createOption value.

Returns:

the createOption value

imageReference

public ImageDiskReference imageReference()

Get the imageReference value.

Returns:

the imageReference value

sourceResourceId

public String sourceResourceId()

Get the sourceResourceId value.

Returns:

the sourceResourceId value

sourceUri

public String sourceUri()

Get the sourceUri value.

Returns:

the sourceUri value

storageAccountId

public String storageAccountId()

Get the storageAccountId value.

Returns:

the storageAccountId value

withCreateOption

public CreationData withCreateOption(DiskCreateOption createOption)

Set the createOption value.

Parameters:

createOption - the createOption value to set

Returns:

the CreationData object itself.

withImageReference

public CreationData withImageReference(ImageDiskReference imageReference)

Set the imageReference value.

Parameters:

imageReference - the imageReference value to set

Returns:

the CreationData object itself.

withSourceResourceId

public CreationData withSourceResourceId(String sourceResourceId)

Set the sourceResourceId value.

Parameters:

sourceResourceId - the sourceResourceId value to set

Returns:

the CreationData object itself.

withSourceUri

public CreationData withSourceUri(String sourceUri)

Set the sourceUri value.

Parameters:

sourceUri - the sourceUri value to set

Returns:

the CreationData object itself.

withStorageAccountId

public CreationData withStorageAccountId(String storageAccountId)

Set the storageAccountId value.

Parameters:

storageAccountId - the storageAccountId value to set

Returns:

the CreationData object itself.

Applies to