Class NameAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.datamigration.models.NameAvailabilityRequest
A resource type and proposed name.
-
Constructor Summary
ConstructorDescriptionCreates an instance of NameAvailabilityRequest class. -
Method Summary
-
Constructor Details
-
NameAvailabilityRequest
public NameAvailabilityRequest()Creates an instance of NameAvailabilityRequest class.
-
-
Method Details
-
name
Get the name property: The proposed resource name.- Returns:
- the name value.
-
withName
Set the name property: The proposed resource name.- Parameters:
name
- the name value to set.- Returns:
- the NameAvailabilityRequest object itself.
-
type
Get the type property: The resource type chain (e.g. virtualMachines/extensions).- Returns:
- the type value.
-
withType
Set the type property: The resource type chain (e.g. virtualMachines/extensions).- Parameters:
type
- the type value to set.- Returns:
- the NameAvailabilityRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-