a1563168c5e38c2bad9a1856c3c7f74e97d42c83
[policy/drools-applications.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP
4  * ================================================================================
5  * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
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 org.onap.policy.drools.models.domain.operational;
22
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.List;
26 import lombok.Builder;
27 import lombok.Data;
28
29
30 /**
31  * Operational Policy Properties.
32  */
33
34 @Data
35 @Builder
36 public class OperationalProperties implements Serializable {
37     private static final long serialVersionUID = 2455300363502597721L;
38
39     /**
40      * Control Loop Name.
41      */
42     private String id;
43
44     /**
45      * Timeout in seconds.
46      */
47     private int timeout = 30;
48
49     /**
50      * Abatement.
51      */
52     private boolean abatement = false;
53
54     /**
55      * Trigger Operation.
56      */
57     private String trigger;
58
59     /**
60      * Operations.
61      */
62     @Builder.Default
63     private List<Operation> operations = new ArrayList<>();
64
65     /**
66      * Controller Name.
67      */
68     private String controllerName;
69 }