UnavailableNameReason Class

public final class UnavailableNameReason
extends ExpandableStringEnum<UnavailableNameReason>

The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable.

Field Summary

Modifier and Type Field and Description
static final UnavailableNameReason ALREADY_EXISTS

The search service name is already assigned to a different search service.

static final UnavailableNameReason INVALID

The search service name doesn't match naming requirements.

Constructor Summary

Constructor Description
UnavailableNameReason()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UnavailableNameReason value.

Method Summary

Modifier and Type Method and Description
static UnavailableNameReason fromString(String name)

Creates or finds a UnavailableNameReason from its string representation.

static Collection<UnavailableNameReason> values()

Gets known UnavailableNameReason values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALREADY_EXISTS

public static final UnavailableNameReason ALREADY_EXISTS

The search service name is already assigned to a different search service.

INVALID

public static final UnavailableNameReason INVALID

The search service name doesn't match naming requirements.

Constructor Details

UnavailableNameReason

@Deprecated
public UnavailableNameReason()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UnavailableNameReason value.

Method Details

fromString

public static UnavailableNameReason fromString(String name)

Creates or finds a UnavailableNameReason from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding UnavailableNameReason.

values

public static Collection<UnavailableNameReason> values()

Gets known UnavailableNameReason values.

Returns:

known UnavailableNameReason values.

Applies to