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

io.fabric8.knative.eventing.contrib.kafka.v1beta1.KafkaChannelStatusBuilder Maven / Gradle / Ivy

package io.fabric8.knative.eventing.contrib.kafka.v1beta1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class KafkaChannelStatusBuilder extends KafkaChannelStatusFluentImpl implements VisitableBuilder{
  public KafkaChannelStatusBuilder() {
    this(false);
  }
  public KafkaChannelStatusBuilder(Boolean validationEnabled) {
    this(new KafkaChannelStatus(), validationEnabled);
  }
  public KafkaChannelStatusBuilder(KafkaChannelStatusFluent fluent) {
    this(fluent, false);
  }
  public KafkaChannelStatusBuilder(KafkaChannelStatusFluent fluent,Boolean validationEnabled) {
    this(fluent, new KafkaChannelStatus(), validationEnabled);
  }
  public KafkaChannelStatusBuilder(KafkaChannelStatusFluent fluent,KafkaChannelStatus instance) {
    this(fluent, instance, false);
  }
  public KafkaChannelStatusBuilder(KafkaChannelStatusFluent fluent,KafkaChannelStatus instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withAddress(instance.getAddress()); 
    fluent.withAnnotations(instance.getAnnotations()); 
    fluent.withConditions(instance.getConditions()); 
    fluent.withDeadLetterChannel(instance.getDeadLetterChannel()); 
    fluent.withDeadLetterSinkUri(instance.getDeadLetterSinkUri()); 
    fluent.withObservedGeneration(instance.getObservedGeneration()); 
    fluent.withSubscribers(instance.getSubscribers()); 
    this.validationEnabled = validationEnabled; 
  }
  public KafkaChannelStatusBuilder(KafkaChannelStatus instance) {
    this(instance,false);
  }
  public KafkaChannelStatusBuilder(KafkaChannelStatus instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withAddress(instance.getAddress()); 
    this.withAnnotations(instance.getAnnotations()); 
    this.withConditions(instance.getConditions()); 
    this.withDeadLetterChannel(instance.getDeadLetterChannel()); 
    this.withDeadLetterSinkUri(instance.getDeadLetterSinkUri()); 
    this.withObservedGeneration(instance.getObservedGeneration()); 
    this.withSubscribers(instance.getSubscribers()); 
    this.validationEnabled = validationEnabled; 
  }
  KafkaChannelStatusFluent fluent;
  Boolean validationEnabled;
  public KafkaChannelStatus build() {
    KafkaChannelStatus buildable = new KafkaChannelStatus(fluent.getAddress(),fluent.getAnnotations(),fluent.getConditions(),fluent.getDeadLetterChannel(),fluent.getDeadLetterSinkUri(),fluent.getObservedGeneration(),fluent.getSubscribers());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy