Package com.microsoft.graph.models
Class SynchronizationRule
java.lang.Object
com.microsoft.graph.models.SynchronizationRule
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class SynchronizationRule
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SynchronizationRulecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the containerFilter property value.Gets the editable property value.The deserialization information for the current modelGets the groupFilter property value.getId()Gets the id property value.Gets the metadata property value.getName()Gets the name property value.Gets the objectMappings property value.Gets the @odata.type property value.Gets the priority property value.Gets the sourceDirectoryName property value.Gets the targetDirectoryName property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidSets the containerFilter property value.voidsetEditable(Boolean value) Sets the editable property value.voidsetGroupFilter(GroupFilter value) Sets the groupFilter property value.voidSets the id property value.voidsetMetadata(List<StringKeyStringValuePair> value) Sets the metadata property value.voidSets the name property value.voidsetObjectMappings(List<ObjectMapping> value) Sets the objectMappings property value.voidsetOdataType(String value) Sets the @odata.type property value.voidsetPriority(Integer value) Sets the priority property value.voidsetSourceDirectoryName(String value) Sets the sourceDirectoryName property value.voidsetTargetDirectoryName(String value) Sets the targetDirectoryName property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
SynchronizationRule
public SynchronizationRule()Instantiates a newSynchronizationRuleand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static SynchronizationRule 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
SynchronizationRule
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getContainerFilter
Gets the containerFilter property value. The containerFilter property- Returns:
- a
ContainerFilter
-
getEditable
Gets the editable property value. true if the synchronization rule can be customized; false if this rule is read-only and shouldn't be changed.- Returns:
- a
Boolean
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getGroupFilter
Gets the groupFilter property value. The groupFilter property- Returns:
- a
GroupFilter
-
getId
Gets the id property value. Synchronization rule identifier. Must be one of the identifiers recognized by the synchronization engine. Supported rule identifiers can be found in the synchronization template returned by the API.- Returns:
- a
String
-
getMetadata
Gets the metadata property value. Additional extension properties. Unless instructed explicitly by the support team, metadata values shouldn't be changed.- Returns:
- a
List<StringKeyStringValuePair>
-
getName
Gets the name property value. Human-readable name of the synchronization rule. Not nullable.- Returns:
- a
String
-
getObjectMappings
Gets the objectMappings property value. Collection of object mappings supported by the rule. Tells the synchronization engine which objects should be synchronized.- Returns:
- a
List<ObjectMapping>
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getPriority
Gets the priority property value. Priority relative to other rules in the synchronizationSchema. Rules with the lowest priority number will be processed first.- Returns:
- a
Integer
-
getSourceDirectoryName
Gets the sourceDirectoryName property value. Name of the source directory. Must match one of the directory definitions in synchronizationSchema.- Returns:
- a
String
-
getTargetDirectoryName
Gets the targetDirectoryName property value. Name of the target directory. Must match one of the directory definitions in synchronizationSchema.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setContainerFilter
Sets the containerFilter property value. The containerFilter property- Parameters:
value- Value to set for the containerFilter property.
-
setEditable
Sets the editable property value. true if the synchronization rule can be customized; false if this rule is read-only and shouldn't be changed.- Parameters:
value- Value to set for the editable property.
-
setGroupFilter
Sets the groupFilter property value. The groupFilter property- Parameters:
value- Value to set for the groupFilter property.
-
setId
Sets the id property value. Synchronization rule identifier. Must be one of the identifiers recognized by the synchronization engine. Supported rule identifiers can be found in the synchronization template returned by the API.- Parameters:
value- Value to set for the id property.
-
setMetadata
Sets the metadata property value. Additional extension properties. Unless instructed explicitly by the support team, metadata values shouldn't be changed.- Parameters:
value- Value to set for the metadata property.
-
setName
Sets the name property value. Human-readable name of the synchronization rule. Not nullable.- Parameters:
value- Value to set for the name property.
-
setObjectMappings
Sets the objectMappings property value. Collection of object mappings supported by the rule. Tells the synchronization engine which objects should be synchronized.- Parameters:
value- Value to set for the objectMappings property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setPriority
Sets the priority property value. Priority relative to other rules in the synchronizationSchema. Rules with the lowest priority number will be processed first.- Parameters:
value- Value to set for the priority property.
-
setSourceDirectoryName
Sets the sourceDirectoryName property value. Name of the source directory. Must match one of the directory definitions in synchronizationSchema.- Parameters:
value- Value to set for the sourceDirectoryName property.
-
setTargetDirectoryName
Sets the targetDirectoryName property value. Name of the target directory. Must match one of the directory definitions in synchronizationSchema.- Parameters:
value- Value to set for the targetDirectoryName property.
-