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

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


/**
 * Represents a group Bamboo can send notifications to.
 */
public class GroupRecipient extends NotificationRecipient {

    private String groupName;

    public GroupRecipient(@NotNull String groupName) {
        ImporterUtils.checkNotBlank("groupName", groupName);
        this.groupName = groupName;
    }

    @NotNull
    @Override
    protected GroupRecipientProperties build() {
        return new GroupRecipientProperties(groupName);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy