VirtualMachineImageResourceInner Class

public class VirtualMachineImageResourceInner
extends SubResource

Virtual machine image resource information.

Constructor Summary

Constructor Description
VirtualMachineImageResourceInner()

Creates an instance of VirtualMachineImageResourceInner class.

Method Summary

Modifier and Type Method and Description
ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine.

String location()

Get the location property: The supported Azure location of the resource.

String name()

Get the name property: The name of the resource.

Map<String,String> tags()

Get the tags property: Specifies the tags that are assigned to the virtual machine.

void validate()

Validates the instance.

VirtualMachineImageResourceInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the Virtual Machine.

VirtualMachineImageResourceInner withId(String id)
VirtualMachineImageResourceInner withLocation(String location)

Set the location property: The supported Azure location of the resource.

VirtualMachineImageResourceInner withName(String name)

Set the name property: The name of the resource.

VirtualMachineImageResourceInner withTags(Map<String,String> tags)

Set the tags property: Specifies the tags that are assigned to the virtual machine.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineImageResourceInner

public VirtualMachineImageResourceInner()

Creates an instance of VirtualMachineImageResourceInner class.

Method Details

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine.

Returns:

the extendedLocation value.

location

public String location()

Get the location property: The supported Azure location of the resource.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Returns:

the name value.

tags

public Map tags()

Get the tags property: Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).

Returns:

the tags value.

validate

public void validate()

Validates the instance.

withExtendedLocation

public VirtualMachineImageResourceInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the Virtual Machine.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the VirtualMachineImageResourceInner object itself.

withId

public VirtualMachineImageResourceInner withId(String id)

Overrides:

VirtualMachineImageResourceInner.withId(String id)

Parameters:

id

withLocation

public VirtualMachineImageResourceInner withLocation(String location)

Set the location property: The supported Azure location of the resource.

Parameters:

location - the location value to set.

Returns:

the VirtualMachineImageResourceInner object itself.

withName

public VirtualMachineImageResourceInner withName(String name)

Set the name property: The name of the resource.

Parameters:

name - the name value to set.

Returns:

the VirtualMachineImageResourceInner object itself.

withTags

public VirtualMachineImageResourceInner withTags(Map tags)

Set the tags property: Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).

Parameters:

tags - the tags value to set.

Returns:

the VirtualMachineImageResourceInner object itself.

Applies to