Class DomainAvailabilityCheckResultInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.DomainAvailabilityCheckResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DomainAvailabilityCheckResultInner>
public final class DomainAvailabilityCheckResultInner
extends Object
implements com.azure.json.JsonSerializable<DomainAvailabilityCheckResultInner>
Domain availability check result.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DomainAvailabilityCheckResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the available property: <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>.Get the domainType property: Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DomainAvailabilityCheckResultInner from the JsonReader.name()
Get the name property: Name of the domain.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAvailable
(Boolean available) Set the available property: <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>.withDomainType
(DomainType domainType) Set the domainType property: Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything.Set the name property: Name of the domain.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DomainAvailabilityCheckResultInner
public DomainAvailabilityCheckResultInner()Creates an instance of DomainAvailabilityCheckResultInner class.
-
-
Method Details
-
name
Get the name property: Name of the domain.- Returns:
- the name value.
-
withName
Set the name property: Name of the domain.- Parameters:
name
- the name value to set.- Returns:
- the DomainAvailabilityCheckResultInner object itself.
-
available
Get the available property: <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>.- Returns:
- the available value.
-
withAvailable
Set the available property: <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>.- Parameters:
available
- the available value to set.- Returns:
- the DomainAvailabilityCheckResultInner object itself.
-
domainType
Get the domainType property: Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything.- Returns:
- the domainType value.
-
withDomainType
Set the domainType property: Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost anything.- Parameters:
domainType
- the domainType value to set.- Returns:
- the DomainAvailabilityCheckResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DomainAvailabilityCheckResultInner>
- Throws:
IOException
-
fromJson
public static DomainAvailabilityCheckResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DomainAvailabilityCheckResultInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DomainAvailabilityCheckResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the DomainAvailabilityCheckResultInner.
-