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

com.pulumi.azurenative.insights.outputs.EmailReceiverResponse 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.insights.outputs;

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

@CustomType
public final class EmailReceiverResponse {
    /**
     * @return The email address of this receiver.
     * 
     */
    private String emailAddress;
    /**
     * @return The name of the email receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    private String name;
    /**
     * @return The receiver status of the e-mail.
     * 
     */
    private String status;
    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    private @Nullable Boolean useCommonAlertSchema;

    private EmailReceiverResponse() {}
    /**
     * @return The email address of this receiver.
     * 
     */
    public String emailAddress() {
        return this.emailAddress;
    }
    /**
     * @return The name of the email receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The receiver status of the e-mail.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Indicates whether to use common alert schema.
     * 
     */
    public Optional useCommonAlertSchema() {
        return Optional.ofNullable(this.useCommonAlertSchema);
    }

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

    public static Builder builder(EmailReceiverResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String emailAddress;
        private String name;
        private String status;
        private @Nullable Boolean useCommonAlertSchema;
        public Builder() {}
        public Builder(EmailReceiverResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.emailAddress = defaults.emailAddress;
    	      this.name = defaults.name;
    	      this.status = defaults.status;
    	      this.useCommonAlertSchema = defaults.useCommonAlertSchema;
        }

        @CustomType.Setter
        public Builder emailAddress(String emailAddress) {
            if (emailAddress == null) {
              throw new MissingRequiredPropertyException("EmailReceiverResponse", "emailAddress");
            }
            this.emailAddress = emailAddress;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("EmailReceiverResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("EmailReceiverResponse", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder useCommonAlertSchema(@Nullable Boolean useCommonAlertSchema) {

            this.useCommonAlertSchema = useCommonAlertSchema;
            return this;
        }
        public EmailReceiverResponse build() {
            final var _resultValue = new EmailReceiverResponse();
            _resultValue.emailAddress = emailAddress;
            _resultValue.name = name;
            _resultValue.status = status;
            _resultValue.useCommonAlertSchema = useCommonAlertSchema;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy