Class NameAvailabilityRequest

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

public final class NameAvailabilityRequest extends Object
A resource type and proposed name.
  • Constructor Details

    • NameAvailabilityRequest

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

    • name

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

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

      public String type()
      Get the type property: The resource type chain (e.g. virtualMachines/extensions).
      Returns:
      the type value.
    • withType

      public NameAvailabilityRequest withType(String type)
      Set the type property: The resource type chain (e.g. virtualMachines/extensions).
      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.