SoftDeleteColumnDeletionDetectionPolicy.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.
  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonProperty;
  10. import com.fasterxml.jackson.annotation.JsonTypeId;
  11. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  12. import com.fasterxml.jackson.annotation.JsonTypeName;

  13. /**
  14.  * Defines a data deletion detection policy that implements a soft-deletion strategy. It determines whether an item
  15.  * should be deleted based on the value of a designated 'soft delete' column.
  16.  */
  17. @JsonTypeInfo(
  18.         use = JsonTypeInfo.Id.NAME,
  19.         include = JsonTypeInfo.As.EXISTING_PROPERTY,
  20.         property = "@odata.type",
  21.         visible = true)
  22. @JsonTypeName("#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy")
  23. @Fluent
  24. public final class SoftDeleteColumnDeletionDetectionPolicy extends DataDeletionDetectionPolicy {

  25.     /*
  26.      * Identifies the concrete type of the data deletion detection policy.
  27.      */
  28.     @JsonTypeId
  29.     @JsonProperty(value = "@odata.type", required = true)
  30.     private String odataType = "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy";

  31.     /*
  32.      * The name of the column to use for soft-deletion detection.
  33.      */
  34.     @JsonProperty(value = "softDeleteColumnName")
  35.     private String softDeleteColumnName;

  36.     /*
  37.      * The marker value that identifies an item as deleted.
  38.      */
  39.     @JsonProperty(value = "softDeleteMarkerValue")
  40.     private String softDeleteMarkerValue;

  41.     /**
  42.      * Get the softDeleteColumnName property: The name of the column to use for soft-deletion detection.
  43.      *
  44.      * @return the softDeleteColumnName value.
  45.      */
  46.     public String getSoftDeleteColumnName() {
  47.         return this.softDeleteColumnName;
  48.     }

  49.     /**
  50.      * Set the softDeleteColumnName property: The name of the column to use for soft-deletion detection.
  51.      *
  52.      * @param softDeleteColumnName the softDeleteColumnName value to set.
  53.      * @return the SoftDeleteColumnDeletionDetectionPolicy object itself.
  54.      */
  55.     public SoftDeleteColumnDeletionDetectionPolicy setSoftDeleteColumnName(String softDeleteColumnName) {
  56.         this.softDeleteColumnName = softDeleteColumnName;
  57.         return this;
  58.     }

  59.     /**
  60.      * Get the softDeleteMarkerValue property: The marker value that identifies an item as deleted.
  61.      *
  62.      * @return the softDeleteMarkerValue value.
  63.      */
  64.     public String getSoftDeleteMarkerValue() {
  65.         return this.softDeleteMarkerValue;
  66.     }

  67.     /**
  68.      * Set the softDeleteMarkerValue property: The marker value that identifies an item as deleted.
  69.      *
  70.      * @param softDeleteMarkerValue the softDeleteMarkerValue value to set.
  71.      * @return the SoftDeleteColumnDeletionDetectionPolicy object itself.
  72.      */
  73.     public SoftDeleteColumnDeletionDetectionPolicy setSoftDeleteMarkerValue(String softDeleteMarkerValue) {
  74.         this.softDeleteMarkerValue = softDeleteMarkerValue;
  75.         return this;
  76.     }
  77. }