NameAvailabilityInner Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.fluent.models.NameAvailabilityInner

public final class NameAvailabilityInner

Represents a resource name availability.

Constructor Summary

Constructor Description
NameAvailabilityInner()

Method Summary

Modifier and Type Method and Description
String message()

Get the message property: Error Message.

Boolean nameAvailable()

Get the nameAvailable property: Indicates whether the resource name is available.

String reason()

Get the reason property: Reason for name being unavailable.

void validate()

Validates the instance.

NameAvailabilityInner withMessage(String message)

Set the message property: Error Message.

NameAvailabilityInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates whether the resource name is available.

NameAvailabilityInner withReason(String reason)

Set the reason property: Reason for name being unavailable.

Methods inherited from java.lang.Object

Constructor Details

NameAvailabilityInner

public NameAvailabilityInner()

Method Details

message

public String message()

Get the message property: Error Message.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Indicates whether the resource name is available.

Returns:

the nameAvailable value.

reason

public String reason()

Get the reason property: Reason for name being unavailable.

Returns:

the reason value.

validate

public void validate()

Validates the instance.

withMessage

public NameAvailabilityInner withMessage(String message)

Set the message property: Error Message.

Parameters:

message - the message value to set.

Returns:

the NameAvailabilityInner object itself.

withNameAvailable

public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates whether the resource name is available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the NameAvailabilityInner object itself.

withReason

public NameAvailabilityInner withReason(String reason)

Set the reason property: Reason for name being unavailable.

Parameters:

reason - the reason value to set.

Returns:

the NameAvailabilityInner object itself.

Applies to