Class ContentBodyCreate

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

@Generated("io.github.primelib.primecodegen") public class ContentBodyCreate extends Object
ContentBodyCreate

This object is used when creating or updating content.

  • Field Details

    • value

      protected String value
      The body of the content in the relevant format.
    • representation

      protected String representation
      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.
  • Constructor Details

    • ContentBodyCreate

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

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

      @Internal public ContentBodyCreate(String value, String representation)
      Constructs a validated instance of ContentBodyCreate.

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

      Parameters:
      value - The body of the content in the relevant format.
      representation - The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.
  • Method Details

    • value

      public String value()
      Fluent getter for value.

      The body of the content in the relevant format.

      Returns:
      value
    • value

      public ContentBodyCreate value(String value)
      Fluent setter for value.

      The body of the content in the relevant format.

      Parameters:
      value - value
      Returns:
      this
    • getValue

      public String getValue()
      Gets the value of value.

      The body of the content in the relevant format.

      Returns:
      value
    • setValue

      public void setValue(String value)
      Sets the value of value.

      The body of the content in the relevant format.

      Parameters:
      value - value
    • representation

      public String representation()
      Fluent getter for representation.

      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.

      Returns:
      representation
    • representation

      public ContentBodyCreate representation(String representation)
      Fluent setter for representation.

      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.

      Parameters:
      representation - representation
      Returns:
      this
    • getRepresentation

      public String getRepresentation()
      Gets the value of representation.

      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.

      Returns:
      representation
    • setRepresentation

      public void setRepresentation(String representation)
      Sets the value of representation.

      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.

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