Share via


VirtualMachineTemplateInner Class

public final class VirtualMachineTemplateInner
extends Resource

Define the virtualMachineTemplate.

Constructor Summary

Constructor Description
VirtualMachineTemplateInner()

Creates an instance of VirtualMachineTemplateInner class.

Method Summary

Modifier and Type Method and Description
String customResourceName()

Get the customResourceName property: Gets the name of the corresponding resource in Kubernetes.

List<VirtualDisk> disks()

Get the disks property: Gets or sets the disks the template.

ExtendedLocation extendedLocation()

Get the extendedLocation property: Gets or sets the extended location.

FirmwareType firmwareType()

Get the firmwareType property: Firmware type.

String folderPath()

Get the folderPath property: Gets or sets the folder path of the template.

static VirtualMachineTemplateInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineTemplateInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the virtual machine template.

String kind()

Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.

Integer memorySizeMB()

Get the memorySizeMB property: Gets or sets memory size in MBs for the template.

String moName()

Get the moName property: Gets or sets the vCenter Managed Object name for the virtual machine template.

String moRefId()

Get the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template.

String name()

Get the name property: The name of the resource.

List<NetworkInterface> networkInterfaces()

Get the networkInterfaces property: Gets or sets the network interfaces of the template.

Integer numCoresPerSocket()

Get the numCoresPerSocket property: Gets or sets the number of cores per socket for the template.

Integer numCPUs()

Get the numCPUs property: Gets or sets the number of vCPUs for the template.

String osName()

Get the osName property: Gets or sets os name.

OsType osType()

Get the osType property: Gets or sets the type of the os.

ProvisioningState provisioningState()

Get the provisioningState property: Gets the provisioning state.

List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

SystemData systemData()

Get the systemData property: The system data.

JsonWriter toJson(JsonWriter jsonWriter)
String toolsVersion()

Get the toolsVersion property: Gets or sets the current version of VMware Tools.

String toolsVersionStatus()

Get the toolsVersionStatus property: Gets or sets the current version status of VMware Tools installed in the guest operating system.

String type()

Get the type property: The type of the resource.

String uuid()

Get the uuid property: Gets or sets a unique identifier for this resource.

void validate()

Validates the instance.

String vCenterId()

Get the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this template resides.

VirtualMachineTemplateInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Gets or sets the extended location.

VirtualMachineTemplateInner withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the virtual machine template.

VirtualMachineTemplateInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.

VirtualMachineTemplateInner withLocation(String location)
VirtualMachineTemplateInner withMoRefId(String moRefId)

Set the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template.

VirtualMachineTemplateInner withTags(Map<String,String> tags)
VirtualMachineTemplateInner withVCenterId(String vCenterId)

Set the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this template resides.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineTemplateInner

public VirtualMachineTemplateInner()

Creates an instance of VirtualMachineTemplateInner class.

Method Details

customResourceName

public String customResourceName()

Get the customResourceName property: Gets the name of the corresponding resource in Kubernetes.

Returns:

the customResourceName value.

disks

public List<VirtualDisk> disks()

Get the disks property: Gets or sets the disks the template.

Returns:

the disks value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: Gets or sets the extended location.

Returns:

the extendedLocation value.

firmwareType

public FirmwareType firmwareType()

Get the firmwareType property: Firmware type.

Returns:

the firmwareType value.

folderPath

public String folderPath()

Get the folderPath property: Gets or sets the folder path of the template.

Returns:

the folderPath value.

fromJson

public static VirtualMachineTemplateInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineTemplateInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineTemplateInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

VirtualMachineTemplateInner.id()

Returns:

the id value.

inventoryItemId

public String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the virtual machine template.

Returns:

the inventoryItemId value.

kind

public String kind()

Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Returns:

the kind value.

memorySizeMB

public Integer memorySizeMB()

Get the memorySizeMB property: Gets or sets memory size in MBs for the template.

Returns:

the memorySizeMB value.

moName

public String moName()

Get the moName property: Gets or sets the vCenter Managed Object name for the virtual machine template.

Returns:

the moName value.

moRefId

public String moRefId()

Get the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template.

Returns:

the moRefId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualMachineTemplateInner.name()

Returns:

the name value.

networkInterfaces

public List<NetworkInterface> networkInterfaces()

Get the networkInterfaces property: Gets or sets the network interfaces of the template.

Returns:

the networkInterfaces value.

numCoresPerSocket

public Integer numCoresPerSocket()

Get the numCoresPerSocket property: Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified.

Returns:

the numCoresPerSocket value.

numCPUs

public Integer numCPUs()

Get the numCPUs property: Gets or sets the number of vCPUs for the template.

Returns:

the numCPUs value.

osName

public String osName()

Get the osName property: Gets or sets os name.

Returns:

the osName value.

osType

public OsType osType()

Get the osType property: Gets or sets the type of the os.

Returns:

the osType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Gets the provisioning state.

Returns:

the provisioningState value.

statuses

public List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

systemData

public SystemData systemData()

Get the systemData property: The system data.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineTemplateInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

toolsVersion

public String toolsVersion()

Get the toolsVersion property: Gets or sets the current version of VMware Tools.

Returns:

the toolsVersion value.

toolsVersionStatus

public String toolsVersionStatus()

Get the toolsVersionStatus property: Gets or sets the current version status of VMware Tools installed in the guest operating system.

Returns:

the toolsVersionStatus value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualMachineTemplateInner.type()

Returns:

the type value.

uuid

public String uuid()

Get the uuid property: Gets or sets a unique identifier for this resource.

Returns:

the uuid value.

validate

public void validate()

Validates the instance.

vCenterId

public String vCenterId()

Get the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this template resides.

Returns:

the vCenterId value.

withExtendedLocation

public VirtualMachineTemplateInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Gets or sets the extended location.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the VirtualMachineTemplateInner object itself.

withInventoryItemId

public VirtualMachineTemplateInner withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the virtual machine template.

Parameters:

inventoryItemId - the inventoryItemId value to set.

Returns:

the VirtualMachineTemplateInner object itself.

withKind

public VirtualMachineTemplateInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Parameters:

kind - the kind value to set.

Returns:

the VirtualMachineTemplateInner object itself.

withLocation

public VirtualMachineTemplateInner withLocation(String location)

Overrides:

VirtualMachineTemplateInner.withLocation(String location)

Parameters:

location

withMoRefId

public VirtualMachineTemplateInner withMoRefId(String moRefId)

Set the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template.

Parameters:

moRefId - the moRefId value to set.

Returns:

the VirtualMachineTemplateInner object itself.

withTags

public VirtualMachineTemplateInner withTags(Map<String,String> tags)

Overrides:

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

Parameters:

tags

withVCenterId

public VirtualMachineTemplateInner withVCenterId(String vCenterId)

Set the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this template resides.

Parameters:

vCenterId - the vCenterId value to set.

Returns:

the VirtualMachineTemplateInner object itself.

Applies to