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

tech.jhipster.lite.statistic.infrastructure.primary.RestStatisticsCriteria Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.statistic.infrastructure.primary;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import java.time.Instant;
import tech.jhipster.lite.statistic.domain.criteria.StatisticsCriteria;

@Schema(name = "RestStatisticsCriteria", description = "JHipster lite rest statistics criteria")
record RestStatisticsCriteria(
  @Schema(description = "Start time to apply filter", nullable = true, requiredMode = RequiredMode.NOT_REQUIRED) Instant startTime,
  @Schema(description = "End time to apply filter", nullable = true, requiredMode = RequiredMode.NOT_REQUIRED) Instant endTime,
  @Schema(description = "Module slug to apply filter with", nullable = true, requiredMode = RequiredMode.NOT_REQUIRED) String moduleSlug
) {
  public StatisticsCriteria toDomain() {
    return StatisticsCriteria.builder().startTime(this.startTime).endTime(this.endTime).moduleSlug(this.moduleSlug).build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy