Klasse StoreAvatarOperationSpec

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

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

Specification for the StoreAvatar operation.

Load avatar

  • Felddetails

    • VALIDATION_ENABLED

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

    • StoreAvatarOperationSpec

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

      @Internal public StoreAvatarOperationSpec(String type, String entityId, Integer size, Object body, Integer x, Integer y)
      Constructs a validated instance of StoreAvatarOperationSpec.

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

      Parameter:
      type - The avatar type.
      entityId - The ID of the item the avatar is associated with.
      size - The length of each side of the crop region.
      body -
      x - The X coordinate of the top-left corner of the crop region.
      y - The Y coordinate of the top-left corner of the crop region.
    • StoreAvatarOperationSpec

      protected StoreAvatarOperationSpec()
  • Methodendetails

    • validate

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

    • type

      @NotNull public @NotNull String type()
      The avatar type.
    • entityId

      @NotNull public @NotNull String entityId()
      The ID of the item the avatar is associated with.
    • size

      @NotNull public @NotNull Integer size()
      The length of each side of the crop region.
    • body

      @NotNull public @NotNull Object body()
    • x

      @Nullable public @Nullable Integer x()
      The X coordinate of the top-left corner of the crop region.
    • y

      @Nullable public @Nullable Integer y()
      The Y coordinate of the top-left corner of the crop region.
    • type

      public StoreAvatarOperationSpec type(@NotNull @NotNull String type)
      The avatar type.
      Gibt zurück:
      this.
    • entityId

      public StoreAvatarOperationSpec entityId(@NotNull @NotNull String entityId)
      The ID of the item the avatar is associated with.
      Gibt zurück:
      this.
    • size

      public StoreAvatarOperationSpec size(@NotNull @NotNull Integer size)
      The length of each side of the crop region.
      Gibt zurück:
      this.
    • body

      public StoreAvatarOperationSpec body(@NotNull @NotNull Object body)
      Gibt zurück:
      this.
    • x

      public StoreAvatarOperationSpec x(@Nullable @Nullable Integer x)
      The X coordinate of the top-left corner of the crop region.
      Gibt zurück:
      this.
    • y

      public StoreAvatarOperationSpec y(@Nullable @Nullable Integer y)
      The Y coordinate of the top-left corner of the crop region.
      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