
io.serialized.client.aggregate.AggregateDelete Maven / Gradle / Ivy
package io.serialized.client.aggregate;
import java.util.UUID;
public class AggregateDelete {
public final UUID tenantId;
public final UUID aggregateId;
private AggregateDelete(Builder builder) {
this.tenantId = builder.tenantId;
this.aggregateId = builder.aggregateId;
}
public static Builder deleteRequest() {
return new Builder();
}
public static class Builder {
private UUID aggregateId;
private UUID tenantId;
public Builder withAggregateId(UUID aggregateId) {
this.aggregateId = aggregateId;
return this;
}
public Builder withAggregateId(String aggregateId) {
return this.withAggregateId(UUID.fromString(aggregateId));
}
public Builder withTenantId(UUID tenantId) {
this.tenantId = tenantId;
return this;
}
public Builder withTenantId(String tenantId) {
return this.withTenantId(UUID.fromString(tenantId));
}
public AggregateDelete build() {
return new AggregateDelete(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy