// 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;

/** Paged instance of ExceptionPolicy. */
@Fluent
public final class ExceptionPolicyItemInternal {
    /*
     * A policy that defines actions to execute when exception are triggered.
     */
    @JsonProperty(value = "exceptionPolicy")
    private ExceptionPolicyInternal exceptionPolicy;

    /*
     * (Optional) The Concurrency Token.
     */
    @JsonProperty(value = "etag")
    private String etag;

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

    /**
     * Get the exceptionPolicy property: A policy that defines actions to execute when exception are triggered.
     *
     * @return the exceptionPolicy value.
     */
    public ExceptionPolicyInternal getExceptionPolicy() {
        return this.exceptionPolicy;
    }

    /**
     * Set the exceptionPolicy property: A policy that defines actions to execute when exception are triggered.
     *
     * @param exceptionPolicy the exceptionPolicy value to set.
     * @return the ExceptionPolicyItemInternal object itself.
     */
    public ExceptionPolicyItemInternal setExceptionPolicy(ExceptionPolicyInternal exceptionPolicy) {
        this.exceptionPolicy = exceptionPolicy;
        return this;
    }

    /**
     * Get the etag property: (Optional) The Concurrency Token.
     *
     * @return the etag value.
     */
    public String getEtag() {
        return this.etag;
    }

    /**
     * Set the etag property: (Optional) The Concurrency Token.
     *
     * @param etag the etag value to set.
     * @return the ExceptionPolicyItemInternal object itself.
     */
    public ExceptionPolicyItemInternal setEtag(String etag) {
        this.etag = etag;
        return this;
    }
}
