com.azure.communication.jobrouter.implementation.models.PassThroughQueueSelectorAttachmentInternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-jobrouter Show documentation
Show all versions of azure-communication-jobrouter Show documentation
This package contains a Java SDK for JobRouter Azure Communication Service.
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.communication.jobrouter.models.LabelOperator;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* Attaches a queue selector where the value is passed through from a job's label with the same key.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("passThrough")
@Immutable
public final class PassThroughQueueSelectorAttachmentInternal extends QueueSelectorAttachmentInternal {
/*
* The label key to query against.
*/
@Generated
@JsonProperty(value = "key")
private String key;
/*
* Describes how the value of the label is compared to the value pass through.
*/
@Generated
@JsonProperty(value = "labelOperator")
private LabelOperator labelOperator;
/**
* Creates an instance of PassThroughQueueSelectorAttachmentInternal class.
*
* @param key the key value to set.
* @param labelOperator the labelOperator value to set.
*/
@Generated
@JsonCreator
public PassThroughQueueSelectorAttachmentInternal(@JsonProperty(value = "key") String key,
@JsonProperty(value = "labelOperator") LabelOperator labelOperator) {
this.key = key;
this.labelOperator = labelOperator;
}
/**
* Get the key property: The label key to query against.
*
* @return the key value.
*/
@Generated
public String getKey() {
return this.key;
}
/**
* Get the labelOperator property: Describes how the value of the label is compared to the value pass through.
*
* @return the labelOperator value.
*/
@Generated
public LabelOperator getLabelOperator() {
return this.labelOperator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy