Class ToggleFeatureForProjectOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv3.spec.ToggleFeatureForProjectOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class ToggleFeatureForProjectOperationSpec
extends Object
ToggleFeatureForProjectSpec
Specification for the ToggleFeatureForProject operation.
Set project feature state
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Boolean
allows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ToggleFeatureForProjectOperationSpec
(String projectIdOrKey, String featureKey, ProjectFeatureState projectFeatureState) Constructs a validated instance ofToggleFeatureForProjectOperationSpec
.Constructs a validated instance ofToggleFeatureForProjectOperationSpec
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
@NotNull String
The key of the feature.featureKey
(@NotNull String featureKey) The key of the feature.int
hashCode()
@NotNull ProjectFeatureState
Details of the feature state change.projectFeatureState
(@NotNull ProjectFeatureState projectFeatureState) Details of the feature state change.@NotNull String
The ID or (case-sensitive) key of the project.projectIdOrKey
(@NotNull String projectIdOrKey) The ID or (case-sensitive) key of the project.toString()
void
validate()
Validates the Spec, will throw a exception if required parameters are missing
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
ToggleFeatureForProjectOperationSpec
@Internal public ToggleFeatureForProjectOperationSpec(Consumer<ToggleFeatureForProjectOperationSpec> spec) Constructs a validated instance ofToggleFeatureForProjectOperationSpec
.- Parameters:
spec
- the specification to process
-
ToggleFeatureForProjectOperationSpec
@Internal public ToggleFeatureForProjectOperationSpec(String projectIdOrKey, String featureKey, ProjectFeatureState projectFeatureState) Constructs a validated instance ofToggleFeatureForProjectOperationSpec
.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
projectIdOrKey
- The ID or (case-sensitive) key of the project.featureKey
- The key of the feature.projectFeatureState
- Details of the feature state change.
-
ToggleFeatureForProjectOperationSpec
protected ToggleFeatureForProjectOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
public static ToggleFeatureForProjectOperationSpec.ToggleFeatureForProjectOperationSpecBuilder builder() -
projectIdOrKey
The ID or (case-sensitive) key of the project. -
featureKey
The key of the feature. -
projectFeatureState
Details of the feature state change. -
projectIdOrKey
The ID or (case-sensitive) key of the project.- Returns:
this
.
-
featureKey
The key of the feature.- Returns:
this
.
-
projectFeatureState
public ToggleFeatureForProjectOperationSpec projectFeatureState(@NotNull @NotNull ProjectFeatureState projectFeatureState) Details of the feature state change.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-