Class ContentStateRestInput
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentStateRestInput(String name, String color, Long id) Constructs a validated instance ofContentStateRestInput.Constructs a validated instance ofContentStateRestInput. -
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
-
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.
-
-
Constructor Details
-
ContentStateRestInput
Constructs a validated instance ofContentStateRestInput.- Parameters:
spec- the specification to process
-
ContentStateRestInput
@Internal protected ContentStateRestInput()Protected no-args constructor for use by serialization frameworks. -
ContentStateRestInput
Constructs a validated instance ofContentStateRestInput.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
Fluent getter for name.Name of content state. Maximum 20 characters.
- Returns:
- name
-
name
Fluent setter for name.Name of content state. Maximum 20 characters.
- Parameters:
name- name- Returns:
- this
-
getName
Gets the value of name.Name of content state. Maximum 20 characters.
- Returns:
- name
-
setName
Sets the value of name.Name of content state. Maximum 20 characters.
- Parameters:
name- name
-
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
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
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
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
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
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
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
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
-
hashCode
-
toString
-