Class ContentState

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 protected ContentState()
      Protected no-args constructor for use by serialization frameworks.
    • 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
  • Method Details

    • id

      public Long id()
      Fluent getter for id.

      identifier of content state. If 0, 1, or 2, this is a default space state

      Returns:
      id
    • id

      public ContentState id(Long id)
      Fluent setter for id.

      identifier of content state. If 0, 1, or 2, this is a default space state

      Parameters:
      id - id
      Returns:
      this
    • getId

      public Long getId()
      Gets the value of id.

      identifier of content state. If 0, 1, or 2, this is a default space state

      Returns:
      id
    • setId

      public void setId(Long id)
      Sets the value of id.

      identifier of content state. If 0, 1, or 2, this is a default space state

      Parameters:
      id - id
    • name

      public String name()
      Fluent getter for name.

      name of content state.

      Returns:
      name
    • name

      public ContentState name(String name)
      Fluent setter for name.

      name of content state.

      Parameters:
      name - name
      Returns:
      this
    • getName

      public String getName()
      Gets the value of name.

      name of content state.

      Returns:
      name
    • setName

      public void setName(String name)
      Sets the value of name.

      name of content state.

      Parameters:
      name - name
    • color

      public String color()
      Fluent getter for color.

      hex string representing color of state

      Returns:
      color
    • color

      public ContentState color(String color)
      Fluent setter for color.

      hex string representing color of state

      Parameters:
      color - color
      Returns:
      this
    • getColor

      public String getColor()
      Gets the value of color.

      hex string representing color of state

      Returns:
      color
    • setColor

      public void setColor(String color)
      Sets the value of color.

      hex string representing color of state

      Parameters:
      color - color
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object