
com.azure.communication.jobrouter.models.FunctionRouterRule Maven / Gradle / Ivy
// 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.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** A rule providing a binding to an HTTP Triggered Azure Function. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("function")
@Fluent
public final class FunctionRouterRule extends RouterRule {
/*
* URL for Azure Function
*/
@Generated
@JsonProperty(value = "functionUri")
private String functionUri;
/*
* Credentials used to access Azure function rule
*/
@Generated
@JsonProperty(value = "credential")
private FunctionRouterRuleCredential credential;
/**
* Creates an instance of FunctionRouterRule class.
*
* @param functionUri the functionUri value to set.
*/
@Generated
@JsonCreator
public FunctionRouterRule(@JsonProperty(value = "functionUri") String functionUri) {
this.functionUri = functionUri;
}
/**
* Get the functionUri property: URL for Azure Function.
*
* @return the functionUri value.
*/
@Generated
public String getFunctionUri() {
return this.functionUri;
}
/**
* Get the credential property: Credentials used to access Azure function rule.
*
* @return the credential value.
*/
@Generated
public FunctionRouterRuleCredential getCredential() {
return this.credential;
}
/**
* Set the credential property: Credentials used to access Azure function rule.
*
* @param credential the credential value to set.
* @return the FunctionRouterRule object itself.
*/
@Generated
public FunctionRouterRule setCredential(FunctionRouterRuleCredential credential) {
this.credential = credential;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy