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
9 * http://www.apache.org/licenses/LICENSE-2.0
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=================================================
20 package org.onap.optf.cmso.optimizer.availability.policies.model;
22 import java.util.List;
26 "serviceType": "networkOnDemand",
27 "identity": "vnf_upgrade_policy",
29 "serviceType": ["networkOnDemand"],
36 "allowedPeriodicTime": [
41 "start_time": "00:00:00+00:00",
42 "end_time": "06:00:00+00:00"
49 "type": "timeLimitAndVerticalTopology",
50 "conflictScope": "vnf_pserver"
54 public class TimeLimitAndVerticalTopology
57 public enum ConflictScope {
58 timeLimitAndVerticalTopology,
64 private String serviceType;
65 private String identity;
66 private PolicyScope policyScope;
67 private TimeSchedule timeSchedule;
68 private List<String> nodeType;
70 private String conflictScope;
72 public String getServiceType() {
75 public void setServiceType(String serviceType) {
76 this.serviceType = serviceType;
78 public String getIdentity() {
81 public void setIdentity(String identity) {
82 this.identity = identity;
84 public PolicyScope getPolicyScope() {
87 public void setPolicyScope(PolicyScope policyScope) {
88 this.policyScope = policyScope;
90 public TimeSchedule getTimeSchedule() {
93 public void setTimeSchedule(TimeSchedule timeSchedule) {
94 this.timeSchedule = timeSchedule;
96 public List<String> getNodeType() {
99 public void setNodeType(List<String> nodeType) {
100 this.nodeType = nodeType;
102 public String getType() {
105 public void setType(String type) {
108 public String getConflictScope() {
109 return conflictScope;
111 public void setConflictScope(String conflictScope) {
112 this.conflictScope = conflictScope;