Class CheckNameAvailabilityParameters
- java.lang.Object
-
- com.azure.resourcemanager.redis.models.CheckNameAvailabilityParameters
-
public final class CheckNameAvailabilityParameters extends Object
Parameters body to pass for resource name availability check.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Resource name.Stringtype()Get the type property: Resource type.voidvalidate()Validates the instance.CheckNameAvailabilityParameterswithName(String name)Set the name property: Resource name.CheckNameAvailabilityParameterswithType(String type)Set the type property: Resource type.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Resource name.- Returns:
- the name value.
-
withName
public CheckNameAvailabilityParameters withName(String name)
Set the name property: Resource name.- Parameters:
name- the name value to set.- Returns:
- the CheckNameAvailabilityParameters object itself.
-
type
public String type()
Get the type property: Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'.- Returns:
- the type value.
-
withType
public CheckNameAvailabilityParameters withType(String type)
Set the type property: Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'.- Parameters:
type- the type value to set.- Returns:
- the CheckNameAvailabilityParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-