Klasse SetPreferenceOperationSpec

java.lang.Object
io.github.primelib.jira4j.restv2.spec.SetPreferenceOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class SetPreferenceOperationSpec extends Object
SetPreferenceSpec

Specification for the SetPreference operation.

Set preference

  • Felddetails

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Konstruktordetails

    • SetPreferenceOperationSpec

      @Internal public SetPreferenceOperationSpec(Consumer<SetPreferenceOperationSpec> spec)
      Constructs a validated instance of SetPreferenceOperationSpec.
      Parameter:
      spec - the specification to process
    • SetPreferenceOperationSpec

      @Internal public SetPreferenceOperationSpec(String key, String body)
      Constructs a validated instance of SetPreferenceOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameter:
      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()
  • Methodendetails

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException
    • builder

    • key

      @NotNull public @NotNull String key()
      The key of the preference. The maximum length is 255 characters.
    • body

      @NotNull public @NotNull String body()
      The value of the preference as a plain text string. The maximum length is 255 characters.
    • key

      public SetPreferenceOperationSpec key(@NotNull @NotNull String key)
      The key of the preference. The maximum length is 255 characters.
      Gibt zurück:
      this.
    • body

      public SetPreferenceOperationSpec body(@NotNull @NotNull String body)
      The value of the preference as a plain text string. The maximum length is 255 characters.
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object