Share via


NameAvailabilityResponse Class

Definition

Indicates whether a proposed resource name is available.

public class NameAvailabilityResponse : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>
type NameAvailabilityResponse = class
    interface IJsonModel<NameAvailabilityResponse>
    interface IPersistableModel<NameAvailabilityResponse>
Public Class NameAvailabilityResponse
Implements IJsonModel(Of NameAvailabilityResponse), IPersistableModel(Of NameAvailabilityResponse)
Inheritance
NameAvailabilityResponse
Implements

Properties

Message

The localized reason why the name is not available, if nameAvailable is false.

NameAvailable

If true, the name is valid and available. If false, 'reason' describes why not.

Reason

The reason why the name is not available, if nameAvailable is false.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<NameAvailabilityResponse>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<NameAvailabilityResponse>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NameAvailabilityResponse>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NameAvailabilityResponse>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<NameAvailabilityResponse>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to