Class ResourceWithWritableName

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.models.ResourceWithWritableName
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Direct Known Subclasses:
ProxyResourceWithWritableName

public class ResourceWithWritableName extends com.azure.core.management.ProxyResource
ARM resource.
  • Constructor Details

    • ResourceWithWritableName

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

    • name

      public String name()
      Get the name property: Resource name.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • withName

      public ResourceWithWritableName withName(String name)
      Set the name property: Resource name.
      Parameters:
      name - the name value to set.
      Returns:
      the ResourceWithWritableName object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.