All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.communication.jobrouter.implementation.models.ExceptionRuleInternal Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter.implementation.models;

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * A rule that defines actions to execute upon a specific trigger.
 */
@Immutable
public final class ExceptionRuleInternal {

    /*
     * Id of an exception rule.
     */
    @Generated
    @JsonProperty(value = "id")
    private String id;

    /*
     * The trigger for this exception rule.
     */
    @Generated
    @JsonProperty(value = "trigger")
    private ExceptionTriggerInternal trigger;

    /*
     * A collection of actions to perform once the exception is triggered.
     */
    @Generated
    @JsonProperty(value = "actions")
    private List actions;

    /**
     * Creates an instance of ExceptionRuleInternal class.
     *
     * @param id the id value to set.
     * @param trigger the trigger value to set.
     * @param actions the actions value to set.
     */
    @Generated
    @JsonCreator
    public ExceptionRuleInternal(@JsonProperty(value = "id") String id,
        @JsonProperty(value = "trigger") ExceptionTriggerInternal trigger,
        @JsonProperty(value = "actions") List actions) {
        this.id = id;
        this.trigger = trigger;
        this.actions = actions;
    }

    /**
     * Get the id property: Id of an exception rule.
     *
     * @return the id value.
     */
    @Generated
    public String getId() {
        return this.id;
    }

    /**
     * Get the trigger property: The trigger for this exception rule.
     *
     * @return the trigger value.
     */
    @Generated
    public ExceptionTriggerInternal getTrigger() {
        return this.trigger;
    }

    /**
     * Get the actions property: A collection of actions to perform once the exception is triggered.
     *
     * @return the actions value.
     */
    @Generated
    public List getActions() {
        return this.actions;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy