7af22e3adfb18aa300858b35ae98df28129b3f47
[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     public enum ConflictScope {
57         timeLimitAndVerticalTopology,
58     }
59     public enum Type {
60         vnf_pserver,
61     }
62
63     private String serviceType;
64     private String identity;
65     private PolicyScope policyScope;
66     private TimeSchedule timeSchedule;
67     private List<String> nodeType;
68     private String type;
69     private String conflictScope;
70
71     public String getServiceType() {
72         return serviceType;
73     }
74
75     public void setServiceType(String serviceType) {
76         this.serviceType = serviceType;
77     }
78
79     public String getIdentity() {
80         return identity;
81     }
82
83     public void setIdentity(String identity) {
84         this.identity = identity;
85     }
86
87     public PolicyScope getPolicyScope() {
88         return policyScope;
89     }
90
91     public void setPolicyScope(PolicyScope policyScope) {
92         this.policyScope = policyScope;
93     }
94
95     public TimeSchedule getTimeSchedule() {
96         return timeSchedule;
97     }
98
99     public void setTimeSchedule(TimeSchedule timeSchedule) {
100         this.timeSchedule = timeSchedule;
101     }
102
103     public List<String> getNodeType() {
104         return nodeType;
105     }
106
107     public void setNodeType(List<String> nodeType) {
108         this.nodeType = nodeType;
109     }
110
111     public String getType() {
112         return type;
113     }
114
115     public void setType(String type) {
116         this.type = type;
117     }
118
119     public String getConflictScope() {
120         return conflictScope;
121     }
122
123     public void setConflictScope(String conflictScope) {
124         this.conflictScope = conflictScope;
125     }
126
127 }