Class ResourceGroupPatchable
java.lang.Object
com.azure.resourcemanager.resources.models.ResourceGroupPatchable
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceGroupPatchable>
public final class ResourceGroupPatchable
extends Object
implements com.azure.json.JsonSerializable<ResourceGroupPatchable>
Resource group information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceGroupPatchable class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceGroupPatchablefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceGroupPatchable from the JsonReader.Get the managedBy property: The ID of the resource that manages this resource group.name()Get the name property: The name of the resource group.Get the properties property: The resource group properties.tags()Get the tags property: The tags attached to the resource group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withManagedBy(String managedBy) Set the managedBy property: The ID of the resource that manages this resource group.Set the name property: The name of the resource group.withProperties(ResourceGroupProperties properties) Set the properties property: The resource group properties.Set the tags property: The tags attached to the resource group.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResourceGroupPatchable
public ResourceGroupPatchable()Creates an instance of ResourceGroupPatchable class.
-
-
Method Details
-
name
Get the name property: The name of the resource group.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource group.- Parameters:
name- the name value to set.- Returns:
- the ResourceGroupPatchable object itself.
-
properties
Get the properties property: The resource group properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: The resource group properties.- Parameters:
properties- the properties value to set.- Returns:
- the ResourceGroupPatchable object itself.
-
managedBy
Get the managedBy property: The ID of the resource that manages this resource group.- Returns:
- the managedBy value.
-
withManagedBy
Set the managedBy property: The ID of the resource that manages this resource group.- Parameters:
managedBy- the managedBy value to set.- Returns:
- the ResourceGroupPatchable object itself.
-
tags
Get the tags property: The tags attached to the resource group.- Returns:
- the tags value.
-
withTags
Set the tags property: The tags attached to the resource group.- Parameters:
tags- the tags value to set.- Returns:
- the ResourceGroupPatchable object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceGroupPatchable>- Throws:
IOException
-
fromJson
public static ResourceGroupPatchable fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResourceGroupPatchable from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceGroupPatchable if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResourceGroupPatchable.
-