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

com.pulumi.azurenative.insights.inputs.RuleWebhookActionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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 com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.
 * 
 */
public final class RuleWebhookActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RuleWebhookActionArgs Empty = new RuleWebhookActionArgs();

    /**
     * specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
     * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

    /**
     * @return specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
     * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction'.
     * 
     */
    public Output odataType() {
        return this.odataType;
    }

    /**
     * the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * the service uri to Post the notification when the alert activates or resolves.
     * 
     */
    @Import(name="serviceUri")
    private @Nullable Output serviceUri;

    /**
     * @return the service uri to Post the notification when the alert activates or resolves.
     * 
     */
    public Optional> serviceUri() {
        return Optional.ofNullable(this.serviceUri);
    }

    private RuleWebhookActionArgs() {}

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

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

    public static final class Builder {
        private RuleWebhookActionArgs $;

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

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

        /**
         * @param odataType specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
         * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

        /**
         * @param odataType specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction.
         * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(String odataType) {
            return odataType(Output.of(odataType));
        }

        /**
         * @param properties the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param serviceUri the service uri to Post the notification when the alert activates or resolves.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(@Nullable Output serviceUri) {
            $.serviceUri = serviceUri;
            return this;
        }

        /**
         * @param serviceUri the service uri to Post the notification when the alert activates or resolves.
         * 
         * @return builder
         * 
         */
        public Builder serviceUri(String serviceUri) {
            return serviceUri(Output.of(serviceUri));
        }

        public RuleWebhookActionArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy