com.azure.communication.jobrouter.implementation.models.RuleEngineWorkerSelectorAttachmentInternal 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.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 worker selectors to a job when a RouterRule is resolved.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("ruleEngine")
@Immutable
public final class RuleEngineWorkerSelectorAttachmentInternal extends WorkerSelectorAttachmentInternal {
/*
* A RouterRule that resolves a collection of worker selectors to attach.
*/
@Generated
@JsonProperty(value = "rule")
private RouterRuleInternal rule;
/**
* Creates an instance of RuleEngineWorkerSelectorAttachmentInternal class.
*
* @param rule the rule value to set.
*/
@Generated
@JsonCreator
public RuleEngineWorkerSelectorAttachmentInternal(@JsonProperty(value = "rule") RouterRuleInternal rule) {
this.rule = rule;
}
/**
* Get the rule property: A RouterRule that resolves a collection of worker selectors to attach.
*
* @return the rule value.
*/
@Generated
public RouterRuleInternal getRule() {
return this.rule;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy