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 Summary
ConstructorsConstructorDescriptionCreates an instance of DnlResourceNameAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.The default value is TenantReuse.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DnlResourceNameAvailabilityRequest from the JsonReader.name()Get the name property: Resource name to verify.Get the resourceGroupName property: Resource group name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type used for verification.voidvalidate()Validates the instance.withAutoGeneratedDomainNameLabelScope(String autoGeneratedDomainNameLabelScope) Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.The default value is TenantReuse.Set the name property: Resource name to verify.withResourceGroupName(String resourceGroupName) Set the resourceGroupName property: Resource group name.Set the type property: Resource type used for verification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DnlResourceNameAvailabilityRequest
public DnlResourceNameAvailabilityRequest()Creates an instance of DnlResourceNameAvailabilityRequest class.
-
-
Method Details
-
resourceGroupName
Get the resourceGroupName property: Resource group name.- Returns:
- the resourceGroupName value.
-
withResourceGroupName
Set the resourceGroupName property: Resource group name.- Parameters:
resourceGroupName- the resourceGroupName value to set.- Returns:
- the DnlResourceNameAvailabilityRequest object itself.
-
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
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
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
- Specified by:
toJsonin interfacecom.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.
-