NameAvailabilityParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.NameAvailabilityParameters

Implements

public final class NameAvailabilityParameters
implements JsonSerializable<NameAvailabilityParameters>

Data POST-ed to the nameAvailability action.

Constructor Summary

Constructor Description
NameAvailabilityParameters()

Creates an instance of NameAvailabilityParameters class.

Method Summary

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

Reads an instance of NameAvailabilityParameters from the JsonReader.

String name()

Get the name property: The resource name to validate.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type.

void validate()

Validates the instance.

NameAvailabilityParameters withName(String name)

Set the name property: The resource name to validate.

NameAvailabilityParameters withType(String type)

Set the type property: The resource type.

Methods inherited from java.lang.Object

Constructor Details

NameAvailabilityParameters

public NameAvailabilityParameters()

Creates an instance of NameAvailabilityParameters class.

Method Details

fromJson

public static NameAvailabilityParameters fromJson(JsonReader jsonReader)

Reads an instance of NameAvailabilityParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NameAvailabilityParameters 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. e.g."my-resource-name".

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type. Can be "Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or "Microsoft.SignalRService/WebPubSub/replicas".

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public NameAvailabilityParameters withName(String name)

Set the name property: The resource name to validate. e.g."my-resource-name".

Parameters:

name - the name value to set.

Returns:

the NameAvailabilityParameters object itself.

withType

public NameAvailabilityParameters withType(String type)

Set the type property: The resource type. Can be "Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or "Microsoft.SignalRService/WebPubSub/replicas".

Parameters:

type - the type value to set.

Returns:

the NameAvailabilityParameters object itself.

Applies to