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

tech.jhipster.lite.project.infrastructure.primary.RestAppliedModule Maven / Gradle / Ivy

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

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import tech.jhipster.lite.project.domain.history.ProjectAction;

@Schema(name = "appliedModule", description = "Information for an applied module")
final class RestAppliedModule {

  private final String slug;

  private RestAppliedModule(String slug) {
    this.slug = slug;
  }

  static RestAppliedModule from(ProjectAction action) {
    return new RestAppliedModule(action.module().get());
  }

  @Schema(description = "Slug of the applied module", requiredMode = RequiredMode.REQUIRED)
  public String getSlug() {
    return slug;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy