DomainAvailabilityCheckResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.DomainAvailabilityCheckResultInner

Implements

public final class DomainAvailabilityCheckResultInner
implements JsonSerializable<DomainAvailabilityCheckResultInner>

Domain availability check result.

Constructor Summary

Constructor Description
DomainAvailabilityCheckResultInner()

Creates an instance of DomainAvailabilityCheckResultInner class.

Method Summary

Modifier and Type Method and Description
Boolean available()

Get the available property: true if domain can be purchased using CreateDomain API; otherwise, false.

DomainType 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.

static DomainAvailabilityCheckResultInner fromJson(JsonReader jsonReader)

Reads an instance of DomainAvailabilityCheckResultInner from the JsonReader.

String name()

Get the name property: Name of the domain.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DomainAvailabilityCheckResultInner withAvailable(Boolean available)

Set the available property: true if domain can be purchased using CreateDomain API; otherwise, false.

DomainAvailabilityCheckResultInner 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.

DomainAvailabilityCheckResultInner withName(String name)

Set the name property: Name of the domain.

Methods inherited from java.lang.Object

Constructor Details

DomainAvailabilityCheckResultInner

public DomainAvailabilityCheckResultInner()

Creates an instance of DomainAvailabilityCheckResultInner class.

Method Details

available

public Boolean available()

Get the available property: true if domain can be purchased using CreateDomain API; otherwise, false.

Returns:

the available value.

domainType

public DomainType 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.

fromJson

public static DomainAvailabilityCheckResultInner fromJson(JsonReader jsonReader)

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.

name

public String name()

Get the name property: Name of the domain.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvailable

public DomainAvailabilityCheckResultInner withAvailable(Boolean available)

Set the available property: true if domain can be purchased using CreateDomain API; otherwise, false.

Parameters:

available - the available value to set.

Returns:

the DomainAvailabilityCheckResultInner object itself.

withDomainType

public DomainAvailabilityCheckResultInner 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.

Parameters:

domainType - the domainType value to set.

Returns:

the DomainAvailabilityCheckResultInner object itself.

withName

public DomainAvailabilityCheckResultInner withName(String name)

Set the name property: Name of the domain.

Parameters:

name - the name value to set.

Returns:

the DomainAvailabilityCheckResultInner object itself.

Applies to