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

com.azure.communication.jobrouter.implementation.models.ClassificationPolicyInternal 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.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * A container for the rules that govern how jobs are classified.
 */
@Fluent
public final class ClassificationPolicyInternal {

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

    /*
     * Id of a classification 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;

    /*
     * Id of a fallback queue to select if queue selector attachments doesn't find a match.
     */
    @Generated
    @JsonProperty(value = "fallbackQueueId")
    private String fallbackQueueId;

    /*
     * Queue selector attachments used to resolve a queue for a job.
     */
    @Generated
    @JsonProperty(value = "queueSelectorAttachments")
    private List queueSelectorAttachments;

    /*
     * A rule to determine a priority score for a job.
     */
    @Generated
    @JsonProperty(value = "prioritizationRule")
    private RouterRuleInternal prioritizationRule;

    /*
     * Worker selector attachments used to attach worker selectors to a job.
     */
    @Generated
    @JsonProperty(value = "workerSelectorAttachments")
    private List workerSelectorAttachments;

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

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

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

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

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

    /**
     * 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 ClassificationPolicyInternal object itself.
     */
    @Generated
    public ClassificationPolicyInternal setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the fallbackQueueId property: Id of a fallback queue to select if queue selector attachments doesn't find a
     * match.
     *
     * @return the fallbackQueueId value.
     */
    @Generated
    public String getFallbackQueueId() {
        return this.fallbackQueueId;
    }

    /**
     * Set the fallbackQueueId property: Id of a fallback queue to select if queue selector attachments doesn't find a
     * match.
     *
     * @param fallbackQueueId the fallbackQueueId value to set.
     * @return the ClassificationPolicyInternal object itself.
     */
    @Generated
    public ClassificationPolicyInternal setFallbackQueueId(String fallbackQueueId) {
        this.fallbackQueueId = fallbackQueueId;
        return this;
    }

    /**
     * Get the queueSelectorAttachments property: Queue selector attachments used to resolve a queue for a job.
     *
     * @return the queueSelectorAttachments value.
     */
    @Generated
    public List getQueueSelectorAttachments() {
        return this.queueSelectorAttachments;
    }

    /**
     * Set the queueSelectorAttachments property: Queue selector attachments used to resolve a queue for a job.
     *
     * @param queueSelectorAttachments the queueSelectorAttachments value to set.
     * @return the ClassificationPolicyInternal object itself.
     */
    @Generated
    public ClassificationPolicyInternal
        setQueueSelectorAttachments(List queueSelectorAttachments) {
        this.queueSelectorAttachments = queueSelectorAttachments;
        return this;
    }

    /**
     * Get the prioritizationRule property: A rule to determine a priority score for a job.
     *
     * @return the prioritizationRule value.
     */
    @Generated
    public RouterRuleInternal getPrioritizationRule() {
        return this.prioritizationRule;
    }

    /**
     * Set the prioritizationRule property: A rule to determine a priority score for a job.
     *
     * @param prioritizationRule the prioritizationRule value to set.
     * @return the ClassificationPolicyInternal object itself.
     */
    @Generated
    public ClassificationPolicyInternal setPrioritizationRule(RouterRuleInternal prioritizationRule) {
        this.prioritizationRule = prioritizationRule;
        return this;
    }

    /**
     * Get the workerSelectorAttachments property: Worker selector attachments used to attach worker selectors to a
     * job.
     *
     * @return the workerSelectorAttachments value.
     */
    @Generated
    public List getWorkerSelectorAttachments() {
        return this.workerSelectorAttachments;
    }

    /**
     * Set the workerSelectorAttachments property: Worker selector attachments used to attach worker selectors to a
     * job.
     *
     * @param workerSelectorAttachments the workerSelectorAttachments value to set.
     * @return the ClassificationPolicyInternal object itself.
     */
    @Generated
    public ClassificationPolicyInternal
        setWorkerSelectorAttachments(List workerSelectorAttachments) {
        this.workerSelectorAttachments = workerSelectorAttachments;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy