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

    • name

      public String name()
      Fluent getter for name.

      Name of content state. Maximum 20 characters.

      Returns:
      name
    • name

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

      Name of content state. Maximum 20 characters.

      Parameters:
      name - name
      Returns:
      this
    • getName

      public String getName()
      Gets the value of name.

      Name of content state. Maximum 20 characters.

      Returns:
      name
    • setName

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

      Name of content state. Maximum 20 characters.

      Parameters:
      name - name
    • color

      public String color()
      Fluent getter for 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:
      color
    • color

      public ContentStateRestInput color(String color)
      Fluent setter for 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)

      Parameters:
      color - color
      Returns:
      this
    • getColor

      public String getColor()
      Gets the value of 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:
      color
    • setColor

      public void setColor(String color)
      Sets the value of 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)

      Parameters:
      color - color
    • id

      public Long id()
      Fluent getter for id.

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

      Returns:
      id
    • id

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

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

      Parameters:
      id - id
      Returns:
      this
    • getId

      public Long getId()
      Gets the value of id.

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

      Returns:
      id
    • setId

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

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

      Parameters:
      id - id
    • 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