annotations.io.fabric8.knative.serving.v1.TrafficTargetFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.serving.v1;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
public class TrafficTargetFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.knative.serving.v1.TrafficTargetFluent{
public TrafficTargetFluentImpl() {
}
public TrafficTargetFluentImpl(io.fabric8.knative.serving.v1.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 java.lang.String configurationName;
private java.lang.Boolean latestRevision;
private java.lang.Long percent;
private java.lang.String revisionName;
private java.lang.String tag;
private java.lang.String url;
public java.lang.String getConfigurationName() {
return this.configurationName;
}
public A withConfigurationName(java.lang.String configurationName) {
this.configurationName=configurationName; return (A) this;
}
public java.lang.Boolean hasConfigurationName() {
return this.configurationName != null;
}
/**
* Method is deprecated. use withConfigurationName instead.
*/
@java.lang.Deprecated
public A withNewConfigurationName(java.lang.String arg0) {
return (A)withConfigurationName(new String(arg0));
}
public java.lang.Boolean getLatestRevision() {
return this.latestRevision;
}
public A withLatestRevision(java.lang.Boolean latestRevision) {
this.latestRevision=latestRevision; return (A) this;
}
public java.lang.Boolean hasLatestRevision() {
return this.latestRevision != null;
}
public java.lang.Long getPercent() {
return this.percent;
}
public A withPercent(java.lang.Long percent) {
this.percent=percent; return (A) this;
}
public java.lang.Boolean hasPercent() {
return this.percent != null;
}
public java.lang.String getRevisionName() {
return this.revisionName;
}
public A withRevisionName(java.lang.String revisionName) {
this.revisionName=revisionName; return (A) this;
}
public java.lang.Boolean hasRevisionName() {
return this.revisionName != null;
}
/**
* Method is deprecated. use withRevisionName instead.
*/
@java.lang.Deprecated
public A withNewRevisionName(java.lang.String arg0) {
return (A)withRevisionName(new String(arg0));
}
public java.lang.String getTag() {
return this.tag;
}
public A withTag(java.lang.String tag) {
this.tag=tag; return (A) this;
}
public java.lang.Boolean hasTag() {
return this.tag != null;
}
/**
* Method is deprecated. use withTag instead.
*/
@java.lang.Deprecated
public A withNewTag(java.lang.String arg0) {
return (A)withTag(new String(arg0));
}
public java.lang.String getUrl() {
return this.url;
}
public A withUrl(java.lang.String url) {
this.url=url; return (A) this;
}
public java.lang.Boolean hasUrl() {
return this.url != null;
}
/**
* Method is deprecated. use withUrl instead.
*/
@java.lang.Deprecated
public A withNewUrl(java.lang.String arg0) {
return (A)withUrl(new String(arg0));
}
public boolean equals(java.lang.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());
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy