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

com.pulumi.azurenative.insights.inputs.WebhookNotificationArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Webhook notification of an autoscale event.
 * 
 */
public final class WebhookNotificationArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebhookNotificationArgs Empty = new WebhookNotificationArgs();

    /**
     * a property bag of settings. This value can be empty.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return a property bag of settings. This value can be empty.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * the service address to receive the notification.
     * 
     */
    @Import(name="serviceUri")
    private @Nullable Output serviceUri;

    /**
     * @return the service address to receive the notification.
     * 
     */
    public Optional> serviceUri() {
        return Optional.ofNullable(this.serviceUri);
    }

    private WebhookNotificationArgs() {}

    private WebhookNotificationArgs(WebhookNotificationArgs $) {
        this.properties = $.properties;
        this.serviceUri = $.serviceUri;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WebhookNotificationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WebhookNotificationArgs $;

        public Builder() {
            $ = new WebhookNotificationArgs();
        }

        public Builder(WebhookNotificationArgs defaults) {
            $ = new WebhookNotificationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param properties a property bag of settings. This value can be empty.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties a property bag of settings. This value can be empty.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param serviceUri the service address to receive the notification.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(@Nullable Output serviceUri) {
            $.serviceUri = serviceUri;
            return this;
        }

        /**
         * @param serviceUri the service address to receive the notification.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(String serviceUri) {
            return serviceUri(Output.of(serviceUri));
        }

        public WebhookNotificationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy