me.snowdrop.istio.mixer.adapter.stdio.StdioSpecFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.mixer.adapter.stdio;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.String;
import java.util.LinkedHashMap;
import java.lang.Integer;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
import java.util.Map;
public class StdioSpecFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements StdioSpecFluent{
private me.snowdrop.istio.mixer.adapter.stdio.Stream logStream;
private Integer maxDaysBeforeRotation;
private Integer maxMegabytesBeforeRotation;
private Integer maxRotatedFiles;
private Level metricLevel;
private Boolean outputAsJson;
private Level outputLevel;
private String outputPath;
private Map severityLevels;
public StdioSpecFluentImpl(){
}
public StdioSpecFluentImpl(StdioSpec instance){
this.withLogStream(instance.getLogStream());
this.withMaxDaysBeforeRotation(instance.getMaxDaysBeforeRotation());
this.withMaxMegabytesBeforeRotation(instance.getMaxMegabytesBeforeRotation());
this.withMaxRotatedFiles(instance.getMaxRotatedFiles());
this.withMetricLevel(instance.getMetricLevel());
this.withOutputAsJson(instance.getOutputAsJson());
this.withOutputLevel(instance.getOutputLevel());
this.withOutputPath(instance.getOutputPath());
this.withSeverityLevels(instance.getSeverityLevels());
}
public me.snowdrop.istio.mixer.adapter.stdio.Stream getLogStream(){
return this.logStream;
}
public A withLogStream(me.snowdrop.istio.mixer.adapter.stdio.Stream logStream){
this.logStream=logStream; return (A) this;
}
public Boolean hasLogStream(){
return this.logStream != null;
}
public Integer getMaxDaysBeforeRotation(){
return this.maxDaysBeforeRotation;
}
public A withMaxDaysBeforeRotation(Integer maxDaysBeforeRotation){
this.maxDaysBeforeRotation=maxDaysBeforeRotation; return (A) this;
}
public Boolean hasMaxDaysBeforeRotation(){
return this.maxDaysBeforeRotation != null;
}
public A withNewMaxDaysBeforeRotation(String arg1){
return (A)withMaxDaysBeforeRotation(new Integer(arg1));
}
public A withNewMaxDaysBeforeRotation(int arg1){
return (A)withMaxDaysBeforeRotation(new Integer(arg1));
}
public Integer getMaxMegabytesBeforeRotation(){
return this.maxMegabytesBeforeRotation;
}
public A withMaxMegabytesBeforeRotation(Integer maxMegabytesBeforeRotation){
this.maxMegabytesBeforeRotation=maxMegabytesBeforeRotation; return (A) this;
}
public Boolean hasMaxMegabytesBeforeRotation(){
return this.maxMegabytesBeforeRotation != null;
}
public A withNewMaxMegabytesBeforeRotation(String arg1){
return (A)withMaxMegabytesBeforeRotation(new Integer(arg1));
}
public A withNewMaxMegabytesBeforeRotation(int arg1){
return (A)withMaxMegabytesBeforeRotation(new Integer(arg1));
}
public Integer getMaxRotatedFiles(){
return this.maxRotatedFiles;
}
public A withMaxRotatedFiles(Integer maxRotatedFiles){
this.maxRotatedFiles=maxRotatedFiles; return (A) this;
}
public Boolean hasMaxRotatedFiles(){
return this.maxRotatedFiles != null;
}
public A withNewMaxRotatedFiles(String arg1){
return (A)withMaxRotatedFiles(new Integer(arg1));
}
public A withNewMaxRotatedFiles(int arg1){
return (A)withMaxRotatedFiles(new Integer(arg1));
}
public Level getMetricLevel(){
return this.metricLevel;
}
public A withMetricLevel(Level metricLevel){
this.metricLevel=metricLevel; return (A) this;
}
public Boolean hasMetricLevel(){
return this.metricLevel != null;
}
public Boolean isOutputAsJson(){
return this.outputAsJson;
}
public A withOutputAsJson(Boolean outputAsJson){
this.outputAsJson=outputAsJson; return (A) this;
}
public Boolean hasOutputAsJson(){
return this.outputAsJson != null;
}
public A withNewOutputAsJson(String arg1){
return (A)withOutputAsJson(new Boolean(arg1));
}
public A withNewOutputAsJson(boolean arg1){
return (A)withOutputAsJson(new Boolean(arg1));
}
public Level getOutputLevel(){
return this.outputLevel;
}
public A withOutputLevel(Level outputLevel){
this.outputLevel=outputLevel; return (A) this;
}
public Boolean hasOutputLevel(){
return this.outputLevel != null;
}
public String getOutputPath(){
return this.outputPath;
}
public A withOutputPath(String outputPath){
this.outputPath=outputPath; return (A) this;
}
public Boolean hasOutputPath(){
return this.outputPath != null;
}
public A addToSeverityLevels(String key,Integer value){
if(this.severityLevels == null && key != null && value != null) { this.severityLevels = new LinkedHashMap(); }
if(key != null && value != null) {this.severityLevels.put(key, value);} return (A)this;
}
public A addToSeverityLevels(Map map){
if(this.severityLevels == null && map != null) { this.severityLevels = new LinkedHashMap(); }
if(map != null) { this.severityLevels.putAll(map);} return (A)this;
}
public A removeFromSeverityLevels(String key){
if(this.severityLevels == null) { return (A) this; }
if(key != null && this.severityLevels != null) {this.severityLevels.remove(key);} return (A)this;
}
public A removeFromSeverityLevels(Map map){
if(this.severityLevels == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.severityLevels != null){this.severityLevels.remove(key);}}} return (A)this;
}
public Map getSeverityLevels(){
return this.severityLevels;
}
public A withSeverityLevels(Map severityLevels){
if (severityLevels == null) { this.severityLevels = null;} else {this.severityLevels = new LinkedHashMap(severityLevels);} return (A) this;
}
public Boolean hasSeverityLevels(){
return this.severityLevels != null;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
StdioSpecFluentImpl that = (StdioSpecFluentImpl) o;
if (logStream != null ? !logStream.equals(that.logStream) :that.logStream != null) return false;
if (maxDaysBeforeRotation != null ? !maxDaysBeforeRotation.equals(that.maxDaysBeforeRotation) :that.maxDaysBeforeRotation != null) return false;
if (maxMegabytesBeforeRotation != null ? !maxMegabytesBeforeRotation.equals(that.maxMegabytesBeforeRotation) :that.maxMegabytesBeforeRotation != null) return false;
if (maxRotatedFiles != null ? !maxRotatedFiles.equals(that.maxRotatedFiles) :that.maxRotatedFiles != null) return false;
if (metricLevel != null ? !metricLevel.equals(that.metricLevel) :that.metricLevel != null) return false;
if (outputAsJson != null ? !outputAsJson.equals(that.outputAsJson) :that.outputAsJson != null) return false;
if (outputLevel != null ? !outputLevel.equals(that.outputLevel) :that.outputLevel != null) return false;
if (outputPath != null ? !outputPath.equals(that.outputPath) :that.outputPath != null) return false;
if (severityLevels != null ? !severityLevels.equals(that.severityLevels) :that.severityLevels != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy