com.jkoolcloud.tnt4j.streams.configure.jaxb.ScheduleSimple Maven / Gradle / Ivy
/*
* Copyright 2014-2018 JKOOL, LLC.
*
* 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 com.jkoolcloud.tnt4j.streams.configure.jaxb;
import java.math.BigInteger;
import javax.annotation.Generated;
import javax.xml.bind.annotation.*;
/**
* Defines simple scheduler parameters.
*
*
*
* Java class for ScheduleSimple complex type.
*
*
* The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ScheduleSimple">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{}SchedulerAttributeGroup"/>
* <attribute name="interval" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
* <attribute name="units" type="{}UnitsTypes" default="Seconds" />
* <attribute name="repeatCount" type="{http://www.w3.org/2001/XMLSchema}integer" default="1" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ScheduleSimple")
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public class ScheduleSimple {
@XmlAttribute(name = "interval", required = true)
@XmlSchemaType(name = "positiveInteger")
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
protected BigInteger interval;
@XmlAttribute(name = "units")
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
protected UnitsTypes units;
@XmlAttribute(name = "repeatCount")
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
protected BigInteger repeatCount;
@XmlAttribute(name = "startDelay")
@XmlSchemaType(name = "nonNegativeInteger")
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
protected BigInteger startDelay;
@XmlAttribute(name = "startDelayUnits")
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
protected UnitsTypes startDelayUnits;
public ScheduleSimple() {
}
public ScheduleSimple(int interval, UnitsTypes units, Integer repeatCount) {
this.interval = BigInteger.valueOf(interval);
this.units = units;
this.repeatCount = repeatCount == null ? null : BigInteger.valueOf(repeatCount);
}
public ScheduleSimple(int interval, UnitsTypes units, Integer repeatCount, Integer startDelay,
UnitsTypes delayUnits) {
this.interval = BigInteger.valueOf(interval);
this.units = units;
this.repeatCount = repeatCount == null ? null : BigInteger.valueOf(repeatCount);
this.startDelay = startDelay == null ? null : BigInteger.valueOf(startDelay);
this.startDelayUnits = delayUnits;
}
/**
* Gets the value of the interval property.
*
* @return possible object is {@link BigInteger }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public BigInteger getInterval() {
return interval;
}
/**
* Sets the value of the interval property.
*
* @param value
* allowed object is {@link BigInteger }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public void setInterval(BigInteger value) {
this.interval = value;
}
/**
* Gets the value of the units property.
*
* @return possible object is {@link UnitsTypes }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public UnitsTypes getUnits() {
if (units == null) {
return UnitsTypes.SECONDS;
} else {
return units;
}
}
/**
* Sets the value of the units property.
*
* @param value
* allowed object is {@link UnitsTypes }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public void setUnits(UnitsTypes value) {
this.units = value;
}
/**
* Gets the value of the repeatCount property.
*
* @return possible object is {@link BigInteger }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public BigInteger getRepeatCount() {
if (repeatCount == null) {
return new BigInteger("1");
} else {
return repeatCount;
}
}
/**
* Sets the value of the repeatCount property.
*
* @param value
* allowed object is {@link BigInteger }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public void setRepeatCount(BigInteger value) {
this.repeatCount = value;
}
/**
* Gets the value of the startDelay property.
*
* @return possible object is {@link BigInteger }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public BigInteger getStartDelay() {
return startDelay;
}
/**
* Sets the value of the startDelay property.
*
* @param value
* allowed object is {@link BigInteger }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public void setStartDelay(BigInteger value) {
this.startDelay = value;
}
/**
* Gets the value of the startDelayUnits property.
*
* @return possible object is {@link UnitsTypes }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public UnitsTypes getStartDelayUnits() {
if (startDelayUnits == null) {
return UnitsTypes.SECONDS;
} else {
return startDelayUnits;
}
}
/**
* Sets the value of the startDelayUnits property.
*
* @param value
* allowed object is {@link UnitsTypes }
*
*/
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2019-05-28T11:13:40+03:00", comments = "JAXB RI v2.2.8-b130911.1802")
public void setStartDelayUnits(UnitsTypes value) {
this.startDelayUnits = value;
}
}