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;
30 "start_time": "00:00:00+00:00",
31 "end_time": "06:00:00+00:00"
37 public class AllowedPeriodicTime {
41 weekday("RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR"),
42 weekend("RRULE:FREQ=WEEKLY;BYDAY=SA,SU"),
45 private Day(String rrule) {this.rrule = rrule;}
46 public String getRrule() {return rrule;}
51 private List<TimeRange> timeRange;
55 public void setDay(Day day) {
58 public List<TimeRange> getTimeRange() {
61 public void setTimeRange(List<TimeRange> timeRange) {
62 this.timeRange = timeRange;