net.nemerosa.ontrack.model.structure.ValidationStampInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.structure;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import static net.nemerosa.ontrack.model.structure.NameDescription.NAME;
import static net.nemerosa.ontrack.model.structure.NameDescription.NAME_MESSAGE_SUFFIX;
@Data
public class ValidationStampInput {
@NotNull(message = "The name is required.")
@Pattern(regexp = NAME, message = "The name " + NAME_MESSAGE_SUFFIX)
private final String name;
private final String description;
private final ServiceConfiguration dataType;
public NameDescription asNameDescription() {
return NameDescription.nd(name, description);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy