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

com.pulumi.azurenative.insights.outputs.LogicAppReceiverResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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 LogicAppReceiverResponse {
    /**
     * @return The callback url where http request sent to.
     * 
     */
    private String callbackUrl;
    /**
     * @return The name of the logic app receiver. Names must be unique across all receivers within an action group.
     * 
     */
    private String name;
    /**
     * @return The azure resource id of the logic app receiver.
     * 
     */
    private String resourceId;
    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    private @Nullable Boolean useCommonAlertSchema;

    private LogicAppReceiverResponse() {}
    /**
     * @return The callback url where http request sent to.
     * 
     */
    public String callbackUrl() {
        return this.callbackUrl;
    }
    /**
     * @return The name of the logic app receiver. Names must be unique across all receivers within an action group.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The azure resource id of the logic app receiver.
     * 
     */
    public String resourceId() {
        return this.resourceId;
    }
    /**
     * @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(LogicAppReceiverResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String callbackUrl;
        private String name;
        private String resourceId;
        private @Nullable Boolean useCommonAlertSchema;
        public Builder() {}
        public Builder(LogicAppReceiverResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.callbackUrl = defaults.callbackUrl;
    	      this.name = defaults.name;
    	      this.resourceId = defaults.resourceId;
    	      this.useCommonAlertSchema = defaults.useCommonAlertSchema;
        }

        @CustomType.Setter
        public Builder callbackUrl(String callbackUrl) {
            if (callbackUrl == null) {
              throw new MissingRequiredPropertyException("LogicAppReceiverResponse", "callbackUrl");
            }
            this.callbackUrl = callbackUrl;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("LogicAppReceiverResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder resourceId(String resourceId) {
            if (resourceId == null) {
              throw new MissingRequiredPropertyException("LogicAppReceiverResponse", "resourceId");
            }
            this.resourceId = resourceId;
            return this;
        }
        @CustomType.Setter
        public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {

            this.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }
        public LogicAppReceiverResponse build() {
            final var _resultValue = new LogicAppReceiverResponse();
            _resultValue.callbackUrl = callbackUrl;
            _resultValue.name = name;
            _resultValue.resourceId = resourceId;
            _resultValue.useCommonAlertSchema = useCommonAlertSchema;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy