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

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

There is a newer version: 0.0.54
Show newest version
package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;

public class DeploymentConfigStatusFluent> extends BaseFluent implements Fluent{

     DeploymentDetailsBuilder details;     Integer latestVersion;     Map additionalProperties = new HashMap();

    public DeploymentDetails getDetails(){
    return this.details!=null?this.details.build():null;
    }
    public T withDetails( DeploymentDetails details){
    if (details!=null){ this.details= new DeploymentDetailsBuilder(details); _visitables.add(this.details);} return (T) this;
    }
    public DetailsNested withNewDetails(){
    return new DetailsNested();
    }
    public Integer getLatestVersion(){
    return this.latestVersion;
    }
    public T withLatestVersion( Integer latestVersion){
    this.latestVersion=latestVersion; return (T) this;
    }
    public T addToAdditionalProperties( String key,  Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} 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 class DetailsNested extends DeploymentDetailsFluent> implements Nested{

        private final DeploymentDetailsBuilder builder = new DeploymentDetailsBuilder(this);
    
            public N endDetails(){
            return and();
        }
            public N and(){
            return (N) DeploymentConfigStatusFluent.this.withDetails(builder.build());
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy