Class CheckNameAvailabilityResponseInner
- java.lang.Object
-
- com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner
-
public final class CheckNameAvailabilityResponseInner extends Object
Check name availability response A response saying whether the workspace name is available.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityResponseInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
available()
Get the available property: Whether the workspace name is available.String
message()
Get the message property: Validation message.String
name()
Get the name property: Workspace name.String
reason()
Get the reason property: Reason the workspace name is or is not available.void
validate()
Validates the instance.CheckNameAvailabilityResponseInner
withAvailable(Boolean available)
Set the available property: Whether the workspace name is available.CheckNameAvailabilityResponseInner
withMessage(String message)
Set the message property: Validation message.CheckNameAvailabilityResponseInner
withName(String name)
Set the name property: Workspace name.CheckNameAvailabilityResponseInner
withReason(String reason)
Set the reason property: Reason the workspace name is or is not available.
-
-
-
Method Detail
-
message
public String message()
Get the message property: Validation message.- Returns:
- the message value.
-
withMessage
public CheckNameAvailabilityResponseInner withMessage(String message)
Set the message property: Validation message.- Parameters:
message
- the message value to set.- Returns:
- the CheckNameAvailabilityResponseInner object itself.
-
available
public Boolean available()
Get the available property: Whether the workspace name is available.- Returns:
- the available value.
-
withAvailable
public CheckNameAvailabilityResponseInner withAvailable(Boolean available)
Set the available property: Whether the workspace name is available.- Parameters:
available
- the available value to set.- Returns:
- the CheckNameAvailabilityResponseInner object itself.
-
reason
public String reason()
Get the reason property: Reason the workspace name is or is not available.- Returns:
- the reason value.
-
withReason
public CheckNameAvailabilityResponseInner withReason(String reason)
Set the reason property: Reason the workspace name is or is not available.- Parameters:
reason
- the reason value to set.- Returns:
- the CheckNameAvailabilityResponseInner object itself.
-
name
public String name()
Get the name property: Workspace name.- Returns:
- the name value.
-
withName
public CheckNameAvailabilityResponseInner withName(String name)
Set the name property: Workspace name.- Parameters:
name
- the name value to set.- Returns:
- the CheckNameAvailabilityResponseInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-