Class CheckNameRequest
- java.lang.Object
-
- com.azure.resourcemanager.digitaltwins.models.CheckNameRequest
-
public final class CheckNameRequest extends Object
The result returned from a database check name availability request.
-
-
Constructor Summary
Constructors Constructor Description CheckNameRequest()
Creates an instance of CheckNameRequest class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Resource name.String
type()
Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.void
validate()
Validates the instance.CheckNameRequest
withName(String name)
Set the name property: Resource name.CheckNameRequest
withType(String type)
Set the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Resource name.- Returns:
- the name value.
-
withName
public CheckNameRequest withName(String name)
Set the name property: Resource name.- Parameters:
name
- the name value to set.- Returns:
- the CheckNameRequest object itself.
-
type
public String type()
Get the type property: The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances.- Returns:
- the type value.
-
withType
public CheckNameRequest withType(String type)
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.
-
-