FreshnessScoringParameters.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Duration;
/**
* Provides parameter values to a freshness scoring function.
*/
@Fluent
public final class FreshnessScoringParameters {
/*
* The expiration period after which boosting will stop for a particular
* document.
*/
@JsonProperty(value = "boostingDuration", required = true)
private Duration boostingDuration;
/**
* Get the boostingDuration property: The expiration period after which
* boosting will stop for a particular document.
*
* @return the boostingDuration value.
*/
public Duration getBoostingDuration() {
return this.boostingDuration;
}
/**
* Set the boostingDuration property: The expiration period after which
* boosting will stop for a particular document.
*
* @param boostingDuration the boostingDuration value to set.
* @return the FreshnessScoringParameters object itself.
*/
public FreshnessScoringParameters setBoostingDuration(Duration boostingDuration) {
this.boostingDuration = boostingDuration;
return this;
}
}