io.fabric8.knative.internal.pkg.apis.duck.v1.CloudEventAttributesBuilder Maven / Gradle / Ivy
package io.fabric8.knative.internal.pkg.apis.duck.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class CloudEventAttributesBuilder extends CloudEventAttributesFluentImpl implements VisitableBuilder{
public CloudEventAttributesBuilder() {
this(false);
}
public CloudEventAttributesBuilder(Boolean validationEnabled) {
this(new CloudEventAttributes(), validationEnabled);
}
public CloudEventAttributesBuilder(CloudEventAttributesFluent> fluent) {
this(fluent, false);
}
public CloudEventAttributesBuilder(CloudEventAttributesFluent> fluent,Boolean validationEnabled) {
this(fluent, new CloudEventAttributes(), validationEnabled);
}
public CloudEventAttributesBuilder(CloudEventAttributesFluent> fluent,CloudEventAttributes instance) {
this(fluent, instance, false);
}
public CloudEventAttributesBuilder(CloudEventAttributesFluent> fluent,CloudEventAttributes instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withSource(instance.getSource());
fluent.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public CloudEventAttributesBuilder(CloudEventAttributes instance) {
this(instance,false);
}
public CloudEventAttributesBuilder(CloudEventAttributes instance,Boolean validationEnabled) {
this.fluent = this;
this.withSource(instance.getSource());
this.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
CloudEventAttributesFluent> fluent;
Boolean validationEnabled;
public CloudEventAttributes build() {
CloudEventAttributes buildable = new CloudEventAttributes(fluent.getSource(),fluent.getType());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy