58846f4ae57205f45258ba4ab2a696d81eeba3c1
[optf/cmso.git] /
1 /*
2  * ============LICENSE_START==============================================
3  * Copyright (c) 2019 AT&T Intellectual Property.
4  * =======================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * not use this file except in compliance with the License. You may obtain a
7  * 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
14  * or implied. See the License for the specific language governing
15  * permissions and limitations under the License.
16  * ============LICENSE_END=================================================
17  *
18  */
19
20 package org.onap.optf.cmso.optimizer.availability.policies.model;
21
22 import java.util.List;
23
24 /*
25 {
26     "serviceType": "networkOnDemand",
27     "identity": "vnf_upgrade_policy",
28     "policyScope": {
29         "serviceType": ["networkOnDemand"],
30         "aicZone": [
31             " "
32         ],
33         "entityType": ["vnf"]
34     },
35     "timeSchedule": {
36         "allowedPeriodicTime": [
37             {
38                 "day": "weekday",
39                 "timeRange": [
40                     {
41                         "start_time": "00:00:00+00:00",
42                         "end_time": "06:00:00+00:00"
43                     }
44                 ]
45             }
46         ]
47     },
48     "nodeType": ["vnf"],
49     "type": "timeLimitAndVerticalTopology",
50     "conflictScope": "vnf_pserver"
51 }
52  */
53
54 public class TimeLimitAndVerticalTopology
55 {
56
57     public enum ConflictScope {
58         timeLimitAndVerticalTopology,
59     }
60     public enum Type {
61         vnf_pserver,
62     }
63
64     private String serviceType;
65     private String identity;
66     private PolicyScope policyScope;
67     private TimeSchedule timeSchedule;
68     private List<String> nodeType;
69     private String type;
70     private String conflictScope;
71
72     public String getServiceType() {
73         return serviceType;
74     }
75     public void setServiceType(String serviceType) {
76         this.serviceType = serviceType;
77     }
78     public String getIdentity() {
79         return identity;
80     }
81     public void setIdentity(String identity) {
82         this.identity = identity;
83     }
84     public PolicyScope getPolicyScope() {
85         return policyScope;
86     }
87     public void setPolicyScope(PolicyScope policyScope) {
88         this.policyScope = policyScope;
89     }
90     public TimeSchedule getTimeSchedule() {
91         return timeSchedule;
92     }
93     public void setTimeSchedule(TimeSchedule timeSchedule) {
94         this.timeSchedule = timeSchedule;
95     }
96     public List<String> getNodeType() {
97         return nodeType;
98     }
99     public void setNodeType(List<String> nodeType) {
100         this.nodeType = nodeType;
101     }
102     public String getType() {
103         return type;
104     }
105     public void setType(String type) {
106         this.type = type;
107     }
108     public String getConflictScope() {
109         return conflictScope;
110     }
111     public void setConflictScope(String conflictScope) {
112         this.conflictScope = conflictScope;
113     }
114
115 }