All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.logmein.gotowebinar_2_0.api.model.DateTimeRange Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
/*
 * © 2017 LogMeIn, Inc. All Rights Reserved.
 * All rights reserved.
 * 
 * This software is distributed under the terms and conditions of the
 * LogMeIn SDK License Agreement. Please see file LICENSE for details.
 * 
 * Auto-generated file.
 */


package com.logmein.gotowebinar_2_0.api.model;

import java.util.Date;

import com.logmein.gotowebinar_2_0.api.common.JsonUtil;

/**
 * A pair of DateTime values, the first of which serves as a start time and the second as an end time of an interval.
 */
public class DateTimeRange {

    /* The starting time of an interval, e.g. 2015-07-13T10:00:00Z */
    private Date startTime = null;

    /* The ending time of an interval, e.g. 2015-07-13T22:00:00Z */
    private Date endTime = null;

    /**
     * @return The starting time of an interval, e.g. 2015-07-13T10:00:00Z
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * @param startTime The starting time of an interval, e.g. 2015-07-13T10:00:00Z
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * @return The ending time of an interval, e.g. 2015-07-13T22:00:00Z
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * @param endTime The ending time of an interval, e.g. 2015-07-13T22:00:00Z
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class DateTimeRange {\n");
        String startTimeString = JsonUtil.Stringify(startTime);
        if (startTimeString != null && !startTimeString.isEmpty())
            sb.append(String.format("  startTime: %s\n", startTimeString));
        String endTimeString = JsonUtil.Stringify(endTime);
        if (endTimeString != null && !endTimeString.isEmpty())
            sb.append(String.format("  endTime: %s\n", endTimeString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy