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

com.pulumi.alicloud.cms.inputs.EventRuleContactParameterArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cms.inputs;

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


public final class EventRuleContactParameterArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventRuleContactParameterArgs Empty = new EventRuleContactParameterArgs();

    /**
     * The name of the alert contact group.
     * 
     */
    @Import(name="contactGroupName")
    private @Nullable Output contactGroupName;

    /**
     * @return The name of the alert contact group.
     * 
     */
    public Optional> contactGroupName() {
        return Optional.ofNullable(this.contactGroupName);
    }

    /**
     * The ID of the recipient that receives alert notifications.
     * 
     */
    @Import(name="contactParametersId")
    private @Nullable Output contactParametersId;

    /**
     * @return The ID of the recipient that receives alert notifications.
     * 
     */
    public Optional> contactParametersId() {
        return Optional.ofNullable(this.contactParametersId);
    }

    /**
     * The alert level and the corresponding notification methods.
     * 
     */
    @Import(name="level")
    private @Nullable Output level;

    /**
     * @return The alert level and the corresponding notification methods.
     * 
     */
    public Optional> level() {
        return Optional.ofNullable(this.level);
    }

    private EventRuleContactParameterArgs() {}

    private EventRuleContactParameterArgs(EventRuleContactParameterArgs $) {
        this.contactGroupName = $.contactGroupName;
        this.contactParametersId = $.contactParametersId;
        this.level = $.level;
    }

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

    public static final class Builder {
        private EventRuleContactParameterArgs $;

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

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

        /**
         * @param contactGroupName The name of the alert contact group.
         * 
         * @return builder
         * 
         */
        public Builder contactGroupName(@Nullable Output contactGroupName) {
            $.contactGroupName = contactGroupName;
            return this;
        }

        /**
         * @param contactGroupName The name of the alert contact group.
         * 
         * @return builder
         * 
         */
        public Builder contactGroupName(String contactGroupName) {
            return contactGroupName(Output.of(contactGroupName));
        }

        /**
         * @param contactParametersId The ID of the recipient that receives alert notifications.
         * 
         * @return builder
         * 
         */
        public Builder contactParametersId(@Nullable Output contactParametersId) {
            $.contactParametersId = contactParametersId;
            return this;
        }

        /**
         * @param contactParametersId The ID of the recipient that receives alert notifications.
         * 
         * @return builder
         * 
         */
        public Builder contactParametersId(String contactParametersId) {
            return contactParametersId(Output.of(contactParametersId));
        }

        /**
         * @param level The alert level and the corresponding notification methods.
         * 
         * @return builder
         * 
         */
        public Builder level(@Nullable Output level) {
            $.level = level;
            return this;
        }

        /**
         * @param level The alert level and the corresponding notification methods.
         * 
         * @return builder
         * 
         */
        public Builder level(String level) {
            return level(Output.of(level));
        }

        public EventRuleContactParameterArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy