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

annotations.io.fabric8.knative.flows.v1.SequenceStepFluentImpl Maven / Gradle / Ivy

package io.fabric8.knative.flows.v1;

import io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecFluentImpl;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import io.fabric8.knative.internal.pkg.apis.duck.v1.KReference;
import io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder;
import java.lang.Deprecated;
import io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
import io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec;
import io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceFluentImpl;

public class SequenceStepFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.knative.flows.v1.SequenceStepFluent {

    private io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder delivery;
    private io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder ref;
    private java.lang.String uri;

    public SequenceStepFluentImpl() {
    }

    public SequenceStepFluentImpl(io.fabric8.knative.flows.v1.SequenceStep instance) {
        this.withDelivery(instance.getDelivery()); 
        this.withRef(instance.getRef()); 
        this.withUri(instance.getUri()); 
    }

    
    @java.lang.Deprecated
        
    /**
     * This method has been deprecated, please use method buildDelivery instead.
     * @return The buildable object.
     */
        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.SequenceStepFluent.DeliveryNested withNewDelivery() {
        return new io.fabric8.knative.flows.v1.SequenceStepFluentImpl.DeliveryNestedImpl();
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.DeliveryNested withNewDeliveryLike(io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec item) {
        return new io.fabric8.knative.flows.v1.SequenceStepFluentImpl.DeliveryNestedImpl(item);
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.DeliveryNested editDelivery() {
        return withNewDeliveryLike(getDelivery());
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.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.SequenceStepFluent.DeliveryNested editOrNewDeliveryLike(io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpec item) {
        return withNewDeliveryLike(getDelivery() != null ? getDelivery(): item);
    }

    
    @java.lang.Deprecated
        
    /**
     * This method has been deprecated, please use method buildRef instead.
     * @return The buildable object.
     */
        public io.fabric8.knative.internal.pkg.apis.duck.v1.KReference getRef() {
        return this.ref!=null?this.ref.build():null;
    }

    public io.fabric8.knative.internal.pkg.apis.duck.v1.KReference buildRef() {
        return this.ref!=null?this.ref.build():null;
    }

    public A withRef(io.fabric8.knative.internal.pkg.apis.duck.v1.KReference ref) {
        _visitables.get("ref").remove(this.ref);
        if (ref!=null){ this.ref= new io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder(ref); _visitables.get("ref").add(this.ref);} return (A) this;
    }

    public java.lang.Boolean hasRef() {
        return this.ref != null;
    }

    public A withNewRef(java.lang.String apiVersion,java.lang.String kind,java.lang.String name,java.lang.String namespace) {
        return (A)withRef(new KReference(apiVersion, kind, name, namespace));
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.RefNested withNewRef() {
        return new io.fabric8.knative.flows.v1.SequenceStepFluentImpl.RefNestedImpl();
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.RefNested withNewRefLike(io.fabric8.knative.internal.pkg.apis.duck.v1.KReference item) {
        return new io.fabric8.knative.flows.v1.SequenceStepFluentImpl.RefNestedImpl(item);
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.RefNested editRef() {
        return withNewRefLike(getRef());
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.RefNested editOrNewRef() {
        return withNewRefLike(getRef() != null ? getRef(): new io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder().build());
    }

    public io.fabric8.knative.flows.v1.SequenceStepFluent.RefNested editOrNewRefLike(io.fabric8.knative.internal.pkg.apis.duck.v1.KReference item) {
        return withNewRefLike(getRef() != null ? getRef(): item);
    }

    public java.lang.String getUri() {
        return this.uri;
    }

    public A withUri(java.lang.String uri) {
        this.uri=uri; return (A) this;
    }

    public java.lang.Boolean hasUri() {
        return this.uri != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withUri instead.
     */
        public A withNewUri(java.lang.String arg0) {
        return (A)withUri(new String(arg0));
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SequenceStepFluentImpl that = (SequenceStepFluentImpl) o;
        if (delivery != null ? !delivery.equals(that.delivery) :that.delivery != null) return false;
        if (ref != null ? !ref.equals(that.ref) :that.ref != null) return false;
        if (uri != null ? !uri.equals(that.uri) :that.uri != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(delivery,  ref,  uri,  super.hashCode());
    }

    public class DeliveryNestedImpl extends io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecFluentImpl> implements io.fabric8.knative.flows.v1.SequenceStepFluent.DeliveryNested,io.fabric8.kubernetes.api.builder.Nested {
        private final io.fabric8.knative.internal.eventing.pkg.apis.duck.v1.DeliverySpecBuilder builder;

            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);
                        
            }

            public N and() {
                return (N) SequenceStepFluentImpl.this.withDelivery(builder.build());
            }

            public N endDelivery() {
                return and();
            }
    }


    public class RefNestedImpl extends io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceFluentImpl> implements io.fabric8.knative.flows.v1.SequenceStepFluent.RefNested,io.fabric8.kubernetes.api.builder.Nested {
        private final io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder builder;

            RefNestedImpl(io.fabric8.knative.internal.pkg.apis.duck.v1.KReference item) {
                this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder(this, item);
                        
            }

            RefNestedImpl() {
                this.builder = new io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder(this);
                        
            }

            public N and() {
                return (N) SequenceStepFluentImpl.this.withRef(builder.build());
            }

            public N endRef() {
                return and();
            }
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy