io.fabric8.knative.flows.v1.ParallelChannelStatusFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.flows.v1;
import io.fabric8.knative.internal.pkg.apis.Condition;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.kubernetes.api.model.ObjectReferenceFluentImpl;
import java.lang.String;
import io.fabric8.knative.internal.pkg.apis.ConditionBuilder;
import io.fabric8.knative.internal.pkg.apis.ConditionFluentImpl;
import io.fabric8.kubernetes.api.model.ObjectReference;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.model.ObjectReferenceBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class ParallelChannelStatusFluentImpl> extends BaseFluent implements ParallelChannelStatusFluent{
public ParallelChannelStatusFluentImpl() {
}
public ParallelChannelStatusFluentImpl(io.fabric8.knative.flows.v1.ParallelChannelStatus instance) {
this.withChannel(instance.getChannel());
this.withReady(instance.getReady());
}
private ObjectReferenceBuilder channel;
private ConditionBuilder ready;
/**
* This method has been deprecated, please use method buildChannel instead.
* @return The buildable object.
*/
@Deprecated
public io.fabric8.kubernetes.api.model.ObjectReference getChannel() {
return this.channel!=null ?this.channel.build():null;
}
public io.fabric8.kubernetes.api.model.ObjectReference buildChannel() {
return this.channel!=null ?this.channel.build():null;
}
public A withChannel(io.fabric8.kubernetes.api.model.ObjectReference channel) {
_visitables.get("channel").remove(this.channel);
if (channel!=null){ this.channel= new ObjectReferenceBuilder(channel); _visitables.get("channel").add(this.channel);} return (A) this;
}
public Boolean hasChannel() {
return this.channel != null;
}
public ParallelChannelStatusFluent.ChannelNested withNewChannel() {
return new ParallelChannelStatusFluentImpl.ChannelNestedImpl();
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ChannelNested withNewChannelLike(io.fabric8.kubernetes.api.model.ObjectReference item) {
return new ParallelChannelStatusFluentImpl.ChannelNestedImpl(item);
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ChannelNested editChannel() {
return withNewChannelLike(getChannel());
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ChannelNested editOrNewChannel() {
return withNewChannelLike(getChannel() != null ? getChannel(): new io.fabric8.kubernetes.api.model.ObjectReferenceBuilder().build());
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ChannelNested editOrNewChannelLike(io.fabric8.kubernetes.api.model.ObjectReference item) {
return withNewChannelLike(getChannel() != null ? getChannel(): item);
}
/**
* This method has been deprecated, please use method buildReady instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.knative.internal.pkg.apis.Condition getReady() {
return this.ready!=null ?this.ready.build():null;
}
public io.fabric8.knative.internal.pkg.apis.Condition buildReady() {
return this.ready!=null ?this.ready.build():null;
}
public A withReady(io.fabric8.knative.internal.pkg.apis.Condition ready) {
_visitables.get("ready").remove(this.ready);
if (ready!=null){ this.ready= new ConditionBuilder(ready); _visitables.get("ready").add(this.ready);} return (A) this;
}
public java.lang.Boolean hasReady() {
return this.ready != null;
}
public ParallelChannelStatusFluent.ReadyNested withNewReady() {
return new ParallelChannelStatusFluentImpl.ReadyNestedImpl();
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ReadyNested withNewReadyLike(io.fabric8.knative.internal.pkg.apis.Condition item) {
return new io.fabric8.knative.flows.v1.ParallelChannelStatusFluentImpl.ReadyNestedImpl(item);
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ReadyNested editReady() {
return withNewReadyLike(getReady());
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ReadyNested editOrNewReady() {
return withNewReadyLike(getReady() != null ? getReady(): new io.fabric8.knative.internal.pkg.apis.ConditionBuilder().build());
}
public io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ReadyNested editOrNewReadyLike(io.fabric8.knative.internal.pkg.apis.Condition item) {
return withNewReadyLike(getReady() != null ? getReady(): item);
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ParallelChannelStatusFluentImpl that = (ParallelChannelStatusFluentImpl) o;
if (channel != null ? !channel.equals(that.channel) :that.channel != null) return false;
if (ready != null ? !ready.equals(that.ready) :that.ready != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(channel, ready, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (channel != null) { sb.append("channel:"); sb.append(channel + ","); }
if (ready != null) { sb.append("ready:"); sb.append(ready); }
sb.append("}");
return sb.toString();
}
class ChannelNestedImpl extends ObjectReferenceFluentImpl> implements io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ChannelNested,Nested{
ChannelNestedImpl(io.fabric8.kubernetes.api.model.ObjectReference item) {
this.builder = new io.fabric8.kubernetes.api.model.ObjectReferenceBuilder(this, item);
}
ChannelNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.ObjectReferenceBuilder(this);
}
io.fabric8.kubernetes.api.model.ObjectReferenceBuilder builder;
public N and() {
return (N) ParallelChannelStatusFluentImpl.this.withChannel(builder.build());
}
public N endChannel() {
return and();
}
}
class ReadyNestedImpl extends ConditionFluentImpl> implements io.fabric8.knative.flows.v1.ParallelChannelStatusFluent.ReadyNested,io.fabric8.kubernetes.api.builder.Nested{
ReadyNestedImpl(io.fabric8.knative.internal.pkg.apis.Condition item) {
this.builder = new io.fabric8.knative.internal.pkg.apis.ConditionBuilder(this, item);
}
ReadyNestedImpl() {
this.builder = new io.fabric8.knative.internal.pkg.apis.ConditionBuilder(this);
}
io.fabric8.knative.internal.pkg.apis.ConditionBuilder builder;
public N and() {
return (N) ParallelChannelStatusFluentImpl.this.withReady(builder.build());
}
public N endReady() {
return and();
}
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy