Class ContentState
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentState
ContentState
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentState(Long id, String name, String color) Constructs a validated instance ofContentState.ContentState(Consumer<ContentState> spec) Constructs a validated instance ofContentState. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Fluent getter for color.Fluent setter for color.booleangetColor()Gets the value of color.getId()Gets the value of id.getName()Gets the value of name.inthashCode()id()Fluent getter for id.Fluent setter for id.name()Fluent getter for name.Fluent setter for name.voidSets the value of color.voidSets the value of id.voidSets the value of name.toString()
-
Field Details
-
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
-
-
Constructor Details
-
ContentState
Constructs a validated instance ofContentState.- Parameters:
spec- the specification to process
-
ContentState
@Internal protected ContentState()Protected no-args constructor for use by serialization frameworks. -
ContentState
Constructs a validated instance ofContentState.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 statename- name of content state.color- hex string representing color of state
-
-
Method Details
-
id
Fluent getter for id.identifier of content state. If 0, 1, or 2, this is a default space state
- Returns:
- id
-
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
Gets the value of id.identifier of content state. If 0, 1, or 2, this is a default space state
- Returns:
- id
-
setId
Sets the value of id.identifier of content state. If 0, 1, or 2, this is a default space state
- Parameters:
id- id
-
name
-
name
Fluent setter for name.name of content state.
- Parameters:
name- name- Returns:
- this
-
getName
-
setName
Sets the value of name.name of content state.
- Parameters:
name- name
-
color
Fluent getter for color.hex string representing color of state
- Returns:
- color
-
color
Fluent setter for color.hex string representing color of state
- Parameters:
color- color- Returns:
- this
-
getColor
Gets the value of color.hex string representing color of state
- Returns:
- color
-
setColor
Sets the value of color.hex string representing color of state
- Parameters:
color- color
-
equals
-
hashCode
-
toString
-