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

com.pulumi.azurenative.machinelearningservices.outputs.NotificationSettingResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurenative.machinelearningservices.outputs;

import com.pulumi.azurenative.machinelearningservices.outputs.AzureDevOpsWebhookResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class NotificationSettingResponse {
    /**
     * @return Send email notification to user on specified notification type
     * 
     */
    private @Nullable List emailOn;
    /**
     * @return This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
     * 
     */
    private @Nullable List emails;
    /**
     * @return Send webhook callback to a service. Key is a user-provided name for the webhook.
     * 
     */
    private @Nullable Map webhooks;

    private NotificationSettingResponse() {}
    /**
     * @return Send email notification to user on specified notification type
     * 
     */
    public List emailOn() {
        return this.emailOn == null ? List.of() : this.emailOn;
    }
    /**
     * @return This is the email recipient list which has a limitation of 499 characters in total concat with comma separator
     * 
     */
    public List emails() {
        return this.emails == null ? List.of() : this.emails;
    }
    /**
     * @return Send webhook callback to a service. Key is a user-provided name for the webhook.
     * 
     */
    public Map webhooks() {
        return this.webhooks == null ? Map.of() : this.webhooks;
    }

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

    public static Builder builder(NotificationSettingResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List emailOn;
        private @Nullable List emails;
        private @Nullable Map webhooks;
        public Builder() {}
        public Builder(NotificationSettingResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.emailOn = defaults.emailOn;
    	      this.emails = defaults.emails;
    	      this.webhooks = defaults.webhooks;
        }

        @CustomType.Setter
        public Builder emailOn(@Nullable List emailOn) {

            this.emailOn = emailOn;
            return this;
        }
        public Builder emailOn(String... emailOn) {
            return emailOn(List.of(emailOn));
        }
        @CustomType.Setter
        public Builder emails(@Nullable List emails) {

            this.emails = emails;
            return this;
        }
        public Builder emails(String... emails) {
            return emails(List.of(emails));
        }
        @CustomType.Setter
        public Builder webhooks(@Nullable Map webhooks) {

            this.webhooks = webhooks;
            return this;
        }
        public NotificationSettingResponse build() {
            final var _resultValue = new NotificationSettingResponse();
            _resultValue.emailOn = emailOn;
            _resultValue.emails = emails;
            _resultValue.webhooks = webhooks;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy