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;
public class CloudEventAttributesBuilder extends CloudEventAttributesFluent implements VisitableBuilder{
public CloudEventAttributesBuilder() {
this(new CloudEventAttributes());
}
public CloudEventAttributesBuilder(CloudEventAttributesFluent> fluent) {
this(fluent, new CloudEventAttributes());
}
public CloudEventAttributesBuilder(CloudEventAttributesFluent> fluent,CloudEventAttributes instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public CloudEventAttributesBuilder(CloudEventAttributes instance) {
this.fluent = this;
this.copyInstance(instance);
}
CloudEventAttributesFluent> fluent;
public CloudEventAttributes build() {
CloudEventAttributes buildable = new CloudEventAttributes(fluent.getSource(),fluent.getType());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy