net.nemerosa.ontrack.model.structure.NameDescriptionState Maven / Gradle / Ivy
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 NameDescriptionState {
@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 boolean disabled;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy