// 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.implementation.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 WaitTimeExceptionTriggerInternal extends ExceptionTriggerInternal {
    /*
     * Threshold for wait time for this trigger.
     */
    @JsonProperty(value = "thresholdSeconds", required = true)
    private double thresholdSeconds;

    /** Creates an instance of WaitTimeExceptionTriggerInternal class. */
    public WaitTimeExceptionTriggerInternal() {}

    /**
     * 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 WaitTimeExceptionTriggerInternal object itself.
     */
    public WaitTimeExceptionTriggerInternal setThresholdSeconds(double thresholdSeconds) {
        this.thresholdSeconds = thresholdSeconds;
        return this;
    }
}
