CheckNameAvailabilityInput Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.CheckNameAvailabilityInput

Implements

public final class CheckNameAvailabilityInput
implements JsonSerializable<CheckNameAvailabilityInput>

Input of CheckNameAvailability API.

Constructor Summary

Constructor Description
CheckNameAvailabilityInput()

Creates an instance of CheckNameAvailabilityInput class.

Method Summary

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

Reads an instance of CheckNameAvailabilityInput from the JsonReader.

String name()

Get the name property: The resource name to validate.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceType type()

Get the type property: The type of the resource whose name is to be validated.

void validate()

Validates the instance.

CheckNameAvailabilityInput withName(String name)

Set the name property: The resource name to validate.

CheckNameAvailabilityInput withType(ResourceType type)

Set the type property: The type of the resource whose name is to be validated.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityInput

public CheckNameAvailabilityInput()

Creates an instance of CheckNameAvailabilityInput class.

Method Details

fromJson

public static CheckNameAvailabilityInput fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameAvailabilityInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The resource name to validate.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceType type()

Get the type property: The type of the resource whose name is to be validated.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameAvailabilityInput withName(String name)

Set the name property: The resource name to validate.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityInput object itself.

withType

public CheckNameAvailabilityInput withType(ResourceType type)

Set the type property: The type of the resource whose name is to be validated.

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailabilityInput object itself.

Applies to