Class ContentStateRestInput

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentStateRestInput

@Generated("io.github.primelib.primecodegen") public class ContentStateRestInput extends Object
ContentStateRestInput
  • Field Details

    • name

      protected String name
      Name of content state. Maximum 20 characters.
    • color

      protected String color
      Color of state. Must be in 6 digit hex form (#FFFFFF). The default colors offered in the UI are: #ff7452 (red), #2684ff (blue), #ffc400 (yellow), #57d9a3 (green), and #8777d9 (purple)
    • id

      protected Long id
      id of state. This can be 0,1, or 2 if you wish to specify a default space state.
  • Constructor Details

    • ContentStateRestInput

      public ContentStateRestInput(Consumer<ContentStateRestInput> spec)
      Constructs a validated instance of ContentStateRestInput.
      Parameters:
      spec - the specification to process
    • ContentStateRestInput

      @Internal public ContentStateRestInput(String name, String color, Long id)
      Constructs a validated instance of ContentStateRestInput.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using ContentStateRestInput(Consumer) instead.

      Parameters:
      name - Name of content state. Maximum 20 characters.
      color - Color of state. Must be in 6 digit hex form (#FFFFFF). The default colors offered in the UI are: #ff7452 (red), #2684ff (blue), #ffc400 (yellow), #57d9a3 (green), and #8777d9 (purple)
      id - id of state. This can be 0,1, or 2 if you wish to specify a default space state.
    • ContentStateRestInput

      protected ContentStateRestInput()
  • Method Details

    • name

      public String name()
      Name of content state. Maximum 20 characters.
    • color

      public String color()
      Color of state. Must be in 6 digit hex form (#FFFFFF). The default colors offered in the UI are: #ff7452 (red), #2684ff (blue), #ffc400 (yellow), #57d9a3 (green), and #8777d9 (purple)
    • id

      public Long id()
      id of state. This can be 0,1, or 2 if you wish to specify a default space state.
    • name

      public ContentStateRestInput name(String name)
      Name of content state. Maximum 20 characters.
      Returns:
      this.
    • color

      public ContentStateRestInput color(String color)
      Color of state. Must be in 6 digit hex form (#FFFFFF). The default colors offered in the UI are: #ff7452 (red), #2684ff (blue), #ffc400 (yellow), #57d9a3 (green), and #8777d9 (purple)
      Returns:
      this.
    • id

      public ContentStateRestInput id(Long id)
      id of state. This can be 0,1, or 2 if you wish to specify a default space state.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object