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 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'.
    • ContentBodyCreate

      protected ContentBodyCreate()
  • Method Details

    • value

      public String value()
      The body of the content in the relevant format.
    • representation

      public String representation()
      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.
    • value

      public ContentBodyCreate value(String value)
      The body of the content in the relevant format.
      Returns:
      this.
    • representation

      public ContentBodyCreate representation(String representation)
      The content format type. Set the value of this property to the name of the format being used, e.g. 'storage'.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object