WebhookStatus Class

public final class WebhookStatus
extends ExpandableStringEnum<WebhookStatus>

Webhook status.

Field Summary

Modifier and Type Field and Description
static final WebhookStatus DISABLED

The webhook is disabled.

static final WebhookStatus ENABLED

The webhook is enabled.

Constructor Summary

Constructor Description
WebhookStatus()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WebhookStatus value.

Method Summary

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

Creates or finds a WebhookStatus from its string representation.

static Collection<WebhookStatus> values()

Gets known WebhookStatus values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final WebhookStatus DISABLED

The webhook is disabled.

ENABLED

public static final WebhookStatus ENABLED

The webhook is enabled.

Constructor Details

WebhookStatus

@Deprecated
public WebhookStatus()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WebhookStatus value.

Method Details

fromString

public static WebhookStatus fromString(String name)

Creates or finds a WebhookStatus from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding WebhookStatus.

values

public static Collection<WebhookStatus> values()

Gets known WebhookStatus values.

Returns:

known WebhookStatus values.

Applies to