Class SetPreferenceOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv3.spec.SetPreferenceOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class SetPreferenceOperationSpec
extends Object
SetPreferenceSpec
Specification for the SetPreference operation.
Set preference
-
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
SetPreferenceOperationSpec
(String key, String body) Constructs a validated instance ofSetPreferenceOperationSpec
.Constructs a validated instance ofSetPreferenceOperationSpec
. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
body()
The value of the preference as a plain text string.The value of the preference as a plain text string.builder()
protected boolean
boolean
int
hashCode()
@NotNull String
key()
The key of the preference.The key of the preference.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
-
SetPreferenceOperationSpec
Constructs a validated instance ofSetPreferenceOperationSpec
.- Parameters:
spec
- the specification to process
-
SetPreferenceOperationSpec
Constructs a validated instance ofSetPreferenceOperationSpec
.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
key
- The key of the preference. The maximum length is 255 characters.body
- The value of the preference as a plain text string. The maximum length is 255 characters.
-
SetPreferenceOperationSpec
protected SetPreferenceOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
-
key
The key of the preference. The maximum length is 255 characters. -
body
The value of the preference as a plain text string. The maximum length is 255 characters. -
key
The key of the preference. The maximum length is 255 characters.- Returns:
this
.
-
body
The value of the preference as a plain text string. The maximum length is 255 characters.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-