Class CheckNameRequest

java.lang.Object
com.azure.resourcemanager.digitaltwins.models.CheckNameRequest

public final class CheckNameRequest extends Object
The result returned from a database check name availability request.
  • Constructor Details

    • CheckNameRequest

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

    • name

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

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

      public String type()
      Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.
      Returns:
      the type value.
    • withType

      public CheckNameRequest withType(String type)
      Set the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.
      Parameters:
      type - the type value to set.
      Returns:
      the CheckNameRequest object itself.
    • validate

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