NameAvailabilityParameters Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. NameAvailabilityParameters
- com.
Implements
public final class NameAvailabilityParameters
implements JsonSerializable<NameAvailabilityParameters>
Data POST-ed to the nameAvailability action.
Constructor Summary
| Constructor | Description |
|---|---|
| NameAvailabilityParameters() |
Creates an instance of Name |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Name |
fromJson(JsonReader jsonReader)
Reads an instance of Name |
| String |
name()
Get the name property: The resource name to validate. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The resource type. |
| void |
validate()
Validates the instance. |
|
Name |
withName(String name)
Set the name property: The resource name to validate. |
|
Name |
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:
Returns:
Throws:
name
public String name()
Get the name property: The resource name to validate. e.g."my-resource-name".
Returns:
toJson
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:
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:
Returns:
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:
Returns: