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

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

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.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Credentials used to access Azure function rule.
 */
@Fluent
public final class FunctionRouterRuleCredential {

    /*
     * Access key scoped to a particular function.
     */
    @Generated
    @JsonProperty(value = "functionKey")
    private String functionKey;

    /*
     * Access key scoped to a Azure Function app. This key grants access to all functions under the app.
     */
    @Generated
    @JsonProperty(value = "appKey")
    private String appKey;

    /*
     * Client id, when AppKey is provided In context of Azure function, this is usually the name of the key.
     */
    @Generated
    @JsonProperty(value = "clientId")
    private String clientId;

    /**
     * Creates an instance of FunctionRouterRuleCredential class.
     */
    @Generated
    public FunctionRouterRuleCredential() {
    }

    /**
     * Get the functionKey property: Access key scoped to a particular function.
     *
     * @return the functionKey value.
     */
    @Generated
    public String getFunctionKey() {
        return this.functionKey;
    }

    /**
     * Set the functionKey property: Access key scoped to a particular function.
     *
     * @param functionKey the functionKey value to set.
     * @return the FunctionRouterRuleCredential object itself.
     */
    @Generated
    public FunctionRouterRuleCredential setFunctionKey(String functionKey) {
        this.functionKey = functionKey;
        return this;
    }

    /**
     * Get the appKey property: Access key scoped to a Azure Function app. This key grants access to all functions
     * under the app.
     *
     * @return the appKey value.
     */
    @Generated
    public String getAppKey() {
        return this.appKey;
    }

    /**
     * Set the appKey property: Access key scoped to a Azure Function app. This key grants access to all functions
     * under the app.
     *
     * @param appKey the appKey value to set.
     * @return the FunctionRouterRuleCredential object itself.
     */
    @Generated
    public FunctionRouterRuleCredential setAppKey(String appKey) {
        this.appKey = appKey;
        return this;
    }

    /**
     * Get the clientId property: Client id, when AppKey is provided In context of Azure function, this is usually the
     * name of the key.
     *
     * @return the clientId value.
     */
    @Generated
    public String getClientId() {
        return this.clientId;
    }

    /**
     * Set the clientId property: Client id, when AppKey is provided In context of Azure function, this is usually the
     * name of the key.
     *
     * @param clientId the clientId value to set.
     * @return the FunctionRouterRuleCredential object itself.
     */
    @Generated
    public FunctionRouterRuleCredential setClientId(String clientId) {
        this.clientId = clientId;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy