Class NameAvailabilityParameters
- java.lang.Object
-
- com.azure.resourcemanager.communication.models.CheckNameAvailabilityRequest
-
- com.azure.resourcemanager.communication.models.NameAvailabilityParameters
-
public final class NameAvailabilityParameters extends CheckNameAvailabilityRequest
Data POST-ed to the nameAvailability action.
-
-
Constructor Summary
Constructors Constructor Description NameAvailabilityParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.NameAvailabilityParameters
withName(String name)
Set the name property: The name of the resource for which availability needs to be checked.NameAvailabilityParameters
withType(String type)
Set the type property: The resource type.-
Methods inherited from class com.azure.resourcemanager.communication.models.CheckNameAvailabilityRequest
name, type
-
-
-
-
Method Detail
-
withName
public NameAvailabilityParameters withName(String name)
Set the name property: The name of the resource for which availability needs to be checked.- Overrides:
withName
in classCheckNameAvailabilityRequest
- Parameters:
name
- the name value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
withType
public NameAvailabilityParameters withType(String type)
Set the type property: The resource type.- Overrides:
withType
in classCheckNameAvailabilityRequest
- Parameters:
type
- the type value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classCheckNameAvailabilityRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-