Class ContentPropertyCreate

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

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

    • key

      protected String key
      The key of the new property.
    • value

      protected Object value
      The value of the content property. This can be empty or a complex object.
  • Constructor Details

    • ContentPropertyCreate

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

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

      @Internal public ContentPropertyCreate(String key, Object value)
      Constructs a validated instance of ContentPropertyCreate.

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

      Parameters:
      key - The key of the new property.
      value - The value of the content property. This can be empty or a complex object.
  • Method Details

    • key

      public String key()
      Fluent getter for key.

      The key of the new property.

      Returns:
      key
    • key

      public ContentPropertyCreate key(String key)
      Fluent setter for key.

      The key of the new property.

      Parameters:
      key - key
      Returns:
      this
    • getKey

      public String getKey()
      Gets the value of key.

      The key of the new property.

      Returns:
      key
    • setKey

      public void setKey(String key)
      Sets the value of key.

      The key of the new property.

      Parameters:
      key - key
    • value

      public Object value()
      Fluent getter for value.

      The value of the content property. This can be empty or a complex object.

      Returns:
      value
    • value

      public ContentPropertyCreate value(Object value)
      Fluent setter for value.

      The value of the content property. This can be empty or a complex object.

      Parameters:
      value - value
      Returns:
      this
    • getValue

      public Object getValue()
      Gets the value of value.

      The value of the content property. This can be empty or a complex object.

      Returns:
      value
    • setValue

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

      The value of the content property. This can be empty or a complex object.

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