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

com.pulumi.azure.dashboard.inputs.GrafanaSmtpArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.dashboard.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final GrafanaSmtpArgs Empty = new GrafanaSmtpArgs();

    /**
     * Whether to enable the smtp setting of the Grafana instance. Defaults to `false`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether to enable the smtp setting of the Grafana instance. Defaults to `false`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Address used when sending emails.
     * 
     */
    @Import(name="fromAddress", required=true)
    private Output fromAddress;

    /**
     * @return Address used when sending emails.
     * 
     */
    public Output fromAddress() {
        return this.fromAddress;
    }

    /**
     * Name used when sending emails. Defaults to `Azure Managed Grafana Notification`.
     * 
     */
    @Import(name="fromName")
    private @Nullable Output fromName;

    /**
     * @return Name used when sending emails. Defaults to `Azure Managed Grafana Notification`.
     * 
     */
    public Optional> fromName() {
        return Optional.ofNullable(this.fromName);
    }

    /**
     * SMTP server hostname with port, e.g. test.email.net:587
     * 
     */
    @Import(name="host", required=true)
    private Output host;

    /**
     * @return SMTP server hostname with port, e.g. test.email.net:587
     * 
     */
    public Output host() {
        return this.host;
    }

    /**
     * Password of SMTP authentication.
     * 
     */
    @Import(name="password", required=true)
    private Output password;

    /**
     * @return Password of SMTP authentication.
     * 
     */
    public Output password() {
        return this.password;
    }

    /**
     * Whether to use TLS when connecting to SMTP server. Possible values are `OpportunisticStartTLS`, `NoStartTLS`, `MandatoryStartTLS`.
     * 
     */
    @Import(name="startTlsPolicy", required=true)
    private Output startTlsPolicy;

    /**
     * @return Whether to use TLS when connecting to SMTP server. Possible values are `OpportunisticStartTLS`, `NoStartTLS`, `MandatoryStartTLS`.
     * 
     */
    public Output startTlsPolicy() {
        return this.startTlsPolicy;
    }

    /**
     * User of SMTP authentication.
     * 
     */
    @Import(name="user", required=true)
    private Output user;

    /**
     * @return User of SMTP authentication.
     * 
     */
    public Output user() {
        return this.user;
    }

    /**
     * Whether verify SSL for SMTP server. Defaults to `false`.
     * 
     */
    @Import(name="verificationSkipEnabled")
    private @Nullable Output verificationSkipEnabled;

    /**
     * @return Whether verify SSL for SMTP server. Defaults to `false`.
     * 
     */
    public Optional> verificationSkipEnabled() {
        return Optional.ofNullable(this.verificationSkipEnabled);
    }

    private GrafanaSmtpArgs() {}

    private GrafanaSmtpArgs(GrafanaSmtpArgs $) {
        this.enabled = $.enabled;
        this.fromAddress = $.fromAddress;
        this.fromName = $.fromName;
        this.host = $.host;
        this.password = $.password;
        this.startTlsPolicy = $.startTlsPolicy;
        this.user = $.user;
        this.verificationSkipEnabled = $.verificationSkipEnabled;
    }

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

    public static final class Builder {
        private GrafanaSmtpArgs $;

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

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

        /**
         * @param enabled Whether to enable the smtp setting of the Grafana instance. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to enable the smtp setting of the Grafana instance. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param fromAddress Address used when sending emails.
         * 
         * @return builder
         * 
         */
        public Builder fromAddress(Output fromAddress) {
            $.fromAddress = fromAddress;
            return this;
        }

        /**
         * @param fromAddress Address used when sending emails.
         * 
         * @return builder
         * 
         */
        public Builder fromAddress(String fromAddress) {
            return fromAddress(Output.of(fromAddress));
        }

        /**
         * @param fromName Name used when sending emails. Defaults to `Azure Managed Grafana Notification`.
         * 
         * @return builder
         * 
         */
        public Builder fromName(@Nullable Output fromName) {
            $.fromName = fromName;
            return this;
        }

        /**
         * @param fromName Name used when sending emails. Defaults to `Azure Managed Grafana Notification`.
         * 
         * @return builder
         * 
         */
        public Builder fromName(String fromName) {
            return fromName(Output.of(fromName));
        }

        /**
         * @param host SMTP server hostname with port, e.g. test.email.net:587
         * 
         * @return builder
         * 
         */
        public Builder host(Output host) {
            $.host = host;
            return this;
        }

        /**
         * @param host SMTP server hostname with port, e.g. test.email.net:587
         * 
         * @return builder
         * 
         */
        public Builder host(String host) {
            return host(Output.of(host));
        }

        /**
         * @param password Password of SMTP authentication.
         * 
         * @return builder
         * 
         */
        public Builder password(Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password of SMTP authentication.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param startTlsPolicy Whether to use TLS when connecting to SMTP server. Possible values are `OpportunisticStartTLS`, `NoStartTLS`, `MandatoryStartTLS`.
         * 
         * @return builder
         * 
         */
        public Builder startTlsPolicy(Output startTlsPolicy) {
            $.startTlsPolicy = startTlsPolicy;
            return this;
        }

        /**
         * @param startTlsPolicy Whether to use TLS when connecting to SMTP server. Possible values are `OpportunisticStartTLS`, `NoStartTLS`, `MandatoryStartTLS`.
         * 
         * @return builder
         * 
         */
        public Builder startTlsPolicy(String startTlsPolicy) {
            return startTlsPolicy(Output.of(startTlsPolicy));
        }

        /**
         * @param user User of SMTP authentication.
         * 
         * @return builder
         * 
         */
        public Builder user(Output user) {
            $.user = user;
            return this;
        }

        /**
         * @param user User of SMTP authentication.
         * 
         * @return builder
         * 
         */
        public Builder user(String user) {
            return user(Output.of(user));
        }

        /**
         * @param verificationSkipEnabled Whether verify SSL for SMTP server. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder verificationSkipEnabled(@Nullable Output verificationSkipEnabled) {
            $.verificationSkipEnabled = verificationSkipEnabled;
            return this;
        }

        /**
         * @param verificationSkipEnabled Whether verify SSL for SMTP server. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder verificationSkipEnabled(Boolean verificationSkipEnabled) {
            return verificationSkipEnabled(Output.of(verificationSkipEnabled));
        }

        public GrafanaSmtpArgs build() {
            if ($.fromAddress == null) {
                throw new MissingRequiredPropertyException("GrafanaSmtpArgs", "fromAddress");
            }
            if ($.host == null) {
                throw new MissingRequiredPropertyException("GrafanaSmtpArgs", "host");
            }
            if ($.password == null) {
                throw new MissingRequiredPropertyException("GrafanaSmtpArgs", "password");
            }
            if ($.startTlsPolicy == null) {
                throw new MissingRequiredPropertyException("GrafanaSmtpArgs", "startTlsPolicy");
            }
            if ($.user == null) {
                throw new MissingRequiredPropertyException("GrafanaSmtpArgs", "user");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy