BatchNameAvailabilityResult Class

Definition

The CheckNameAvailability operation response.

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

Properties

IsNameAvailable

Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.

Message

Gets an error message explaining the Reason value in more detail.

Reason

Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false.

Explicit Interface Implementations

IJsonModel<BatchNameAvailabilityResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchNameAvailabilityResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchNameAvailabilityResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchNameAvailabilityResult>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchNameAvailabilityResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to