datahub.event.UpsertAspectRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-client Show documentation
Show all versions of datahub-client Show documentation
DataHub Java client for metadata integration
package datahub.event;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import io.datahubproject.openapi.generated.OneOfGenericAspectValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Value;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Value
@Builder
@JsonDeserialize(builder = UpsertAspectRequest.UpsertAspectRequestBuilder.class)
public class UpsertAspectRequest {
@JsonProperty("entityType")
@Schema(required = true, description = "The name of the entity matching with its definition in the entity registry")
String entityType;
@JsonProperty("entityUrn")
@Schema(description = "Urn of the entity to be updated with the corresponding aspect, required if entityKey is null")
String entityUrn;
@JsonProperty("entityKeyAspect")
@Schema(description = "A key aspect referencing the entity to be updated, required if entityUrn is null")
OneOfGenericAspectValue entityKeyAspect;
@JsonProperty("aspect")
@Schema(required = true, description = "Aspect value to be upserted")
OneOfGenericAspectValue aspect;
@JsonPOJOBuilder(withPrefix = "")
public static class UpsertAspectRequestBuilder {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy