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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Relation
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the fromTerm property value.Gets the relationship property value.getSet()
Gets the set property value.Gets the toTerm property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setFromTerm
(Term value) Sets the fromTerm property value.void
setRelationship
(RelationType value) Sets the relationship property value.void
Sets the set property value.void
Sets the toTerm property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Relation
public Relation()Instantiates a newRelation
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
Gets the relationship property value. The type of relation. Possible values are: pin, reuse.- Returns:
- a
RelationType
-
getSet
Gets the set property value. The [set] in which the relation is relevant.- Returns:
- a
Set
-
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 -
setFromTerm
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
Sets the relationship property value. The type of relation. Possible values are: pin, reuse.- Parameters:
value
- Value to set for the relationship property.
-
setSet
Sets the set property value. The [set] in which the relation is relevant.- Parameters:
value
- Value to set for the set property.
-
setToTerm
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.
-