com.hp.octane.integrations.dto.pipelines.impl.PipelineNodeImpl Maven / Gradle / Ivy
/*
* Copyright 2017 EntIT Software LLC, a Micro Focus company, L.P.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.hp.octane.integrations.dto.pipelines.impl;
import com.hp.octane.integrations.dto.events.MultiBranchType;
import com.hp.octane.integrations.dto.parameters.CIParameter;
import com.hp.octane.integrations.dto.pipelines.PipelineNode;
import com.hp.octane.integrations.dto.pipelines.PipelinePhase;
import java.util.ArrayList;
import java.util.List;
/**
* PipelineNode DTO implementation.
*/
class PipelineNodeImpl implements PipelineNode {
private String jobCiId;
private String name;
private MultiBranchType multiBranchType;
private List parameters = new ArrayList<>();
private List phasesInternal = new ArrayList<>();
private List phasesPostBuild = new ArrayList<>();
private Boolean hasUpstream;
private Boolean isTestRunner;
private String defaultBranchName;
public String getJobCiId() {
return jobCiId;
}
public PipelineNode setJobCiId(String jobCiId) {
this.jobCiId = jobCiId;
return this;
}
public String getName() {
return name;
}
public PipelineNode setName(String name) {
this.name = name;
return this;
}
public List getParameters() {
return parameters;
}
public PipelineNode setParameters(List parameters) {
this.parameters = parameters;
return this;
}
public List getPhasesInternal() {
return phasesInternal;
}
public PipelineNode setPhasesInternal(List phasesInternal) {
this.phasesInternal = phasesInternal;
return this;
}
public List getPhasesPostBuild() {
return phasesPostBuild;
}
public PipelineNode setPhasesPostBuild(List phasesPostBuild) {
this.phasesPostBuild = phasesPostBuild;
return this;
}
@Override
public MultiBranchType getMultiBranchType() {
return multiBranchType;
}
@Override
public PipelineNode setMultiBranchType(MultiBranchType multiBranchType) {
this.multiBranchType = multiBranchType;
return this;
}
@Override
public Boolean getHasUpstream() {
return hasUpstream;
}
@Override
public PipelineNode setHasUpstream(Boolean hasUpstream) {
this.hasUpstream = hasUpstream;
return this;
}
@Override
public Boolean getIsTestRunner() {
return isTestRunner;
}
@Override
public PipelineNode setIsTestRunner(Boolean isTestRunner) {
this.isTestRunner = isTestRunner;
return this;
}
@Override
public String getDefaultBranchName() {
return defaultBranchName;
}
@Override
public PipelineNode setDefaultBranchName(String defaultBranchName) {
this.defaultBranchName = defaultBranchName;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy