Class Relation

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.termstore.Relation
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Relation extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Relation

      public Relation()
      Instantiates a new Relation and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Relation createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Relation
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFromTerm

      @Nullable public Term getFromTerm()
      Gets the fromTerm property value. 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].
      Returns:
      a Term
    • getRelationship

      @Nullable public RelationType getRelationship()
      Gets the relationship property value. The type of relation. Possible values are: pin, reuse.
      Returns:
      a RelationType
    • getSet

      @Nullable public Set getSet()
      Gets the set property value. The [set] in which the relation is relevant.
      Returns:
      a Set
    • getToTerm

      @Nullable public Term getToTerm()
      Gets the toTerm property value. The to [term] of the relation. The term to which the relationship is defined.
      Returns:
      a Term
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setFromTerm

      public void setFromTerm(@Nullable Term value)
      Sets the fromTerm property value. 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].
      Parameters:
      value - Value to set for the fromTerm property.
    • setRelationship

      public void setRelationship(@Nullable RelationType value)
      Sets the relationship property value. The type of relation. Possible values are: pin, reuse.
      Parameters:
      value - Value to set for the relationship property.
    • setSet

      public void setSet(@Nullable Set value)
      Sets the set property value. The [set] in which the relation is relevant.
      Parameters:
      value - Value to set for the set property.
    • setToTerm

      public void setToTerm(@Nullable Term value)
      Sets the toTerm property value. The to [term] of the relation. The term to which the relationship is defined.
      Parameters:
      value - Value to set for the toTerm property.