annotations.io.fabric8.knative.flows.v1.ParallelBranchFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.flows.v1;
import io.fabric8.knative.internal.pkg.apis.duck.v1.Destination;
import io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecFluentImpl;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder;
import java.lang.Deprecated;
import io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationFluentImpl;
import java.lang.Boolean;
import io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec;
/**
* Generated
*/
public class ParallelBranchFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.knative.flows.v1.ParallelBranchFluent{
public ParallelBranchFluentImpl() {
}
public ParallelBranchFluentImpl(io.fabric8.knative.flows.v1.ParallelBranch instance) {
this.withDelivery(instance.getDelivery());
this.withFilter(instance.getFilter());
this.withReply(instance.getReply());
this.withSubscriber(instance.getSubscriber());
}
private io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder delivery;
private io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder filter;
private io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder reply;
private io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder subscriber;
/**
* This method has been deprecated, please use method buildDelivery instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec getDelivery() {
return this.delivery!=null?this.delivery.build():null;
}
public io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec buildDelivery() {
return this.delivery!=null?this.delivery.build():null;
}
public A withDelivery(io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec delivery) {
_visitables.get("delivery").remove(this.delivery);
if (delivery!=null){ this.delivery= new io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder(delivery); _visitables.get("delivery").add(this.delivery);} return (A) this;
}
public java.lang.Boolean hasDelivery() {
return this.delivery != null;
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.DeliveryNested withNewDelivery() {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.DeliveryNestedImpl();
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.DeliveryNested withNewDeliveryLike(io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec item) {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.DeliveryNestedImpl(item);
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.DeliveryNested editDelivery() {
return withNewDeliveryLike(getDelivery());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.DeliveryNested editOrNewDelivery() {
return withNewDeliveryLike(getDelivery() != null ? getDelivery(): new io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder().build());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.DeliveryNested editOrNewDeliveryLike(io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec item) {
return withNewDeliveryLike(getDelivery() != null ? getDelivery(): item);
}
/**
* This method has been deprecated, please use method buildFilter instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.knative.internal.pkg.apis.duck.v1.Destination getFilter() {
return this.filter!=null?this.filter.build():null;
}
public io.fabric8.knative.internal.pkg.apis.duck.v1.Destination buildFilter() {
return this.filter!=null?this.filter.build():null;
}
public A withFilter(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination filter) {
_visitables.get("filter").remove(this.filter);
if (filter!=null){ this.filter= new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(filter); _visitables.get("filter").add(this.filter);} return (A) this;
}
public java.lang.Boolean hasFilter() {
return this.filter != null;
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.FilterNested withNewFilter() {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.FilterNestedImpl();
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.FilterNested withNewFilterLike(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.FilterNestedImpl(item);
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.FilterNested editFilter() {
return withNewFilterLike(getFilter());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.FilterNested editOrNewFilter() {
return withNewFilterLike(getFilter() != null ? getFilter(): new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder().build());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.FilterNested editOrNewFilterLike(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
return withNewFilterLike(getFilter() != null ? getFilter(): item);
}
/**
* This method has been deprecated, please use method buildReply instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.knative.internal.pkg.apis.duck.v1.Destination getReply() {
return this.reply!=null?this.reply.build():null;
}
public io.fabric8.knative.internal.pkg.apis.duck.v1.Destination buildReply() {
return this.reply!=null?this.reply.build():null;
}
public A withReply(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination reply) {
_visitables.get("reply").remove(this.reply);
if (reply!=null){ this.reply= new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(reply); _visitables.get("reply").add(this.reply);} return (A) this;
}
public java.lang.Boolean hasReply() {
return this.reply != null;
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.ReplyNested withNewReply() {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.ReplyNestedImpl();
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.ReplyNested withNewReplyLike(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.ReplyNestedImpl(item);
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.ReplyNested editReply() {
return withNewReplyLike(getReply());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.ReplyNested editOrNewReply() {
return withNewReplyLike(getReply() != null ? getReply(): new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder().build());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.ReplyNested editOrNewReplyLike(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
return withNewReplyLike(getReply() != null ? getReply(): item);
}
/**
* This method has been deprecated, please use method buildSubscriber instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.knative.internal.pkg.apis.duck.v1.Destination getSubscriber() {
return this.subscriber!=null?this.subscriber.build():null;
}
public io.fabric8.knative.internal.pkg.apis.duck.v1.Destination buildSubscriber() {
return this.subscriber!=null?this.subscriber.build():null;
}
public A withSubscriber(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination subscriber) {
_visitables.get("subscriber").remove(this.subscriber);
if (subscriber!=null){ this.subscriber= new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(subscriber); _visitables.get("subscriber").add(this.subscriber);} return (A) this;
}
public java.lang.Boolean hasSubscriber() {
return this.subscriber != null;
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.SubscriberNested withNewSubscriber() {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.SubscriberNestedImpl();
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.SubscriberNested withNewSubscriberLike(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
return new io.fabric8.knative.flows.v1.ParallelBranchFluentImpl.SubscriberNestedImpl(item);
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.SubscriberNested editSubscriber() {
return withNewSubscriberLike(getSubscriber());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.SubscriberNested editOrNewSubscriber() {
return withNewSubscriberLike(getSubscriber() != null ? getSubscriber(): new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder().build());
}
public io.fabric8.knative.flows.v1.ParallelBranchFluent.SubscriberNested editOrNewSubscriberLike(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
return withNewSubscriberLike(getSubscriber() != null ? getSubscriber(): item);
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ParallelBranchFluentImpl that = (ParallelBranchFluentImpl) o;
if (delivery != null ? !delivery.equals(that.delivery) :that.delivery != null) return false;
if (filter != null ? !filter.equals(that.filter) :that.filter != null) return false;
if (reply != null ? !reply.equals(that.reply) :that.reply != null) return false;
if (subscriber != null ? !subscriber.equals(that.subscriber) :that.subscriber != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(delivery, filter, reply, subscriber, super.hashCode());
}
public class DeliveryNestedImpl extends io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecFluentImpl> implements io.fabric8.knative.flows.v1.ParallelBranchFluent.DeliveryNested,io.fabric8.kubernetes.api.builder.Nested{
DeliveryNestedImpl(io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec item) {
this.builder = new io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder(this, item);
}
DeliveryNestedImpl() {
this.builder = new io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder(this);
}
io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder builder;
public N and() {
return (N) ParallelBranchFluentImpl.this.withDelivery(builder.build());
}
public N endDelivery() {
return and();
}
}
public class FilterNestedImpl extends io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationFluentImpl> implements io.fabric8.knative.flows.v1.ParallelBranchFluent.FilterNested,io.fabric8.kubernetes.api.builder.Nested{
FilterNestedImpl(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(this, item);
}
FilterNestedImpl() {
this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(this);
}
io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder builder;
public N and() {
return (N) ParallelBranchFluentImpl.this.withFilter(builder.build());
}
public N endFilter() {
return and();
}
}
public class ReplyNestedImpl extends io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationFluentImpl> implements io.fabric8.knative.flows.v1.ParallelBranchFluent.ReplyNested,io.fabric8.kubernetes.api.builder.Nested{
ReplyNestedImpl(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(this, item);
}
ReplyNestedImpl() {
this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(this);
}
io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder builder;
public N and() {
return (N) ParallelBranchFluentImpl.this.withReply(builder.build());
}
public N endReply() {
return and();
}
}
public class SubscriberNestedImpl extends io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationFluentImpl> implements io.fabric8.knative.flows.v1.ParallelBranchFluent.SubscriberNested,io.fabric8.kubernetes.api.builder.Nested{
SubscriberNestedImpl(io.fabric8.knative.internal.pkg.apis.duck.v1.Destination item) {
this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(this, item);
}
SubscriberNestedImpl() {
this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder(this);
}
io.fabric8.knative.internal.pkg.apis.duck.v1.DestinationBuilder builder;
public N and() {
return (N) ParallelBranchFluentImpl.this.withSubscriber(builder.build());
}
public N endSubscriber() {
return and();
}
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy