io.fabric8.openshift.api.model.ParameterFluentImpl Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Map;
import java.util.Map;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.BaseFluent;
public class ParameterFluentImpl> extends BaseFluent implements ParameterFluent{
String description; String displayName; String from; String generate; String name; Boolean required; String value; Map additionalProperties = new HashMap();
public ParameterFluentImpl(){
}
public ParameterFluentImpl( Parameter instance ){
this.withDescription(instance.getDescription()); this.withDisplayName(instance.getDisplayName()); this.withFrom(instance.getFrom()); this.withGenerate(instance.getGenerate()); this.withName(instance.getName()); this.withRequired(instance.getRequired()); this.withValue(instance.getValue());
}
public String getDescription(){
return this.description;
}
public T withDescription( String description){
this.description=description; return (T) this;
}
public String getDisplayName(){
return this.displayName;
}
public T withDisplayName( String displayName){
this.displayName=displayName; return (T) this;
}
public String getFrom(){
return this.from;
}
public T withFrom( String from){
this.from=from; return (T) this;
}
public String getGenerate(){
return this.generate;
}
public T withGenerate( String generate){
this.generate=generate; return (T) this;
}
public String getName(){
return this.name;
}
public T withName( String name){
this.name=name; return (T) this;
}
public Boolean isRequired(){
return this.required;
}
public T withRequired( Boolean required){
this.required=required; return (T) this;
}
public String getValue(){
return this.value;
}
public T withValue( String value){
this.value=value; return (T) this;
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public T addToAdditionalProperties( Map map){
if(map != null) { this.additionalProperties.putAll(map);} return (T)this;
}
public T removeFromAdditionalProperties( String key){
if(key != null) {this.additionalProperties.remove(key);} return (T)this;
}
public T removeFromAdditionalProperties( Map map){
if(map != null) { for(Object key : map.keySet()) {this.additionalProperties.remove(key);}} 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 boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ParameterFluentImpl that = (ParameterFluentImpl) o;
if (description != null ? !description.equals(that.description) :that.description != null) return false;
if (displayName != null ? !displayName.equals(that.displayName) :that.displayName != null) return false;
if (from != null ? !from.equals(that.from) :that.from != null) return false;
if (generate != null ? !generate.equals(that.generate) :that.generate != null) return false;
if (name != null ? !name.equals(that.name) :that.name != null) return false;
if (required != null ? !required.equals(that.required) :that.required != null) return false;
if (value != null ? !value.equals(that.value) :that.value != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy