Add initial version of code
[nonrtric/plt/rappmanager.git] / rapp-manager-models / src / main / java / com / oransc / rappmanager / models / Rapp.java
1 /*-
2  * ============LICENSE_START======================================================================
3  * Copyright (C) 2023 Nordix Foundation. All rights reserved.
4  * ===============================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  * ============LICENSE_END========================================================================
17  */
18
19 package com.oransc.rappmanager.models;
20
21
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Map;
26 import java.util.UUID;
27 import lombok.Builder;
28 import lombok.Data;
29 import lombok.Getter;
30
31 @Data
32 @Builder(toBuilder = true)
33 public class Rapp {
34
35     @Builder.Default
36     UUID rappId = UUID.randomUUID();
37     String name;
38     RappState state;
39     String packageLocation;
40     String packageName;
41     UUID compositionId;
42     UUID compositionInstanceId;
43     String smeApfId;
44     String smeAefId;
45     @Builder.Default
46     Map<String, String> smeProviderFunctions = new HashMap<>();
47     @Builder.Default
48     List<String> smeServiceApis = new ArrayList<>();
49     @Builder.Default
50     List<String> smeInvokers = new ArrayList<>();
51 }