com.microsoft.azure.management.monitor.AzureFunctionReceiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.
*/
public class AzureFunctionReceiver {
/**
* 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.
*/
@JsonProperty(value = "functionAppResourceId", required = true)
private String functionAppResourceId;
/**
* The function name in the function app.
*/
@JsonProperty(value = "functionName", required = true)
private String functionName;
/**
* The http trigger url where http request sent to.
*/
@JsonProperty(value = "httpTriggerUrl", required = true)
private String httpTriggerUrl;
/**
* 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.
*
* @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.
*
* @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.
*
* @return the functionAppResourceId value
*/
public String functionAppResourceId() {
return this.functionAppResourceId;
}
/**
* 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.
*
* @return the functionName value
*/
public String functionName() {
return this.functionName;
}
/**
* 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.
*
* @return the httpTriggerUrl value
*/
public String httpTriggerUrl() {
return this.httpTriggerUrl;
}
/**
* 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.
*
* @return the useCommonAlertSchema value
*/
public boolean useCommonAlertSchema() {
return this.useCommonAlertSchema;
}
/**
* 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;
}
}