io.fabric8.knative.serving.v1.TrafficTargetFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.serving.v1;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class TrafficTargetFluentImpl> extends BaseFluent implements TrafficTargetFluent{
public TrafficTargetFluentImpl() {
}
public TrafficTargetFluentImpl(TrafficTarget instance) {
this.withConfigurationName(instance.getConfigurationName());
this.withLatestRevision(instance.getLatestRevision());
this.withPercent(instance.getPercent());
this.withRevisionName(instance.getRevisionName());
this.withTag(instance.getTag());
this.withUrl(instance.getUrl());
}
private String configurationName;
private Boolean latestRevision;
private Long percent;
private String revisionName;
private String tag;
private String url;
public String getConfigurationName() {
return this.configurationName;
}
public A withConfigurationName(String configurationName) {
this.configurationName=configurationName; return (A) this;
}
public Boolean hasConfigurationName() {
return this.configurationName != null;
}
public Boolean getLatestRevision() {
return this.latestRevision;
}
public A withLatestRevision(Boolean latestRevision) {
this.latestRevision=latestRevision; return (A) this;
}
public Boolean hasLatestRevision() {
return this.latestRevision != null;
}
public Long getPercent() {
return this.percent;
}
public A withPercent(Long percent) {
this.percent=percent; return (A) this;
}
public Boolean hasPercent() {
return this.percent != null;
}
public String getRevisionName() {
return this.revisionName;
}
public A withRevisionName(String revisionName) {
this.revisionName=revisionName; return (A) this;
}
public Boolean hasRevisionName() {
return this.revisionName != null;
}
public String getTag() {
return this.tag;
}
public A withTag(String tag) {
this.tag=tag; return (A) this;
}
public Boolean hasTag() {
return this.tag != null;
}
public String getUrl() {
return this.url;
}
public A withUrl(String url) {
this.url=url; return (A) this;
}
public Boolean hasUrl() {
return this.url != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TrafficTargetFluentImpl that = (TrafficTargetFluentImpl) o;
if (configurationName != null ? !configurationName.equals(that.configurationName) :that.configurationName != null) return false;
if (latestRevision != null ? !latestRevision.equals(that.latestRevision) :that.latestRevision != null) return false;
if (percent != null ? !percent.equals(that.percent) :that.percent != null) return false;
if (revisionName != null ? !revisionName.equals(that.revisionName) :that.revisionName != null) return false;
if (tag != null ? !tag.equals(that.tag) :that.tag != null) return false;
if (url != null ? !url.equals(that.url) :that.url != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(configurationName, latestRevision, percent, revisionName, tag, url, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (configurationName != null) { sb.append("configurationName:"); sb.append(configurationName + ","); }
if (latestRevision != null) { sb.append("latestRevision:"); sb.append(latestRevision + ","); }
if (percent != null) { sb.append("percent:"); sb.append(percent + ","); }
if (revisionName != null) { sb.append("revisionName:"); sb.append(revisionName + ","); }
if (tag != null) { sb.append("tag:"); sb.append(tag + ","); }
if (url != null) { sb.append("url:"); sb.append(url); }
sb.append("}");
return sb.toString();
}
public A withLatestRevision() {
return withLatestRevision(true);
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy