Class NameAvailabilityParameters
- java.lang.Object
-
- com.azure.resourcemanager.communication.models.NameAvailabilityParameters
-
public final class NameAvailabilityParameters extends Object
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 String
name()
Get the name property: The CommunicationService name to validate.String
type()
Get the type property: The resource type.void
validate()
Validates the instance.NameAvailabilityParameters
withName(String name)
Set the name property: The CommunicationService name to validate.NameAvailabilityParameters
withType(String type)
Set the type property: The resource type.
-
-
-
Method Detail
-
type
public String type()
Get the type property: The resource type. Should be always "Microsoft.Communication/CommunicationServices".- Returns:
- the type value.
-
withType
public NameAvailabilityParameters withType(String type)
Set the type property: The resource type. Should be always "Microsoft.Communication/CommunicationServices".- Parameters:
type
- the type value to set.- Returns:
- the NameAvailabilityParameters object itself.
-
name
public String name()
Get the name property: The CommunicationService name to validate. e.g."my-CommunicationService-name-here".- Returns:
- the name value.
-
withName
public NameAvailabilityParameters withName(String name)
Set the name property: The CommunicationService name to validate. e.g."my-CommunicationService-name-here".- Parameters:
name
- the name value to set.- Returns:
- the NameAvailabilityParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-