CheckNameResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner

public final class CheckNameResultInner

The result returned from a check name availability request.

Constructor Summary

Constructor Description
CheckNameResultInner()

Creates an instance of CheckNameResultInner class.

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 nameAvailable property: Specifies a Boolean value that indicates if the name is available.

Reason reason()

Get the reason property: Message providing the reason why the given name is invalid.

void validate()

Validates the instance.

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.

CheckNameResultInner withName(String name)

Set the name property: The name that was checked.

CheckNameResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

CheckNameResultInner 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:

the message value.

name

public String name()

Get the name property: The name that was checked.

Returns:

the name value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

Returns:

the nameAvailable value.

reason

public Reason reason()

Get the reason property: Message providing the reason why the given name is invalid.

Returns:

the reason value.

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:

message - the message value to set.

Returns:

the CheckNameResultInner object itself.

withName

public CheckNameResultInner withName(String name)

Set the name property: The name that was checked.

Parameters:

name - the name value to set.

Returns:

the CheckNameResultInner object itself.

withNameAvailable

public CheckNameResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the CheckNameResultInner object itself.

withReason

public CheckNameResultInner withReason(Reason reason)

Set the reason property: Message providing the reason why the given name is invalid.

Parameters:

reason - the reason value to set.

Returns:

the CheckNameResultInner object itself.

Applies to