Class CheckNameAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.devcenter.models.CheckNameAvailabilityRequest
The check availability request body.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CheckNameAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: The name of the resource for which availability needs to be checked.type()
Get the type property: The resource type.void
validate()
Validates the instance.Set the name property: The name of the resource for which availability needs to be checked.Set the type property: The resource type.
-
Constructor Details
-
CheckNameAvailabilityRequest
public CheckNameAvailabilityRequest()Creates an instance of CheckNameAvailabilityRequest class.
-
-
Method Details
-
name
Get the name property: The name of the resource for which availability needs to be checked.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource for which availability needs to be checked.- Parameters:
name
- the name value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
type
Get the type property: The resource type.- Returns:
- the type value.
-
withType
Set the type property: The resource type.- Parameters:
type
- the type value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-