annotations.io.fabric8.knative.flows.v1alpha1.SequenceStepFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.flows.v1alpha1;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.knative.dev.duck.v1beta1.DeliverySpecFluentImpl;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import io.fabric8.knative.v1.URL;
import io.fabric8.knative.duck.v1.KReference;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Boolean;
import io.fabric8.knative.dev.duck.v1beta1.DeliverySpec;
import io.fabric8.knative.duck.v1.KReferenceFluentImpl;
import io.fabric8.knative.v1.URLBuilder;
import io.fabric8.knative.v1.URLFluentImpl;
import io.fabric8.knative.dev.duck.v1beta1.DeliverySpecBuilder;
import io.fabric8.knative.duck.v1.KReferenceBuilder;
import java.lang.Object;
public class SequenceStepFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements SequenceStepFluent{
private DeliverySpecBuilder delivery;
private KReferenceBuilder ref;
private URLBuilder uri;
public SequenceStepFluentImpl(){
}
public SequenceStepFluentImpl(SequenceStep instance){
this.withDelivery(instance.getDelivery());
this.withRef(instance.getRef());
this.withUri(instance.getUri());
}
/**
* This method has been deprecated, please use method buildDelivery instead.
* @return The buildable object.
*/
@java.lang.Deprecated public DeliverySpec getDelivery(){
return this.delivery!=null?this.delivery.build():null;
}
public DeliverySpec buildDelivery(){
return this.delivery!=null?this.delivery.build():null;
}
public A withDelivery(DeliverySpec delivery){
_visitables.get("delivery").remove(this.delivery);
if (delivery!=null){ this.delivery= new DeliverySpecBuilder(delivery); _visitables.get("delivery").add(this.delivery);} return (A) this;
}
public Boolean hasDelivery(){
return this.delivery != null;
}
public SequenceStepFluent.DeliveryNested withNewDelivery(){
return new DeliveryNestedImpl();
}
public SequenceStepFluent.DeliveryNested withNewDeliveryLike(DeliverySpec item){
return new DeliveryNestedImpl(item);
}
public SequenceStepFluent.DeliveryNested editDelivery(){
return withNewDeliveryLike(getDelivery());
}
public SequenceStepFluent.DeliveryNested editOrNewDelivery(){
return withNewDeliveryLike(getDelivery() != null ? getDelivery(): new DeliverySpecBuilder().build());
}
public SequenceStepFluent.DeliveryNested editOrNewDeliveryLike(DeliverySpec item){
return withNewDeliveryLike(getDelivery() != null ? getDelivery(): item);
}
/**
* This method has been deprecated, please use method buildRef instead.
* @return The buildable object.
*/
@java.lang.Deprecated public KReference getRef(){
return this.ref!=null?this.ref.build():null;
}
public KReference buildRef(){
return this.ref!=null?this.ref.build():null;
}
public A withRef(KReference ref){
_visitables.get("ref").remove(this.ref);
if (ref!=null){ this.ref= new KReferenceBuilder(ref); _visitables.get("ref").add(this.ref);} return (A) this;
}
public Boolean hasRef(){
return this.ref != null;
}
public A withNewRef(String apiVersion,String kind,String name,String namespace){
return (A)withRef(new KReference(apiVersion, kind, name, namespace));
}
public SequenceStepFluent.RefNested withNewRef(){
return new RefNestedImpl();
}
public SequenceStepFluent.RefNested withNewRefLike(KReference item){
return new RefNestedImpl(item);
}
public SequenceStepFluent.RefNested editRef(){
return withNewRefLike(getRef());
}
public SequenceStepFluent.RefNested editOrNewRef(){
return withNewRefLike(getRef() != null ? getRef(): new KReferenceBuilder().build());
}
public SequenceStepFluent.RefNested editOrNewRefLike(KReference item){
return withNewRefLike(getRef() != null ? getRef(): item);
}
/**
* This method has been deprecated, please use method buildUri instead.
* @return The buildable object.
*/
@java.lang.Deprecated public URL getUri(){
return this.uri!=null?this.uri.build():null;
}
public URL buildUri(){
return this.uri!=null?this.uri.build():null;
}
public A withUri(URL uri){
_visitables.get("uri").remove(this.uri);
if (uri!=null){ this.uri= new URLBuilder(uri); _visitables.get("uri").add(this.uri);} return (A) this;
}
public Boolean hasUri(){
return this.uri != null;
}
public SequenceStepFluent.UriNested withNewUri(){
return new UriNestedImpl();
}
public SequenceStepFluent.UriNested withNewUriLike(URL item){
return new UriNestedImpl(item);
}
public SequenceStepFluent.UriNested editUri(){
return withNewUriLike(getUri());
}
public SequenceStepFluent.UriNested editOrNewUri(){
return withNewUriLike(getUri() != null ? getUri(): new URLBuilder().build());
}
public SequenceStepFluent.UriNested editOrNewUriLike(URL item){
return withNewUriLike(getUri() != null ? getUri(): item);
}
public boolean equals(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 class DeliveryNestedImpl extends DeliverySpecFluentImpl> implements SequenceStepFluent.DeliveryNested,io.fabric8.kubernetes.api.builder.Nested{
private final DeliverySpecBuilder builder;
DeliveryNestedImpl(DeliverySpec item){
this.builder = new DeliverySpecBuilder(this, item);
}
DeliveryNestedImpl(){
this.builder = new DeliverySpecBuilder(this);
}
public N and(){
return (N) SequenceStepFluentImpl.this.withDelivery(builder.build());
}
public N endDelivery(){
return and();
}
}
public class RefNestedImpl extends KReferenceFluentImpl> implements SequenceStepFluent.RefNested,io.fabric8.kubernetes.api.builder.Nested{
private final KReferenceBuilder builder;
RefNestedImpl(KReference item){
this.builder = new KReferenceBuilder(this, item);
}
RefNestedImpl(){
this.builder = new KReferenceBuilder(this);
}
public N and(){
return (N) SequenceStepFluentImpl.this.withRef(builder.build());
}
public N endRef(){
return and();
}
}
public class UriNestedImpl extends URLFluentImpl> implements SequenceStepFluent.UriNested,io.fabric8.kubernetes.api.builder.Nested{
private final URLBuilder builder;
UriNestedImpl(URL item){
this.builder = new URLBuilder(this, item);
}
UriNestedImpl(){
this.builder = new URLBuilder(this);
}
public N and(){
return (N) SequenceStepFluentImpl.this.withUri(builder.build());
}
public N endUri(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy