AnnotateDefaultBranchState Class

public final class AnnotateDefaultBranchState
extends ExpandableStringEnum<AnnotateDefaultBranchState>

Configuration of PR Annotations on default branch. Enabled - PR Annotations are enabled on the resource's default branch. Disabled - PR Annotations are disabled on the resource's default branch.

Field Summary

Modifier and Type Field and Description
static final AnnotateDefaultBranchState DISABLED

Static value Disabled for AnnotateDefaultBranchState.

static final AnnotateDefaultBranchState ENABLED

Static value Enabled for AnnotateDefaultBranchState.

Constructor Summary

Constructor Description
AnnotateDefaultBranchState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AnnotateDefaultBranchState value.

Method Summary

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

Creates or finds a AnnotateDefaultBranchState from its string representation.

static Collection<AnnotateDefaultBranchState> values()

Gets known AnnotateDefaultBranchState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final AnnotateDefaultBranchState DISABLED

Static value Disabled for AnnotateDefaultBranchState.

ENABLED

public static final AnnotateDefaultBranchState ENABLED

Static value Enabled for AnnotateDefaultBranchState.

Constructor Details

AnnotateDefaultBranchState

@Deprecated
public AnnotateDefaultBranchState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AnnotateDefaultBranchState value.

Method Details

fromString

public static AnnotateDefaultBranchState fromString(String name)

Creates or finds a AnnotateDefaultBranchState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AnnotateDefaultBranchState.

values

public static Collection values()

Gets known AnnotateDefaultBranchState values.

Returns:

known AnnotateDefaultBranchState values.

Applies to