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

com.atlassian.bamboo.specs.builders.notification.UserRecipient 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.UserRecipientProperties;
import org.jetbrains.annotations.NotNull;

/**
 * Represents a user Bamboo can send notifications to.
 */
public class UserRecipient extends NotificationRecipient {
    private String userName;

    public UserRecipient(String userName) {
        ImporterUtils.checkNotBlank("userName", userName);
        this.userName = userName;
    }

    @NotNull
    @Override
    protected UserRecipientProperties build() {
        return new UserRecipientProperties(userName);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy