Class VirtualMachineImageResourceInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageResourceInner
-
- Direct Known Subclasses:
VirtualMachineImageInner
public class VirtualMachineImageResourceInner extends com.azure.core.management.SubResourceVirtual machine image resource information.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineImageResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedLocationextendedLocation()Get the extendedLocation property: The extended location of the Virtual Machine.Stringlocation()Get the location property: The supported Azure location of the resource.Stringname()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.voidvalidate()Validates the instance.VirtualMachineImageResourceInnerwithExtendedLocation(ExtendedLocation extendedLocation)Set the extendedLocation property: The extended location of the Virtual Machine.VirtualMachineImageResourceInnerwithId(String id)VirtualMachineImageResourceInnerwithLocation(String location)Set the location property: The supported Azure location of the resource.VirtualMachineImageResourceInnerwithName(String name)Set the name property: The name of the resource.VirtualMachineImageResourceInnerwithTags(Map<String,String> tags)Set the tags property: Specifies the tags that are assigned to the virtual machine.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the resource.- Returns:
- the name value.
-
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.
-
location
public String location()
Get the location property: The supported Azure location of the resource.- Returns:
- the location value.
-
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.
-
tags
public Map<String,String> 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.
-
withTags
public VirtualMachineImageResourceInner withTags(Map<String,String> 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.
-
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the Virtual Machine.- Returns:
- the extendedLocation value.
-
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:
withIdin classcom.azure.core.management.SubResource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-