Class UserProperty

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

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

    • key

      protected String key
    • value

      protected Map<String,Object> value
      The value of the content property.
    • id

      protected String id
      a unique identifier for the user property
    • lastModifiedDate

      protected Instant lastModifiedDate
      datetime when the property was last modified such as `2022-02-01T12:00:00.111Z`
    • createdDate

      protected Instant createdDate
      datetime when the property was created such as `2022-01-01T12:00:00.111Z`
  • Constructor Details

    • UserProperty

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

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

      @Internal public UserProperty(String key, Map<String,Object> value, String id, Instant lastModifiedDate, Instant createdDate, Map<String,Object> additionalLinks)
      Constructs a validated instance of UserProperty.

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

      Parameters:
      key - key
      value - The value of the content property.
      id - a unique identifier for the user property
      lastModifiedDate - datetime when the property was last modified such as `2022-02-01T12:00:00.111Z`
      createdDate - datetime when the property was created such as `2022-01-01T12:00:00.111Z`
      additionalLinks - additionalLinks
  • Method Details

    • key

      public String key()
      Fluent getter for key.
      Returns:
      key
    • key

      public UserProperty key(String key)
      Fluent setter for key.
      Parameters:
      key - key
      Returns:
      this
    • getKey

      public String getKey()
      Gets the value of key.
      Returns:
      key
    • setKey

      public void setKey(String key)
      Sets the value of key.
      Parameters:
      key - key
    • value

      public Map<String,Object> value()
      Fluent getter for value.

      The value of the content property.

      Returns:
      value
    • value

      public UserProperty value(Map<String,Object> value)
      Fluent setter for value.

      The value of the content property.

      Parameters:
      value - value
      Returns:
      this
    • getValue

      public Map<String,Object> getValue()
      Gets the value of value.

      The value of the content property.

      Returns:
      value
    • setValue

      public void setValue(Map<String,Object> value)
      Sets the value of value.

      The value of the content property.

      Parameters:
      value - value
    • id

      public String id()
      Fluent getter for id.

      a unique identifier for the user property

      Returns:
      id
    • id

      public UserProperty id(String id)
      Fluent setter for id.

      a unique identifier for the user property

      Parameters:
      id - id
      Returns:
      this
    • getId

      public String getId()
      Gets the value of id.

      a unique identifier for the user property

      Returns:
      id
    • setId

      public void setId(String id)
      Sets the value of id.

      a unique identifier for the user property

      Parameters:
      id - id
    • lastModifiedDate

      public Instant lastModifiedDate()
      Fluent getter for lastModifiedDate.

      datetime when the property was last modified such as `2022-02-01T12:00:00.111Z`

      Returns:
      lastModifiedDate
    • lastModifiedDate

      public UserProperty lastModifiedDate(Instant lastModifiedDate)
      Fluent setter for lastModifiedDate.

      datetime when the property was last modified such as `2022-02-01T12:00:00.111Z`

      Parameters:
      lastModifiedDate - lastModifiedDate
      Returns:
      this
    • getLastModifiedDate

      public Instant getLastModifiedDate()
      Gets the value of lastModifiedDate.

      datetime when the property was last modified such as `2022-02-01T12:00:00.111Z`

      Returns:
      lastModifiedDate
    • setLastModifiedDate

      public void setLastModifiedDate(Instant lastModifiedDate)
      Sets the value of lastModifiedDate.

      datetime when the property was last modified such as `2022-02-01T12:00:00.111Z`

      Parameters:
      lastModifiedDate - lastModifiedDate
    • createdDate

      public Instant createdDate()
      Fluent getter for createdDate.

      datetime when the property was created such as `2022-01-01T12:00:00.111Z`

      Returns:
      createdDate
    • createdDate

      public UserProperty createdDate(Instant createdDate)
      Fluent setter for createdDate.

      datetime when the property was created such as `2022-01-01T12:00:00.111Z`

      Parameters:
      createdDate - createdDate
      Returns:
      this
    • getCreatedDate

      public Instant getCreatedDate()
      Gets the value of createdDate.

      datetime when the property was created such as `2022-01-01T12:00:00.111Z`

      Returns:
      createdDate
    • setCreatedDate

      public void setCreatedDate(Instant createdDate)
      Sets the value of createdDate.

      datetime when the property was created such as `2022-01-01T12:00:00.111Z`

      Parameters:
      createdDate - createdDate
    • additionalLinks

      public Map<String,Object> additionalLinks()
      Fluent getter for additionalLinks.
      Returns:
      additionalLinks
    • additionalLinks

      public UserProperty additionalLinks(Map<String,Object> additionalLinks)
      Fluent setter for additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
      Returns:
      this
    • getAdditionalLinks

      public Map<String,Object> getAdditionalLinks()
      Gets the value of additionalLinks.
      Returns:
      additionalLinks
    • setAdditionalLinks

      public void setAdditionalLinks(Map<String,Object> additionalLinks)
      Sets the value of additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
    • 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