Class CheckNameAvailabilityRequest
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequest
-
public final class CheckNameAvailabilityRequest extends Object
CheckNameAvailabilityRequest CheckNameAvailability Request.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Resource name for which availability needs to be checked.String
type()
Get the type property: Describes the Resource type: Microsoft.DataProtection/BackupVaults.void
validate()
Validates the instance.CheckNameAvailabilityRequest
withName(String name)
Set the name property: Resource name for which availability needs to be checked.CheckNameAvailabilityRequest
withType(String type)
Set the type property: Describes the Resource type: Microsoft.DataProtection/BackupVaults.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Resource name for which availability needs to be checked.- Returns:
- the name value.
-
withName
public CheckNameAvailabilityRequest withName(String name)
Set the name property: Resource name for which availability needs to be checked.- Parameters:
name
- the name value to set.- Returns:
- the CheckNameAvailabilityRequest object itself.
-
type
public String type()
Get the type property: Describes the Resource type: Microsoft.DataProtection/BackupVaults.- Returns:
- the type value.
-
withType
public CheckNameAvailabilityRequest withType(String type)
Set the type property: Describes the Resource type: Microsoft.DataProtection/BackupVaults.- 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.
-
-