Class AvailableContentStates

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

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

    • spaceContentStates

      protected List<ContentState> spaceContentStates
      Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.
    • customContentStates

      protected List<ContentState> customContentStates
      Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.
  • Constructor Details

    • AvailableContentStates

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

      @Internal protected AvailableContentStates()
      Protected no-args constructor for use by serialization frameworks.
    • AvailableContentStates

      @Internal public AvailableContentStates(List<ContentState> spaceContentStates, List<ContentState> customContentStates)
      Constructs a validated instance of AvailableContentStates.

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

      Parameters:
      spaceContentStates - Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.
      customContentStates - Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.
  • Method Details

    • spaceContentStates

      public List<ContentState> spaceContentStates()
      Fluent getter for spaceContentStates.

      Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.

      Returns:
      spaceContentStates
    • spaceContentStates

      public AvailableContentStates spaceContentStates(List<ContentState> spaceContentStates)
      Fluent setter for spaceContentStates.

      Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.

      Parameters:
      spaceContentStates - spaceContentStates
      Returns:
      this
    • getSpaceContentStates

      public List<ContentState> getSpaceContentStates()
      Gets the value of spaceContentStates.

      Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.

      Returns:
      spaceContentStates
    • setSpaceContentStates

      public void setSpaceContentStates(List<ContentState> spaceContentStates)
      Sets the value of spaceContentStates.

      Space suggested content states that can be used in the space. This list can be empty if there are no space content states defined in the space or if space content states are disabled in the space. All spaces start with 4 default space content states, and this can be modified in the UI under space settings.

      Parameters:
      spaceContentStates - spaceContentStates
    • customContentStates

      public List<ContentState> customContentStates()
      Fluent getter for customContentStates.

      Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.

      Returns:
      customContentStates
    • customContentStates

      public AvailableContentStates customContentStates(List<ContentState> customContentStates)
      Fluent setter for customContentStates.

      Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.

      Parameters:
      customContentStates - customContentStates
      Returns:
      this
    • getCustomContentStates

      public List<ContentState> getCustomContentStates()
      Gets the value of customContentStates.

      Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.

      Returns:
      customContentStates
    • setCustomContentStates

      public void setCustomContentStates(List<ContentState> customContentStates)
      Sets the value of customContentStates.

      Custom content states that can be used by the user on the content of this call. This list can be empty if there are no custom content states defined by the user or if custom content states are disabled in the space of the content. This will at most have 3 of the most recently published content states. Only the calling user has access to place these states on content, but all users can see these states once they are placed.

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