Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.monitor;
import com.fasterxml.jackson.annotation.JsonProperty;
An azure function receiver.
/**
* An azure function receiver.
*/
public class AzureFunctionReceiver {
The name of the azure function receiver. Names must be unique across all
receivers within an action group.
/**
* The name of the azure function receiver. Names must be unique across all
* receivers within an action group.
*/
@JsonProperty(value = "name", required = true)
private String name;
The azure resource id of the function app.
/**
* The azure resource id of the function app.
*/
@JsonProperty(value = "functionAppResourceId", required = true)
private String functionAppResourceId;
The function name in the function app.
/**
* The function name in the function app.
*/
@JsonProperty(value = "functionName", required = true)
private String functionName;
The http trigger url where http request sent to.
/**
* The http trigger url where http request sent to.
*/
@JsonProperty(value = "httpTriggerUrl", required = true)
private String httpTriggerUrl;
Indicates whether to use common alert schema.
/**
* Indicates whether to use common alert schema.
*/
@JsonProperty(value = "useCommonAlertSchema", required = true)
private boolean useCommonAlertSchema;
Get the name of the azure function receiver. Names must be unique across all receivers within an action group.
Returns: the name value
/**
* Get the name of the azure function receiver. Names must be unique across all receivers within an action group.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set the name of the azure function receiver. Names must be unique across all receivers within an action group.
Params: - name – the name value to set
Returns: the AzureFunctionReceiver object itself.
/**
* Set the name of the azure function receiver. Names must be unique across all receivers within an action group.
*
* @param name the name value to set
* @return the AzureFunctionReceiver object itself.
*/
public AzureFunctionReceiver withName(String name) {
this.name = name;
return this;
}
Get the azure resource id of the function app.
Returns: the functionAppResourceId value
/**
* Get the azure resource id of the function app.
*
* @return the functionAppResourceId value
*/
public String functionAppResourceId() {
return this.functionAppResourceId;
}
Set the azure resource id of the function app.
Params: - functionAppResourceId – the functionAppResourceId value to set
Returns: the AzureFunctionReceiver object itself.
/**
* Set the azure resource id of the function app.
*
* @param functionAppResourceId the functionAppResourceId value to set
* @return the AzureFunctionReceiver object itself.
*/
public AzureFunctionReceiver withFunctionAppResourceId(String functionAppResourceId) {
this.functionAppResourceId = functionAppResourceId;
return this;
}
Get the function name in the function app.
Returns: the functionName value
/**
* Get the function name in the function app.
*
* @return the functionName value
*/
public String functionName() {
return this.functionName;
}
Set the function name in the function app.
Params: - functionName – the functionName value to set
Returns: the AzureFunctionReceiver object itself.
/**
* Set the function name in the function app.
*
* @param functionName the functionName value to set
* @return the AzureFunctionReceiver object itself.
*/
public AzureFunctionReceiver withFunctionName(String functionName) {
this.functionName = functionName;
return this;
}
Get the http trigger url where http request sent to.
Returns: the httpTriggerUrl value
/**
* Get the http trigger url where http request sent to.
*
* @return the httpTriggerUrl value
*/
public String httpTriggerUrl() {
return this.httpTriggerUrl;
}
Set the http trigger url where http request sent to.
Params: - httpTriggerUrl – the httpTriggerUrl value to set
Returns: the AzureFunctionReceiver object itself.
/**
* Set the http trigger url where http request sent to.
*
* @param httpTriggerUrl the httpTriggerUrl value to set
* @return the AzureFunctionReceiver object itself.
*/
public AzureFunctionReceiver withHttpTriggerUrl(String httpTriggerUrl) {
this.httpTriggerUrl = httpTriggerUrl;
return this;
}
Get indicates whether to use common alert schema.
Returns: the useCommonAlertSchema value
/**
* Get indicates whether to use common alert schema.
*
* @return the useCommonAlertSchema value
*/
public boolean useCommonAlertSchema() {
return this.useCommonAlertSchema;
}
Set indicates whether to use common alert schema.
Params: - useCommonAlertSchema – the useCommonAlertSchema value to set
Returns: the AzureFunctionReceiver object itself.
/**
* Set indicates whether to use common alert schema.
*
* @param useCommonAlertSchema the useCommonAlertSchema value to set
* @return the AzureFunctionReceiver object itself.
*/
public AzureFunctionReceiver withUseCommonAlertSchema(boolean useCommonAlertSchema) {
this.useCommonAlertSchema = useCommonAlertSchema;
return this;
}
}