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

com.pulumi.azurenative.costmanagement.outputs.NotificationPropertiesResponse 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.costmanagement.outputs;

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

@CustomType
public final class NotificationPropertiesResponse {
    /**
     * @return Locale of the email.
     * 
     */
    private @Nullable String language;
    /**
     * @return Optional message to be added in the email. Length is limited to 250 characters.
     * 
     */
    private @Nullable String message;
    /**
     * @return Regional format used for formatting date/time and currency values in the email.
     * 
     */
    private @Nullable String regionalFormat;
    /**
     * @return Subject of the email. Length is limited to 70 characters.
     * 
     */
    private String subject;
    /**
     * @return Array of email addresses.
     * 
     */
    private List to;

    private NotificationPropertiesResponse() {}
    /**
     * @return Locale of the email.
     * 
     */
    public Optional language() {
        return Optional.ofNullable(this.language);
    }
    /**
     * @return Optional message to be added in the email. Length is limited to 250 characters.
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return Regional format used for formatting date/time and currency values in the email.
     * 
     */
    public Optional regionalFormat() {
        return Optional.ofNullable(this.regionalFormat);
    }
    /**
     * @return Subject of the email. Length is limited to 70 characters.
     * 
     */
    public String subject() {
        return this.subject;
    }
    /**
     * @return Array of email addresses.
     * 
     */
    public List to() {
        return this.to;
    }

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

    public static Builder builder(NotificationPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String language;
        private @Nullable String message;
        private @Nullable String regionalFormat;
        private String subject;
        private List to;
        public Builder() {}
        public Builder(NotificationPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.language = defaults.language;
    	      this.message = defaults.message;
    	      this.regionalFormat = defaults.regionalFormat;
    	      this.subject = defaults.subject;
    	      this.to = defaults.to;
        }

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

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

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

            this.regionalFormat = regionalFormat;
            return this;
        }
        @CustomType.Setter
        public Builder subject(String subject) {
            if (subject == null) {
              throw new MissingRequiredPropertyException("NotificationPropertiesResponse", "subject");
            }
            this.subject = subject;
            return this;
        }
        @CustomType.Setter
        public Builder to(List to) {
            if (to == null) {
              throw new MissingRequiredPropertyException("NotificationPropertiesResponse", "to");
            }
            this.to = to;
            return this;
        }
        public Builder to(String... to) {
            return to(List.of(to));
        }
        public NotificationPropertiesResponse build() {
            final var _resultValue = new NotificationPropertiesResponse();
            _resultValue.language = language;
            _resultValue.message = message;
            _resultValue.regionalFormat = regionalFormat;
            _resultValue.subject = subject;
            _resultValue.to = to;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy