// 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 RouterQueue. */
@Fluent
public final class RouterQueueItemInternal {
    /*
     * A queue that can contain jobs to be routed.
     */
    @JsonProperty(value = "queue")
    private RouterQueueInternal queue;

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

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

    /**
     * Get the queue property: A queue that can contain jobs to be routed.
     *
     * @return the queue value.
     */
    public RouterQueueInternal getQueue() {
        return this.queue;
    }

    /**
     * Set the queue property: A queue that can contain jobs to be routed.
     *
     * @param queue the queue value to set.
     * @return the RouterQueueItemInternal object itself.
     */
    public RouterQueueItemInternal setQueue(RouterQueueInternal queue) {
        this.queue = queue;
        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 RouterQueueItemInternal object itself.
     */
    public RouterQueueItemInternal setEtag(String etag) {
        this.etag = etag;
        return this;
    }
}
