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

com.atlassian.bamboo.specs.builders.notification.EmailRecipient Maven / Gradle / Ivy

There is a newer version: 10.1.0
Show newest version
package com.atlassian.bamboo.specs.builders.notification;

import com.atlassian.bamboo.specs.api.builders.notification.NotificationRecipient;
import com.atlassian.bamboo.specs.api.validators.common.ImporterUtils;
import com.atlassian.bamboo.specs.model.notification.EmailRecipientProperties;
import org.jetbrains.annotations.NotNull;

/**
 * Represents email address Bamboo can send notifications to.
 */
public class EmailRecipient extends NotificationRecipient {
    private String email;

    public EmailRecipient(String email) {
        ImporterUtils.checkNotBlank("email", email);
        this.email = email;
    }

    @NotNull
    @Override
    protected EmailRecipientProperties build() {
        return new EmailRecipientProperties(email);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy