Class Relation

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.termstore.models.Relation
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class Relation extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Relation.
  • Field Details

    • relationship

      @SerializedName(value="relationship", alternate="Relationship") @Expose @Nullable public RelationType relationship
      The Relationship. The type of relation. Possible values are: pin, reuse.
    • fromTerm

      @SerializedName(value="fromTerm", alternate="FromTerm") @Expose @Nullable public Term fromTerm
      The From Term. The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set].
    • set

      @SerializedName(value="set", alternate="Set") @Expose @Nullable public Set set
      The Set. The [set] in which the relation is relevant.
    • toTerm

      @SerializedName(value="toTerm", alternate="ToTerm") @Expose @Nullable public Term toTerm
      The To Term. The to [term] of the relation. The term to which the relationship is defined.
  • Constructor Details

    • Relation

      public Relation()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to