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

annotations.me.snowdrop.istio.adapter.solarwinds.SolarwindsFluentImpl Maven / Gradle / Ivy

package me.snowdrop.istio.adapter.solarwinds;

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.Long;
import java.lang.Object;
import java.lang.Boolean;
import java.util.Map;

public class SolarwindsFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements SolarwindsFluent{

    private String appopticsAccessToken;
    private Integer appopticsBatchSize;
    private Map logs;
    private Map metrics;
    private Long papertrailLocalRetentionDuration;
    private String papertrailUrl;

    public SolarwindsFluentImpl(){
    }
    public SolarwindsFluentImpl(Solarwinds instance){
            this.withAppopticsAccessToken(instance.getAppopticsAccessToken()); 
            this.withAppopticsBatchSize(instance.getAppopticsBatchSize()); 
            this.withLogs(instance.getLogs()); 
            this.withMetrics(instance.getMetrics()); 
            this.withPapertrailLocalRetentionDuration(instance.getPapertrailLocalRetentionDuration()); 
            this.withPapertrailUrl(instance.getPapertrailUrl()); 
    }

    public String getAppopticsAccessToken(){
            return this.appopticsAccessToken;
    }

    public A withAppopticsAccessToken(String appopticsAccessToken){
            this.appopticsAccessToken=appopticsAccessToken; return (A) this;
    }

    public Boolean hasAppopticsAccessToken(){
            return this.appopticsAccessToken != null;
    }

    public Integer getAppopticsBatchSize(){
            return this.appopticsBatchSize;
    }

    public A withAppopticsBatchSize(Integer appopticsBatchSize){
            this.appopticsBatchSize=appopticsBatchSize; return (A) this;
    }

    public Boolean hasAppopticsBatchSize(){
            return this.appopticsBatchSize != null;
    }

    public A withNewAppopticsBatchSize(int arg1){
            return (A)withAppopticsBatchSize(new Integer(arg1));
    }

    public A withNewAppopticsBatchSize(String arg1){
            return (A)withAppopticsBatchSize(new Integer(arg1));
    }

    public A addToLogs(String key,LogInfo value){
            if(this.logs == null && key != null && value != null) { this.logs = new LinkedHashMap(); }
            if(key != null && value != null) {this.logs.put(key, value);} return (A)this;
    }

    public A addToLogs(Map map){
            if(this.logs == null && map != null) { this.logs = new LinkedHashMap(); }
            if(map != null) { this.logs.putAll(map);} return (A)this;
    }

    public A removeFromLogs(String key){
            if(this.logs == null) { return (A) this; }
            if(key != null && this.logs != null) {this.logs.remove(key);} return (A)this;
    }

    public A removeFromLogs(Map map){
            if(this.logs == null) { return (A) this; }
            if(map != null) { for(Object key : map.keySet()) {if (this.logs != null){this.logs.remove(key);}}} return (A)this;
    }

    public Map getLogs(){
            return this.logs;
    }

    public A withLogs(Map logs){
            if (logs == null) { this.logs =  null;} else {this.logs = new LinkedHashMap(logs);} return (A) this;
    }

    public Boolean hasLogs(){
            return this.logs != null;
    }

    public A addToMetrics(String key,me.snowdrop.istio.adapter.solarwinds.MetricInfo value){
            if(this.metrics == null && key != null && value != null) { this.metrics = new LinkedHashMap(); }
            if(key != null && value != null) {this.metrics.put(key, value);} return (A)this;
    }

    public A addToMetrics(Map map){
            if(this.metrics == null && map != null) { this.metrics = new LinkedHashMap(); }
            if(map != null) { this.metrics.putAll(map);} return (A)this;
    }

    public A removeFromMetrics(String key){
            if(this.metrics == null) { return (A) this; }
            if(key != null && this.metrics != null) {this.metrics.remove(key);} return (A)this;
    }

    public A removeFromMetrics(Map map){
            if(this.metrics == null) { return (A) this; }
            if(map != null) { for(Object key : map.keySet()) {if (this.metrics != null){this.metrics.remove(key);}}} return (A)this;
    }

    public Map getMetrics(){
            return this.metrics;
    }

    public A withMetrics(Map metrics){
            if (metrics == null) { this.metrics =  null;} else {this.metrics = new LinkedHashMap(metrics);} return (A) this;
    }

    public Boolean hasMetrics(){
            return this.metrics != null;
    }

    public Long getPapertrailLocalRetentionDuration(){
            return this.papertrailLocalRetentionDuration;
    }

    public A withPapertrailLocalRetentionDuration(Long papertrailLocalRetentionDuration){
            this.papertrailLocalRetentionDuration=papertrailLocalRetentionDuration; return (A) this;
    }

    public Boolean hasPapertrailLocalRetentionDuration(){
            return this.papertrailLocalRetentionDuration != null;
    }

    public A withNewPapertrailLocalRetentionDuration(String arg1){
            return (A)withPapertrailLocalRetentionDuration(new Long(arg1));
    }

    public A withNewPapertrailLocalRetentionDuration(long arg1){
            return (A)withPapertrailLocalRetentionDuration(new Long(arg1));
    }

    public String getPapertrailUrl(){
            return this.papertrailUrl;
    }

    public A withPapertrailUrl(String papertrailUrl){
            this.papertrailUrl=papertrailUrl; return (A) this;
    }

    public Boolean hasPapertrailUrl(){
            return this.papertrailUrl != 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;
            SolarwindsFluentImpl that = (SolarwindsFluentImpl) o;
            if (appopticsAccessToken != null ? !appopticsAccessToken.equals(that.appopticsAccessToken) :that.appopticsAccessToken != null) return false;
            if (appopticsBatchSize != null ? !appopticsBatchSize.equals(that.appopticsBatchSize) :that.appopticsBatchSize != null) return false;
            if (logs != null ? !logs.equals(that.logs) :that.logs != null) return false;
            if (metrics != null ? !metrics.equals(that.metrics) :that.metrics != null) return false;
            if (papertrailLocalRetentionDuration != null ? !papertrailLocalRetentionDuration.equals(that.papertrailLocalRetentionDuration) :that.papertrailLocalRetentionDuration != null) return false;
            if (papertrailUrl != null ? !papertrailUrl.equals(that.papertrailUrl) :that.papertrailUrl != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy