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

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

The newest version!
// 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.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Policy governing how jobs are distributed to workers.
 */
@Fluent
public final class DistributionPolicyInternal {

    /*
     * The entity tag for this resource.
     */
    @Generated
    @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
    private String etag;

    /*
     * Id of a distribution policy.
     */
    @Generated
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /*
     * Friendly name of this policy.
     */
    @Generated
    @JsonProperty(value = "name")
    private String name;

    /*
     * Number of seconds after which any offers created under this policy will be expired.
     */
    @Generated
    @JsonProperty(value = "offerExpiresAfterSeconds")
    private Double offerExpiresAfterSeconds;

    /*
     * Mode governing the specific distribution method.
     */
    @Generated
    @JsonProperty(value = "mode")
    private DistributionModeInternal mode;

    /**
     * Creates an instance of DistributionPolicyInternal class.
     */
    @Generated
    public DistributionPolicyInternal() {
    }

    /**
     * Get the etag property: The entity tag for this resource.
     *
     * @return the etag value.
     */
    @Generated
    public String getEtag() {
        return this.etag;
    }

    /**
     * Get the id property: Id of a distribution policy.
     *
     * @return the id value.
     */
    @Generated
    public String getId() {
        return this.id;
    }

    /**
     * Get the name property: Friendly name of this policy.
     *
     * @return the name value.
     */
    @Generated
    public String getName() {
        return this.name;
    }

    /**
     * Set the name property: Friendly name of this policy.
     *
     * @param name the name value to set.
     * @return the DistributionPolicyInternal object itself.
     */
    @Generated
    public DistributionPolicyInternal setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the offerExpiresAfterSeconds property: Number of seconds after which any offers created under this policy
     * will be expired.
     *
     * @return the offerExpiresAfterSeconds value.
     */
    @Generated
    public Double getOfferExpiresAfterSeconds() {
        return this.offerExpiresAfterSeconds;
    }

    /**
     * Set the offerExpiresAfterSeconds property: Number of seconds after which any offers created under this policy
     * will be expired.
     *
     * @param offerExpiresAfterSeconds the offerExpiresAfterSeconds value to set.
     * @return the DistributionPolicyInternal object itself.
     */
    @Generated
    public DistributionPolicyInternal setOfferExpiresAfterSeconds(Double offerExpiresAfterSeconds) {
        this.offerExpiresAfterSeconds = offerExpiresAfterSeconds;
        return this;
    }

    /**
     * Get the mode property: Mode governing the specific distribution method.
     *
     * @return the mode value.
     */
    @Generated
    public DistributionModeInternal getMode() {
        return this.mode;
    }

    /**
     * Set the mode property: Mode governing the specific distribution method.
     *
     * @param mode the mode value to set.
     * @return the DistributionPolicyInternal object itself.
     */
    @Generated
    public DistributionPolicyInternal setMode(DistributionModeInternal mode) {
        this.mode = mode;
        return this;
    }

    /**
     * Set id.
     *
     * @param id id.
     * @return this.
     */
    public DistributionPolicyInternal setId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Set etag.
     *
     * @param etag etag.
     * @return this
     */
    public DistributionPolicyInternal setEtag(String etag) {
        this.etag = etag;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy