VirtualMachineImageResourceInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. compute. fluent. models. VirtualMachineImageResourceInner
- com.
- com.
public class VirtualMachineImageResourceInner
extends SubResource
Virtual machine image resource information.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineImageResourceInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Extended |
extendedLocation()
Get the extended |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
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. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
Virtual |
withId(String id) |
Virtual |
withLocation(String location)
Set the location property: The supported Azure location of the resource. |
Virtual |
withName(String name)
Set the name property: The name of the resource. |
Virtual |
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:
fromJson
public static VirtualMachineImageResourceInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineImageResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
location
public String location()
Get the location property: The supported Azure location of the resource.
Returns:
name
public String name()
Get the name property: The name of the resource.
Returns:
tags
public Map
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualMachineImageResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
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:
Returns:
withId
public VirtualMachineImageResourceInner withId(String id)
Overrides:
VirtualMachineImageResourceInner.withId(String id)Parameters:
withLocation
public VirtualMachineImageResourceInner withLocation(String location)
Set the location property: The supported Azure location of the resource.
Parameters:
Returns:
withName
public VirtualMachineImageResourceInner withName(String name)
Set the name property: The name of the resource.
Parameters:
Returns:
withTags
public VirtualMachineImageResourceInner withTags(Map
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:
Returns:
Applies to
Azure SDK for Java