CheckNameResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. synapse. fluent. models. CheckNameResultInner
- com.
public final class CheckNameResultInner
The result returned from a check name availability request.
Constructor Summary
Constructor | Description |
---|---|
CheckNameResultInner() |
Creates an instance of Check |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
message()
Get the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. |
String |
name()
Get the name property: The name that was checked. |
Boolean |
nameAvailable()
Get the name |
Reason |
reason()
Get the reason property: Message providing the reason why the given name is invalid. |
void |
validate()
Validates the instance. |
Check |
withMessage(String message)
Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. |
Check |
withName(String name)
Set the name property: The name that was checked. |
Check |
withNameAvailable(Boolean nameAvailable)
Set the name |
Check |
withReason(Reason reason)
Set the reason property: Message providing the reason why the given name is invalid. |
Methods inherited from java.lang.Object
Constructor Details
CheckNameResultInner
public CheckNameResultInner()
Creates an instance of CheckNameResultInner class.
Method Details
message
public String message()
Get the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
Returns:
name
public String name()
Get the name property: The name that was checked.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
Returns:
reason
public Reason reason()
Get the reason property: Message providing the reason why the given name is invalid.
Returns:
validate
public void validate()
Validates the instance.
withMessage
public CheckNameResultInner withMessage(String message)
Set the message property: Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
Parameters:
Returns:
withName
public CheckNameResultInner withName(String name)
Set the name property: The name that was checked.
Parameters:
Returns:
withNameAvailable
public CheckNameResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
Parameters:
Returns:
withReason
public CheckNameResultInner withReason(Reason reason)
Set the reason property: Message providing the reason why the given name is invalid.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for