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

com.pulumi.azurenative.devtestlab.outputs.NotificationSettingsResponse Maven / Gradle / Ivy

// *** 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.devtestlab.outputs;

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

@CustomType
public final class NotificationSettingsResponse {
    /**
     * @return The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
     * 
     */
    private @Nullable String emailRecipient;
    /**
     * @return The locale to use when sending a notification (fallback for unsupported languages is EN).
     * 
     */
    private @Nullable String notificationLocale;
    /**
     * @return If notifications are enabled for this schedule (i.e. Enabled, Disabled).
     * 
     */
    private @Nullable String status;
    /**
     * @return Time in minutes before event at which notification will be sent.
     * 
     */
    private @Nullable Integer timeInMinutes;
    /**
     * @return The webhook URL to which the notification will be sent.
     * 
     */
    private @Nullable String webhookUrl;

    private NotificationSettingsResponse() {}
    /**
     * @return The email recipient to send notifications to (can be a list of semi-colon separated email addresses).
     * 
     */
    public Optional emailRecipient() {
        return Optional.ofNullable(this.emailRecipient);
    }
    /**
     * @return The locale to use when sending a notification (fallback for unsupported languages is EN).
     * 
     */
    public Optional notificationLocale() {
        return Optional.ofNullable(this.notificationLocale);
    }
    /**
     * @return If notifications are enabled for this schedule (i.e. Enabled, Disabled).
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return Time in minutes before event at which notification will be sent.
     * 
     */
    public Optional timeInMinutes() {
        return Optional.ofNullable(this.timeInMinutes);
    }
    /**
     * @return The webhook URL to which the notification will be sent.
     * 
     */
    public Optional webhookUrl() {
        return Optional.ofNullable(this.webhookUrl);
    }

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

    public static Builder builder(NotificationSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String emailRecipient;
        private @Nullable String notificationLocale;
        private @Nullable String status;
        private @Nullable Integer timeInMinutes;
        private @Nullable String webhookUrl;
        public Builder() {}
        public Builder(NotificationSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.emailRecipient = defaults.emailRecipient;
    	      this.notificationLocale = defaults.notificationLocale;
    	      this.status = defaults.status;
    	      this.timeInMinutes = defaults.timeInMinutes;
    	      this.webhookUrl = defaults.webhookUrl;
        }

        @CustomType.Setter
        public Builder emailRecipient(@Nullable String emailRecipient) {

            this.emailRecipient = emailRecipient;
            return this;
        }
        @CustomType.Setter
        public Builder notificationLocale(@Nullable String notificationLocale) {

            this.notificationLocale = notificationLocale;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder timeInMinutes(@Nullable Integer timeInMinutes) {

            this.timeInMinutes = timeInMinutes;
            return this;
        }
        @CustomType.Setter
        public Builder webhookUrl(@Nullable String webhookUrl) {

            this.webhookUrl = webhookUrl;
            return this;
        }
        public NotificationSettingsResponse build() {
            final var _resultValue = new NotificationSettingsResponse();
            _resultValue.emailRecipient = emailRecipient;
            _resultValue.notificationLocale = notificationLocale;
            _resultValue.status = status;
            _resultValue.timeInMinutes = timeInMinutes;
            _resultValue.webhookUrl = webhookUrl;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy