
com.pulumi.azurenative.insights.outputs.AzureFunctionReceiverResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.insights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AzureFunctionReceiverResponse {
/**
* @return The azure resource id of the function app.
*
*/
private String functionAppResourceId;
/**
* @return The function name in the function app.
*
*/
private String functionName;
/**
* @return The http trigger url where http request sent to.
*
*/
private String httpTriggerUrl;
/**
* @return The name of the azure function receiver. Names must be unique across all receivers within an action group.
*
*/
private String name;
/**
* @return Indicates whether to use common alert schema.
*
*/
private @Nullable Boolean useCommonAlertSchema;
private AzureFunctionReceiverResponse() {}
/**
* @return The azure resource id of the function app.
*
*/
public String functionAppResourceId() {
return this.functionAppResourceId;
}
/**
* @return The function name in the function app.
*
*/
public String functionName() {
return this.functionName;
}
/**
* @return The http trigger url where http request sent to.
*
*/
public String httpTriggerUrl() {
return this.httpTriggerUrl;
}
/**
* @return The name of the azure function receiver. Names must be unique across all receivers within an action group.
*
*/
public String name() {
return this.name;
}
/**
* @return Indicates whether to use common alert schema.
*
*/
public Optional useCommonAlertSchema() {
return Optional.ofNullable(this.useCommonAlertSchema);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AzureFunctionReceiverResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String functionAppResourceId;
private String functionName;
private String httpTriggerUrl;
private String name;
private @Nullable Boolean useCommonAlertSchema;
public Builder() {}
public Builder(AzureFunctionReceiverResponse defaults) {
Objects.requireNonNull(defaults);
this.functionAppResourceId = defaults.functionAppResourceId;
this.functionName = defaults.functionName;
this.httpTriggerUrl = defaults.httpTriggerUrl;
this.name = defaults.name;
this.useCommonAlertSchema = defaults.useCommonAlertSchema;
}
@CustomType.Setter
public Builder functionAppResourceId(String functionAppResourceId) {
if (functionAppResourceId == null) {
throw new MissingRequiredPropertyException("AzureFunctionReceiverResponse", "functionAppResourceId");
}
this.functionAppResourceId = functionAppResourceId;
return this;
}
@CustomType.Setter
public Builder functionName(String functionName) {
if (functionName == null) {
throw new MissingRequiredPropertyException("AzureFunctionReceiverResponse", "functionName");
}
this.functionName = functionName;
return this;
}
@CustomType.Setter
public Builder httpTriggerUrl(String httpTriggerUrl) {
if (httpTriggerUrl == null) {
throw new MissingRequiredPropertyException("AzureFunctionReceiverResponse", "httpTriggerUrl");
}
this.httpTriggerUrl = httpTriggerUrl;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("AzureFunctionReceiverResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {
this.useCommonAlertSchema = useCommonAlertSchema;
return this;
}
public AzureFunctionReceiverResponse build() {
final var _resultValue = new AzureFunctionReceiverResponse();
_resultValue.functionAppResourceId = functionAppResourceId;
_resultValue.functionName = functionName;
_resultValue.httpTriggerUrl = httpTriggerUrl;
_resultValue.name = name;
_resultValue.useCommonAlertSchema = useCommonAlertSchema;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy