Class UpdateResource
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.UpdateResource
-
- Direct Known Subclasses:
AvailabilitySetUpdate,CapacityReservationGroupUpdate,CapacityReservationUpdate,DedicatedHostGroupUpdate,DedicatedHostUpdate,ImageUpdate,ProximityPlacementGroupUpdate,RestorePointCollectionUpdate,SshPublicKeyUpdateResource,VirtualMachineExtensionUpdate,VirtualMachineRunCommandUpdate,VirtualMachineScaleSetUpdate,VirtualMachineUpdateInner
public class UpdateResource extends Object
The Update Resource model definition.
-
-
Constructor Summary
Constructors Constructor Description UpdateResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>tags()Get the tags property: Resource tags.voidvalidate()Validates the instance.UpdateResourcewithTags(Map<String,String> tags)Set the tags property: Resource tags.
-
-
-
Method Detail
-
tags
public Map<String,String> tags()
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
public UpdateResource withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the UpdateResource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-