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

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

    • id

      protected Long id
      identifier of content state. If 0, 1, or 2, this is a default space state
    • name

      protected String name
      name of content state.
    • color

      protected String color
      hex string representing color of state
  • Constructor Details

    • ContentState

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

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

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

      Parameters:
      id - identifier of content state. If 0, 1, or 2, this is a default space state
      name - name of content state.
      color - hex string representing color of state
    • ContentState

      protected ContentState()
  • Method Details

    • id

      public Long id()
      identifier of content state. If 0, 1, or 2, this is a default space state
    • name

      public String name()
      name of content state.
    • color

      public String color()
      hex string representing color of state
    • id

      public ContentState id(Long id)
      identifier of content state. If 0, 1, or 2, this is a default space state
      Returns:
      this.
    • name

      public ContentState name(String name)
      name of content state.
      Returns:
      this.
    • color

      public ContentState color(String color)
      hex string representing color of 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