Class ResourceNameAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.appservice.models.ResourceNameAvailabilityRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceNameAvailabilityRequest>
public final class ResourceNameAvailabilityRequest
extends Object
implements com.azure.json.JsonSerializable<ResourceNameAvailabilityRequest>
Resource name availability request content.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceNameAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the environmentId property: Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceNameAvailabilityRequest from the JsonReader.isFqdn()Get the isFqdn property: Is fully qualified domain name.name()Get the name property: Resource name to verify.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type used for verification.voidvalidate()Validates the instance.withEnvironmentId(String environmentId) Set the environmentId property: Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app.withIsFqdn(Boolean isFqdn) Set the isFqdn property: Is fully qualified domain name.Set the name property: Resource name to verify.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
-
ResourceNameAvailabilityRequest
public ResourceNameAvailabilityRequest()Creates an instance of ResourceNameAvailabilityRequest class.
-
-
Method Details
-
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 ResourceNameAvailabilityRequest 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 ResourceNameAvailabilityRequest object itself.
-
isFqdn
Get the isFqdn property: Is fully qualified domain name.- Returns:
- the isFqdn value.
-
withIsFqdn
Set the isFqdn property: Is fully qualified domain name.- Parameters:
isFqdn- the isFqdn value to set.- Returns:
- the ResourceNameAvailabilityRequest object itself.
-
environmentId
Get the environmentId property: Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}.- Returns:
- the environmentId value.
-
withEnvironmentId
Set the environmentId property: Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}.- Parameters:
environmentId- the environmentId value to set.- Returns:
- the ResourceNameAvailabilityRequest 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<ResourceNameAvailabilityRequest>- Throws:
IOException
-
fromJson
public static ResourceNameAvailabilityRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResourceNameAvailabilityRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceNameAvailabilityRequest 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 ResourceNameAvailabilityRequest.
-