Class DnlResourceNameAvailabilityRequest

java.lang.Object
com.azure.resourcemanager.appservice.models.DnlResourceNameAvailabilityRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<DnlResourceNameAvailabilityRequest>

public final class DnlResourceNameAvailabilityRequest extends Object implements com.azure.json.JsonSerializable<DnlResourceNameAvailabilityRequest>
The DnlResourceNameAvailabilityRequest model.
  • Constructor Details

    • DnlResourceNameAvailabilityRequest

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

    • resourceGroupName

      public String resourceGroupName()
      Get the resourceGroupName property: Resource group name.
      Returns:
      the resourceGroupName value.
    • withResourceGroupName

      public DnlResourceNameAvailabilityRequest withResourceGroupName(String resourceGroupName)
      Set the resourceGroupName property: Resource group name.
      Parameters:
      resourceGroupName - the resourceGroupName value to set.
      Returns:
      the DnlResourceNameAvailabilityRequest object itself.
    • autoGeneratedDomainNameLabelScope

      public String autoGeneratedDomainNameLabelScope()
      Get the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.The default value is TenantReuse. Supported values are TenantReuse, SubscriptionReuse, ResourceGroupReuse, NoReuse.
      Returns:
      the autoGeneratedDomainNameLabelScope value.
    • withAutoGeneratedDomainNameLabelScope

      public DnlResourceNameAvailabilityRequest withAutoGeneratedDomainNameLabelScope(String autoGeneratedDomainNameLabelScope)
      Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.The default value is TenantReuse. Supported values are TenantReuse, SubscriptionReuse, ResourceGroupReuse, NoReuse.
      Parameters:
      autoGeneratedDomainNameLabelScope - the autoGeneratedDomainNameLabelScope value to set.
      Returns:
      the DnlResourceNameAvailabilityRequest object itself.
    • name

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

      Set the name property: Resource name to verify.
      Parameters:
      name - the name value to set.
      Returns:
      the DnlResourceNameAvailabilityRequest object itself.
    • type

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

      Set the type property: Resource type used for verification.
      Parameters:
      type - the type value to set.
      Returns:
      the DnlResourceNameAvailabilityRequest object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DnlResourceNameAvailabilityRequest>
      Throws:
      IOException
    • fromJson

      public static DnlResourceNameAvailabilityRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DnlResourceNameAvailabilityRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DnlResourceNameAvailabilityRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DnlResourceNameAvailabilityRequest.