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

io.fabric8.knative.duck.v1beta1.SubscriberSpecFluentImpl Maven / Gradle / Ivy

package io.fabric8.knative.duck.v1beta1;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.lang.StringBuffer;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.Boolean;

public class SubscriberSpecFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.knative.duck.v1beta1.SubscriberSpecFluent{

    private io.fabric8.knative.duck.v1beta1.DeliverySpecBuilder delivery;
    private Long generation;
    private String replyUri;
    private String subscriberUri;
    private String uid;

    public SubscriberSpecFluentImpl(){
    }
    public SubscriberSpecFluentImpl(io.fabric8.knative.duck.v1beta1.SubscriberSpec instance){
            this.withDelivery(instance.getDelivery()); 
            this.withGeneration(instance.getGeneration()); 
            this.withReplyUri(instance.getReplyUri()); 
            this.withSubscriberUri(instance.getSubscriberUri()); 
            this.withUid(instance.getUid()); 
    }

    
/**
 * This method has been deprecated, please use method buildDelivery instead.
 * @return The buildable object.
 */
@java.lang.Deprecated public io.fabric8.knative.duck.v1beta1.DeliverySpec getDelivery(){
            return this.delivery!=null?this.delivery.build():null;
    }

    public io.fabric8.knative.duck.v1beta1.DeliverySpec buildDelivery(){
            return this.delivery!=null?this.delivery.build():null;
    }

    public A withDelivery(io.fabric8.knative.duck.v1beta1.DeliverySpec delivery){
            _visitables.get("delivery").remove(this.delivery);
            if (delivery!=null){ this.delivery= new io.fabric8.knative.duck.v1beta1.DeliverySpecBuilder(delivery); _visitables.get("delivery").add(this.delivery);} return (A) this;
    }

    public Boolean hasDelivery(){
            return this.delivery != null;
    }

    public SubscriberSpecFluent.DeliveryNested withNewDelivery(){
            return new DeliveryNestedImpl();
    }

    public SubscriberSpecFluent.DeliveryNested withNewDeliveryLike(io.fabric8.knative.duck.v1beta1.DeliverySpec item){
            return new DeliveryNestedImpl(item);
    }

    public SubscriberSpecFluent.DeliveryNested editDelivery(){
            return withNewDeliveryLike(getDelivery());
    }

    public SubscriberSpecFluent.DeliveryNested editOrNewDelivery(){
            return withNewDeliveryLike(getDelivery() != null ? getDelivery(): new io.fabric8.knative.duck.v1beta1.DeliverySpecBuilder().build());
    }

    public SubscriberSpecFluent.DeliveryNested editOrNewDeliveryLike(io.fabric8.knative.duck.v1beta1.DeliverySpec item){
            return withNewDeliveryLike(getDelivery() != null ? getDelivery(): item);
    }

    public Long getGeneration(){
            return this.generation;
    }

    public A withGeneration(Long generation){
            this.generation=generation; return (A) this;
    }

    public Boolean hasGeneration(){
            return this.generation != null;
    }

    public String getReplyUri(){
            return this.replyUri;
    }

    public A withReplyUri(String replyUri){
            this.replyUri=replyUri; return (A) this;
    }

    public Boolean hasReplyUri(){
            return this.replyUri != null;
    }

    public A withNewReplyUri(String arg1){
            return (A)withReplyUri(new String(arg1));
    }

    public A withNewReplyUri(StringBuilder arg1){
            return (A)withReplyUri(new String(arg1));
    }

    public A withNewReplyUri(StringBuffer arg1){
            return (A)withReplyUri(new String(arg1));
    }

    public String getSubscriberUri(){
            return this.subscriberUri;
    }

    public A withSubscriberUri(String subscriberUri){
            this.subscriberUri=subscriberUri; return (A) this;
    }

    public Boolean hasSubscriberUri(){
            return this.subscriberUri != null;
    }

    public A withNewSubscriberUri(String arg1){
            return (A)withSubscriberUri(new String(arg1));
    }

    public A withNewSubscriberUri(StringBuilder arg1){
            return (A)withSubscriberUri(new String(arg1));
    }

    public A withNewSubscriberUri(StringBuffer arg1){
            return (A)withSubscriberUri(new String(arg1));
    }

    public String getUid(){
            return this.uid;
    }

    public A withUid(String uid){
            this.uid=uid; return (A) this;
    }

    public Boolean hasUid(){
            return this.uid != null;
    }

    public A withNewUid(String arg1){
            return (A)withUid(new String(arg1));
    }

    public A withNewUid(StringBuilder arg1){
            return (A)withUid(new String(arg1));
    }

    public A withNewUid(StringBuffer arg1){
            return (A)withUid(new String(arg1));
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            SubscriberSpecFluentImpl that = (SubscriberSpecFluentImpl) o;
            if (delivery != null ? !delivery.equals(that.delivery) :that.delivery != null) return false;
            if (generation != null ? !generation.equals(that.generation) :that.generation != null) return false;
            if (replyUri != null ? !replyUri.equals(that.replyUri) :that.replyUri != null) return false;
            if (subscriberUri != null ? !subscriberUri.equals(that.subscriberUri) :that.subscriberUri != null) return false;
            if (uid != null ? !uid.equals(that.uid) :that.uid != null) return false;
            return true;
    }


    public class DeliveryNestedImpl extends io.fabric8.knative.duck.v1beta1.DeliverySpecFluentImpl> implements SubscriberSpecFluent.DeliveryNested,io.fabric8.kubernetes.api.builder.Nested{

            private final io.fabric8.knative.duck.v1beta1.DeliverySpecBuilder builder;
    
            DeliveryNestedImpl(io.fabric8.knative.duck.v1beta1.DeliverySpec item){
                    this.builder = new io.fabric8.knative.duck.v1beta1.DeliverySpecBuilder(this, item);
            }
            DeliveryNestedImpl(){
                    this.builder = new io.fabric8.knative.duck.v1beta1.DeliverySpecBuilder(this);
            }
    
    public N and(){
            return (N) SubscriberSpecFluentImpl.this.withDelivery(builder.build());
    }
    public N endDelivery(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy