Class NameAvailabilityRequest

java.lang.Object
com.azure.resourcemanager.mariadb.models.NameAvailabilityRequest

public final class NameAvailabilityRequest extends Object
Request from client to check resource name availability.
  • Constructor Details

    • NameAvailabilityRequest

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

    • name

      public String name()
      Get the name property: Resource name to verify.
      Returns:
      the name value.
    • withName

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

      public String type()
      Get the type property: Resource type used for verification.
      Returns:
      the type value.
    • withType

      public NameAvailabilityRequest withType(String type)
      Set the type property: Resource type used for verification.
      Parameters:
      type - the type value to set.
      Returns:
      the NameAvailabilityRequest object itself.
    • validate

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