/** * Copyright (C) 2009-2015 Dell, Inc. * See annotations for authorship information * * ==================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ==================================================================== */ package org.dasein.cloud; import javax.annotation.Nonnull; import java.io.Serializable; public class TimeWindow implements Serializable { private static final long serialVersionUID = -2880873989440959524L; private DayOfWeek endDayOfWeek; private int endHour; private int endMinute; private DayOfWeek startDayOfWeek; private int startHour; private int startMinute; public TimeWindow() { } public DayOfWeek getEndDayOfWeek() { return endDayOfWeek; } public void setEndDayOfWeek(DayOfWeek endDayOfWeek) { this.endDayOfWeek = endDayOfWeek; } public int getEndHour() { return endHour; } public void setEndHour(int endHour) { this.endHour = endHour; } public int getEndMinute() { return endMinute; } public void setEndMinute(int endMinute) { this.endMinute = endMinute; } public DayOfWeek getStartDayOfWeek() { return startDayOfWeek; } public void setStartDayOfWeek(DayOfWeek startDayOfWeek) { this.startDayOfWeek = startDayOfWeek; } public int getStartHour() { return startHour; } public void setStartHour(int startHour) { this.startHour = startHour; } public int getStartMinute() { return startMinute; } public void setStartMinute(int startMinute) { this.startMinute = startMinute; } @Override public @Nonnull String toString() { return (startDayOfWeek + ":" + startHour + ":" + startMinute + " - " + endDayOfWeek + ":" + endHour + ":" + endMinute); } }