Class CheckNameRequest
java.lang.Object
com.azure.resourcemanager.digitaltwins.models.CheckNameRequest
The result returned from a database check name availability request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Resource name.type()
Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.void
validate()
Validates the instance.Set the name property: Resource name.Set the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.
-
Constructor Details
-
CheckNameRequest
public CheckNameRequest()Creates an instance of CheckNameRequest class.
-
-
Method Details
-
name
Get the name property: Resource name.- Returns:
- the name value.
-
withName
Set the name property: Resource name.- Parameters:
name
- the name value to set.- Returns:
- the CheckNameRequest object itself.
-
type
Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.- Returns:
- the type value.
-
withType
Set the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.- Parameters:
type
- the type value to set.- Returns:
- the CheckNameRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-