Updating FTC 2001, 10, 1 series tests to support a1pms V3 image
[nonrtric.git] / sample-services / ics-producer-consumer / consumer / src / main / java / com / demo / consumer / repository / Job.java
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  *
5  * Copyright (C) 2024: OpenInfra Foundation Europe
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20
21 package com.demo.consumer.repository;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24
25 import lombok.AllArgsConstructor;
26 import lombok.Builder;
27 import lombok.EqualsAndHashCode;
28 import lombok.Getter;
29 import lombok.ToString;
30
31 @ToString
32 public class Job {
33     @AllArgsConstructor
34     @Builder
35     public static class Parameters {
36
37         @AllArgsConstructor
38         @Builder
39         @EqualsAndHashCode
40         public static class KafkaDeliveryInfo {
41             @Getter
42             private String topic;
43
44             @Getter
45             private String bootStrapServers;
46
47             @JsonProperty(value = "numberOfMessages")
48             @Getter
49             private int numberOfMessages;
50         }
51
52         @Getter
53         private KafkaDeliveryInfo deliveryInfo;
54     }
55
56     @Getter
57     private final String id;
58
59     @Getter
60     private final InfoType type;
61
62     @Getter
63     private final String owner;
64
65     @Getter
66     private final Parameters parameters;
67
68     public Job(String id, InfoType type, String owner, Parameters parameters) {
69         this.id = id;
70         this.type = type;
71         this.owner = owner;
72         this.parameters = parameters;
73     }
74 }