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

annotations.io.fabric8.openshift.api.model.BuildFluent Maven / Gradle / Ivy

package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.kubernetes.api.model.base.ObjectReference;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.base.ObjectReferenceBuilder;
import io.fabric8.common.Fluent;
import io.fabric8.kubernetes.api.model.base.ObjectReferenceFluent;

public class BuildFluent> implements Fluent{

    private Map annotations  = new HashMap();
    private Build.ApiVersion apiVersion ;
    private Boolean cancelled ;
    private String completionTimestamp ;
    private ObjectReference config ;
    private String creationTimestamp ;
    private String deletionTimestamp ;
    private Integer duration ;
    private String generateName ;
    private String kind ;
    private Map labels  = new HashMap();
    private String message ;
    private String name ;
    private String namespace ;
    private BuildParameters parameters ;
    private String resourceVersion ;
    private String selfLink ;
    private String startTimestamp ;
    private String status ;
    private String uid ;
    private Map additionalProperties  = new HashMap();

    public Map getAnnotations(){
    return this.annotations;
    }
    public T withAnnotations(Map annotations){
    this.annotations.clear();if (annotations != null) {this.annotations.putAll(annotations);} return (T) this;
    }
    public Build.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion(Build.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public Boolean isCancelled(){
    return this.cancelled;
    }
    public T withCancelled(Boolean cancelled){
    this.cancelled=cancelled; return (T) this;
    }
    public String getCompletionTimestamp(){
    return this.completionTimestamp;
    }
    public T withCompletionTimestamp(String completionTimestamp){
    this.completionTimestamp=completionTimestamp; return (T) this;
    }
    public ObjectReference getConfig(){
    return this.config;
    }
    public T withConfig(ObjectReference config){
    this.config=config; return (T) this;
    }
    public String getCreationTimestamp(){
    return this.creationTimestamp;
    }
    public T withCreationTimestamp(String creationTimestamp){
    this.creationTimestamp=creationTimestamp; return (T) this;
    }
    public String getDeletionTimestamp(){
    return this.deletionTimestamp;
    }
    public T withDeletionTimestamp(String deletionTimestamp){
    this.deletionTimestamp=deletionTimestamp; return (T) this;
    }
    public Integer getDuration(){
    return this.duration;
    }
    public T withDuration(Integer duration){
    this.duration=duration; return (T) this;
    }
    public String getGenerateName(){
    return this.generateName;
    }
    public T withGenerateName(String generateName){
    this.generateName=generateName; return (T) this;
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind(String kind){
    this.kind=kind; return (T) this;
    }
    public Map getLabels(){
    return this.labels;
    }
    public T withLabels(Map labels){
    this.labels.clear();if (labels != null) {this.labels.putAll(labels);} return (T) this;
    }
    public String getMessage(){
    return this.message;
    }
    public T withMessage(String message){
    this.message=message; return (T) this;
    }
    public String getName(){
    return this.name;
    }
    public T withName(String name){
    this.name=name; return (T) this;
    }
    public String getNamespace(){
    return this.namespace;
    }
    public T withNamespace(String namespace){
    this.namespace=namespace; return (T) this;
    }
    public BuildParameters getParameters(){
    return this.parameters;
    }
    public T withParameters(BuildParameters parameters){
    this.parameters=parameters; return (T) this;
    }
    public String getResourceVersion(){
    return this.resourceVersion;
    }
    public T withResourceVersion(String resourceVersion){
    this.resourceVersion=resourceVersion; return (T) this;
    }
    public String getSelfLink(){
    return this.selfLink;
    }
    public T withSelfLink(String selfLink){
    this.selfLink=selfLink; return (T) this;
    }
    public String getStartTimestamp(){
    return this.startTimestamp;
    }
    public T withStartTimestamp(String startTimestamp){
    this.startTimestamp=startTimestamp; return (T) this;
    }
    public String getStatus(){
    return this.status;
    }
    public T withStatus(String status){
    this.status=status; return (T) this;
    }
    public String getUid(){
    return this.uid;
    }
    public T withUid(String uid){
    this.uid=uid; return (T) this;
    }
    public Map getAdditionalProperties(){
    return this.additionalProperties;
    }
    public T withAdditionalProperties(Map additionalProperties){
    this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
    }
    public T addToAnnotations(String key, String value){
    if(key != null && value != null) {this.annotations.put(key, value);} return (T)this;
    }
    public ConfigNested withNewConfig(){
    return new ConfigNested();
    }
    public T addToLabels(String key, String value){
    if(key != null && value != null) {this.labels.put(key, value);} return (T)this;
    }
    public ParametersNested withNewParameter(){
    return new ParametersNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ConfigNested extends ObjectReferenceFluent> implements Nested{

        private final ObjectReferenceBuilder builder = new ObjectReferenceBuilder(this);
    
            public N and(){
            return (N) BuildFluent.this.withConfig(builder.build());
        }
            public N endConfig(){
            return and();
        }
    
}
    public class ParametersNested extends BuildParametersFluent> implements Nested{

        private final BuildParametersBuilder builder = new BuildParametersBuilder(this);
    
            public N endParameter(){
            return and();
        }
            public N and(){
            return (N) BuildFluent.this.withParameters(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy