CheckNameAvailabilityParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.redis.models.CheckNameAvailabilityParameters

Implements

public final class CheckNameAvailabilityParameters
implements JsonSerializable<CheckNameAvailabilityParameters>

Parameters body to pass for resource name availability check.

Constructor Summary

Constructor Description
CheckNameAvailabilityParameters()

Creates an instance of CheckNameAvailabilityParameters class.

Method Summary

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

Reads an instance of CheckNameAvailabilityParameters from the JsonReader.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

CheckNameAvailabilityParameters withName(String name)

Set the name property: Resource name.

CheckNameAvailabilityParameters withType(String type)

Set the type property: Resource type.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityParameters

public CheckNameAvailabilityParameters()

Creates an instance of CheckNameAvailabilityParameters class.

Method Details

fromJson

public static CheckNameAvailabilityParameters fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailabilityParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameAvailabilityParameters 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: Resource name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameAvailabilityParameters withName(String name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityParameters object itself.

withType

public CheckNameAvailabilityParameters withType(String type)

Set the type property: Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'.

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailabilityParameters object itself.

Applies to

Azure SDK for Java

Latest