ROT: Verbesserungen aus 'deserialization' in 'sumup-adder' gemerged
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationProperties.java
1 package de.juplo.kafka;
2
3 import lombok.Getter;
4 import lombok.Setter;
5 import org.springframework.boot.context.properties.ConfigurationProperties;
6 import org.springframework.validation.annotation.Validated;
7
8 import javax.validation.constraints.NotEmpty;
9 import javax.validation.constraints.NotNull;
10 import java.time.Duration;
11
12
13 @ConfigurationProperties(prefix = "sumup.adder")
14 @Validated
15 @Getter
16 @Setter
17 public class ApplicationProperties
18 {
19   @NotNull
20   @NotEmpty
21   private String bootstrapServer;
22   @NotNull
23   @NotEmpty
24   private String groupId;
25   @NotNull
26   @NotEmpty
27   private String clientId;
28   @NotNull
29   @NotEmpty
30   private String topic;
31   @NotNull
32   @NotEmpty
33   private String autoOffsetReset;
34   @NotNull
35   private Duration commitInterval;
36 }