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

com.atlassian.bamboo.specs.api.builders.owner.PlanOwner Maven / Gradle / Ivy

There is a newer version: 2.1.11
Show newest version
package com.atlassian.bamboo.specs.api.builders.owner;

import com.atlassian.bamboo.specs.api.builders.plan.configuration.PluginConfiguration;
import com.atlassian.bamboo.specs.api.model.owner.PlanOwnerProperties;
import com.atlassian.bamboo.specs.api.model.plan.configuration.PluginConfigurationProperties;

/**
 * Define owner of the plan in question.
 * @author mkleint
 */
public class PlanOwner extends PluginConfiguration {

    public static final String OWNER_OF_PLAN = "custom.planownership.bamboo.plugin.plan.config.ownerOfBuild";

    private String owner;
    
    public PlanOwner() {
        
    }
    
    public PlanOwner(String owner) {
        this.owner = owner;
    }

    public PlanOwner owner(String owner) {
        this.owner = owner;
        return this;
    }
    
    
    @Override
    protected PluginConfigurationProperties build() {
        return new PlanOwnerProperties(owner);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy