// 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.Immutable;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** An attachment which attaches worker selectors to a job. */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "kind",
        defaultImpl = WorkerSelectorAttachmentInternal.class)
@JsonTypeName("WorkerSelectorAttachmentInternal")
@JsonSubTypes({
    @JsonSubTypes.Type(name = "conditional", value = ConditionalWorkerSelectorAttachmentInternal.class),
    @JsonSubTypes.Type(name = "pass-through", value = PassThroughWorkerSelectorAttachmentInternal.class),
    @JsonSubTypes.Type(name = "rule-engine", value = RuleEngineWorkerSelectorAttachmentInternal.class),
    @JsonSubTypes.Type(name = "static", value = StaticWorkerSelectorAttachmentInternal.class),
    @JsonSubTypes.Type(
            name = "weighted-allocation-worker-selector",
            value = WeightedAllocationWorkerSelectorAttachmentInternal.class)
})
@Immutable
public class WorkerSelectorAttachmentInternal {
    /** Creates an instance of WorkerSelectorAttachmentInternal class. */
    public WorkerSelectorAttachmentInternal() {}
}
