com.azure.communication.jobrouter.models.StaticWorkerSelectorAttachment 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) 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