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

com.pulumi.azurenative.alertsmanagement.inputs.PrometheusRuleGroupActionArgs Maven / Gradle / Ivy

The 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.alertsmanagement.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;


/**
 * An alert action. Only relevant for alerts.
 * 
 */
public final class PrometheusRuleGroupActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrometheusRuleGroupActionArgs Empty = new PrometheusRuleGroupActionArgs();

    /**
     * The resource id of the action group to use.
     * 
     */
    @Import(name="actionGroupId")
    private @Nullable Output actionGroupId;

    /**
     * @return The resource id of the action group to use.
     * 
     */
    public Optional> actionGroupId() {
        return Optional.ofNullable(this.actionGroupId);
    }

    /**
     * The properties of an action group object.
     * 
     */
    @Import(name="actionProperties")
    private @Nullable Output> actionProperties;

    /**
     * @return The properties of an action group object.
     * 
     */
    public Optional>> actionProperties() {
        return Optional.ofNullable(this.actionProperties);
    }

    private PrometheusRuleGroupActionArgs() {}

    private PrometheusRuleGroupActionArgs(PrometheusRuleGroupActionArgs $) {
        this.actionGroupId = $.actionGroupId;
        this.actionProperties = $.actionProperties;
    }

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

    public static final class Builder {
        private PrometheusRuleGroupActionArgs $;

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

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

        /**
         * @param actionGroupId The resource id of the action group to use.
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(@Nullable Output actionGroupId) {
            $.actionGroupId = actionGroupId;
            return this;
        }

        /**
         * @param actionGroupId The resource id of the action group to use.
         * 
         * @return builder
         * 
         */
        public Builder actionGroupId(String actionGroupId) {
            return actionGroupId(Output.of(actionGroupId));
        }

        /**
         * @param actionProperties The properties of an action group object.
         * 
         * @return builder
         * 
         */
        public Builder actionProperties(@Nullable Output> actionProperties) {
            $.actionProperties = actionProperties;
            return this;
        }

        /**
         * @param actionProperties The properties of an action group object.
         * 
         * @return builder
         * 
         */
        public Builder actionProperties(Map actionProperties) {
            return actionProperties(Output.of(actionProperties));
        }

        public PrometheusRuleGroupActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy