Class CheckNameAvailabilityParameters

java.lang.Object
com.azure.resourcemanager.recoveryservices.models.CheckNameAvailabilityParameters

public final class CheckNameAvailabilityParameters extends Object
Resource Name availability input parameters - Resource type and resource name.
  • Constructor Details

    • CheckNameAvailabilityParameters

      public CheckNameAvailabilityParameters()
  • Method Details

    • type

      public String type()
      Get the type property: Describes the Resource type: Microsoft.RecoveryServices/Vaults.
      Returns:
      the type value.
    • withType

      public CheckNameAvailabilityParameters withType(String type)
      Set the type property: Describes the Resource type: Microsoft.RecoveryServices/Vaults.
      Parameters:
      type - the type value to set.
      Returns:
      the CheckNameAvailabilityParameters object itself.
    • name

      public String name()
      Get the name property: Resource name for which availability needs to be checked.
      Returns:
      the name value.
    • withName

      public CheckNameAvailabilityParameters withName(String name)
      Set the name property: Resource name for which availability needs to be checked.
      Parameters:
      name - the name value to set.
      Returns:
      the CheckNameAvailabilityParameters object itself.
    • validate

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