// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.jobrouter.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Trigger for an exception action on exceeding wait time. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("wait-time")
@Fluent
public final class WaitTimeExceptionTrigger extends ExceptionTrigger {
    /*
     * Threshold for wait time for this trigger.
     */
    @JsonProperty(value = "thresholdSeconds", required = true)
    private double thresholdSeconds;

    /**
     * Get the thresholdSeconds property: Threshold for wait time for this trigger.
     *
     * @return the thresholdSeconds value.
     */
    public double getThresholdSeconds() {
        return this.thresholdSeconds;
    }

    /**
     * Set the thresholdSeconds property: Threshold for wait time for this trigger.
     *
     * @param thresholdSeconds the thresholdSeconds value to set.
     * @return the WaitTimeExceptionTrigger object itself.
     */
    public WaitTimeExceptionTrigger setThresholdSeconds(double thresholdSeconds) {
        this.thresholdSeconds = thresholdSeconds;
        return this;
    }
}
