// 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 DistributionPolicy. */
@Fluent
public final class DistributionPolicyItemInternal {
    /*
     * Policy governing how jobs are distributed to workers
     */
    @JsonProperty(value = "distributionPolicy")
    private DistributionPolicyInternal distributionPolicy;

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

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

    /**
     * Get the distributionPolicy property: Policy governing how jobs are distributed to workers.
     *
     * @return the distributionPolicy value.
     */
    public DistributionPolicyInternal getDistributionPolicy() {
        return this.distributionPolicy;
    }

    /**
     * Set the distributionPolicy property: Policy governing how jobs are distributed to workers.
     *
     * @param distributionPolicy the distributionPolicy value to set.
     * @return the DistributionPolicyItemInternal object itself.
     */
    public DistributionPolicyItemInternal setDistributionPolicy(DistributionPolicyInternal distributionPolicy) {
        this.distributionPolicy = distributionPolicy;
        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 DistributionPolicyItemInternal object itself.
     */
    public DistributionPolicyItemInternal setEtag(String etag) {
        this.etag = etag;
        return this;
    }
}
