Class Relation

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

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

    • name

      protected String name
    • relationData

      protected RelationData relationData
    • source

      protected Object source
      Base object for all content types. Representation of a blogpost (content)
    • target

      protected Object target
      Base object for all content types. Representation of a blogpost (content)
    • additionalExpandable

      protected Expandableb48Ed1 additionalExpandable
  • Constructor Details

    • Relation

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

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

      @Internal public Relation(String name, RelationData relationData, Object source, Object target, Expandableb48Ed1 additionalExpandable, Map<String,Object> additionalLinks)
      Constructs a validated instance of Relation.

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

      Parameters:
      name - name
      relationData - relationData
      source - Base object for all content types. Representation of a blogpost (content)
      target - Base object for all content types. Representation of a blogpost (content)
      additionalExpandable - additionalExpandable
      additionalLinks - additionalLinks
  • Method Details

    • name

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

      public Relation name(String name)
      Fluent setter for name.
      Parameters:
      name - name
      Returns:
      this
    • getName

      public String getName()
      Gets the value of name.
      Returns:
      name
    • setName

      public void setName(String name)
      Sets the value of name.
      Parameters:
      name - name
    • relationData

      public RelationData relationData()
      Fluent getter for relationData.
      Returns:
      relationData
    • relationData

      public Relation relationData(RelationData relationData)
      Fluent setter for relationData.
      Parameters:
      relationData - relationData
      Returns:
      this
    • getRelationData

      public RelationData getRelationData()
      Gets the value of relationData.
      Returns:
      relationData
    • setRelationData

      public void setRelationData(RelationData relationData)
      Sets the value of relationData.
      Parameters:
      relationData - relationData
    • source

      public Object source()
      Fluent getter for source.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      source
    • source

      public Relation source(Object source)
      Fluent setter for source.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      source - source
      Returns:
      this
    • getSource

      public Object getSource()
      Gets the value of source.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      source
    • setSource

      public void setSource(Object source)
      Sets the value of source.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      source - source
    • target

      public Object target()
      Fluent getter for target.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      target
    • target

      public Relation target(Object target)
      Fluent setter for target.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      target - target
      Returns:
      this
    • getTarget

      public Object getTarget()
      Gets the value of target.

      Base object for all content types. Representation of a blogpost (content)

      Returns:
      target
    • setTarget

      public void setTarget(Object target)
      Sets the value of target.

      Base object for all content types. Representation of a blogpost (content)

      Parameters:
      target - target
    • additionalExpandable

      public Expandableb48Ed1 additionalExpandable()
      Fluent getter for additionalExpandable.
      Returns:
      additionalExpandable
    • additionalExpandable

      public Relation additionalExpandable(Expandableb48Ed1 additionalExpandable)
      Fluent setter for additionalExpandable.
      Parameters:
      additionalExpandable - additionalExpandable
      Returns:
      this
    • getAdditionalExpandable

      public Expandableb48Ed1 getAdditionalExpandable()
      Gets the value of additionalExpandable.
      Returns:
      additionalExpandable
    • setAdditionalExpandable

      public void setAdditionalExpandable(Expandableb48Ed1 additionalExpandable)
      Sets the value of additionalExpandable.
      Parameters:
      additionalExpandable - additionalExpandable
    • additionalLinks

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

      public Relation 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