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

com.azure.communication.jobrouter.models.StaticWorkerSelectorAttachment Maven / Gradle / Ivy

The newest version!
// 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.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;

/** Describes a worker selector that will be attached to the job. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("static")
@Immutable
public final class StaticWorkerSelectorAttachment extends WorkerSelectorAttachment {

    /*
     * Describes a condition that must be met against a set of labels for worker
     * selection
     */
    @Generated
    @JsonProperty(value = "workerSelector")
    private RouterWorkerSelector workerSelector;

    /**
     * Creates an instance of StaticWorkerSelectorAttachment class.
     *
     * @param workerSelector the workerSelector value to set.
     */
    @Generated
    @JsonCreator
    public StaticWorkerSelectorAttachment(@JsonProperty(value = "workerSelector") RouterWorkerSelector workerSelector) {
        this.workerSelector = workerSelector;
    }

    /**
     * Get the workerSelector property: Describes a condition that must be met against a set of labels for worker
     * selection.
     *
     * @return the workerSelector value.
     */
    @Generated
    public RouterWorkerSelector getWorkerSelector() {
        return this.workerSelector;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy