CheckNameAvailabilityRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.managementgroups.models.CheckNameAvailabilityRequest

Implements

public final class CheckNameAvailabilityRequest
implements JsonSerializable<CheckNameAvailabilityRequest>

Management group name availability check parameters.

Constructor Summary

Constructor Description
CheckNameAvailabilityRequest()

Creates an instance of CheckNameAvailabilityRequest class.

Method Summary

Modifier and Type Method and Description
static CheckNameAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityRequest from the JsonReader.

String name()

Get the name property: the name to check for availability.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: fully qualified resource type which includes provider namespace.

void validate()

Validates the instance.

CheckNameAvailabilityRequest withName(String name)

Set the name property: the name to check for availability.

CheckNameAvailabilityRequest withType(Type type)

Set the type property: fully qualified resource type which includes provider namespace.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityRequest

public CheckNameAvailabilityRequest()

Creates an instance of CheckNameAvailabilityRequest class.

Method Details

fromJson

public static CheckNameAvailabilityRequest fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameAvailabilityRequest 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 CheckNameAvailabilityRequest.

name

public String name()

Get the name property: the name to check for availability.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: fully qualified resource type which includes provider namespace.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameAvailabilityRequest withName(String name)

Set the name property: the name to check for availability.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityRequest object itself.

withType

public CheckNameAvailabilityRequest withType(Type type)

Set the type property: fully qualified resource type which includes provider namespace.

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailabilityRequest object itself.

Applies to