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 Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • SynchronizationRule

      public SynchronizationRule()
      Instantiates a new SynchronizationRule and 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

      @Nonnull public Map<String,Object> 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.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getContainerFilter

      @Nullable public ContainerFilter getContainerFilter()
      Gets the containerFilter property value. The containerFilter property
      Returns:
      a ContainerFilter
    • getEditable

      @Nullable public Boolean 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
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGroupFilter

      @Nullable public GroupFilter getGroupFilter()
      Gets the groupFilter property value. The groupFilter property
      Returns:
      a GroupFilter
    • getId

      @Nullable public String 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

      @Nullable public List<StringKeyStringValuePair> 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

      @Nullable public String getName()
      Gets the name property value. Human-readable name of the synchronization rule. Not nullable.
      Returns:
      a String
    • getObjectMappings

      @Nullable public List<ObjectMapping> 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

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getPriority

      @Nullable public Integer 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

      @Nullable public String getSourceDirectoryName()
      Gets the sourceDirectoryName property value. Name of the source directory. Must match one of the directory definitions in synchronizationSchema.
      Returns:
      a String
    • getTargetDirectoryName

      @Nullable public 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:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      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

      public void setContainerFilter(@Nullable ContainerFilter value)
      Sets the containerFilter property value. The containerFilter property
      Parameters:
      value - Value to set for the containerFilter property.
    • setEditable

      public void setEditable(@Nullable Boolean value)
      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

      public void setGroupFilter(@Nullable GroupFilter value)
      Sets the groupFilter property value. The groupFilter property
      Parameters:
      value - Value to set for the groupFilter property.
    • setId

      public void setId(@Nullable String value)
      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

      public void setMetadata(@Nullable List<StringKeyStringValuePair> value)
      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

      public void setName(@Nullable String value)
      Sets the name property value. Human-readable name of the synchronization rule. Not nullable.
      Parameters:
      value - Value to set for the name property.
    • setObjectMappings

      public void setObjectMappings(@Nullable List<ObjectMapping> value)
      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

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setPriority

      public void setPriority(@Nullable Integer value)
      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

      public void setSourceDirectoryName(@Nullable String value)
      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

      public void setTargetDirectoryName(@Nullable String value)
      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.