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 Details

    • ResourceGroupPatchable

      public ResourceGroupPatchable()
      Creates an instance of ResourceGroupPatchable class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the resource group.
      Returns:
      the name value.
    • withName

      public ResourceGroupPatchable withName(String name)
      Set the name property: The name of the resource group.
      Parameters:
      name - the name value to set.
      Returns:
      the ResourceGroupPatchable object itself.
    • properties

      public ResourceGroupProperties properties()
      Get the properties property: The resource group properties.
      Returns:
      the properties value.
    • withProperties

      public ResourceGroupPatchable withProperties(ResourceGroupProperties properties)
      Set the properties property: The resource group properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the ResourceGroupPatchable object itself.
    • managedBy

      public String managedBy()
      Get the managedBy property: The ID of the resource that manages this resource group.
      Returns:
      the managedBy value.
    • withManagedBy

      public ResourceGroupPatchable withManagedBy(String managedBy)
      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

      public Map<String,String> tags()
      Get the tags property: The tags attached to the resource group.
      Returns:
      the tags value.
    • withTags

      public ResourceGroupPatchable withTags(Map<String,String> tags)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.