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

com.jkoolcloud.tnt4j.streams.configure.jaxb.ScenarioStep Maven / Gradle / Ivy

/*
 * Copyright 2014-2023 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.util.ArrayList;
import java.util.List;

import javax.annotation.Generated;
import javax.xml.bind.annotation.*;

/**
 * Defines scenario step providing request/command params and scheduler.
 * 
 * 
 * 

* Java class for ScenarioStep complex type. * *

* The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="ScenarioStep">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="property" type="{}Property" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="schedule-cron" type="{}ScheduleCron"/>
 *           <element name="schedule-simple" type="{}ScheduleSimple"/>
 *         </choice>
 *         <element name="request" type="{}RequestType" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attGroup ref="{}ScenarioEntityAttributes"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ScenarioStep", propOrder = { "property", "scheduleCron", "scheduleSimple", "request" }) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public class ScenarioStep { @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-12-05T10:53:23+02:00", comments = "JAXB RI v2.2.4-2") protected List property; @XmlElement(name = "schedule-cron") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected ScheduleCron scheduleCron; @XmlElement(name = "schedule-simple") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected ScheduleSimple scheduleSimple; @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-08-10T10:06:43+03:00", comments = "JAXB RI v2.2.4-2") protected List request; @XmlAttribute(name = "name", required = true) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected String name; @XmlAttribute(name = "url") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected String url; @XmlAttribute(name = "method") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected String method; @XmlAttribute(name = "username") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected String username; @XmlAttribute(name = "password") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") protected String password; public ScenarioStep() { } public ScenarioStep(String expression, String request, String name, String url, String method) { this.scheduleCron = new ScheduleCron(expression); addRequest(request); this.name = name; this.url = url; this.method = method; } public ScenarioStep(int interval, UnitsTypes units, Integer repeatCount, String request, String name, String url, String method) { this.scheduleSimple = new ScheduleSimple(interval, units, repeatCount); addRequest(request); this.name = name; this.url = url; this.method = method; } public ScenarioStep(int interval, UnitsTypes units, Integer repeatCount, String request, String name, String url, String method, String username, String password) { this.scheduleSimple = new ScheduleSimple(interval, units, repeatCount); addRequest(request); this.name = name; this.url = url; this.method = method; this.username = username; this.password = password; } public ScenarioStep(int interval, UnitsTypes units, Integer repeatCount, String request, String parserRef, String name, String url, String method, String username, String password) { this.scheduleSimple = new ScheduleSimple(interval, units, repeatCount); addRequest(request, parserRef); this.name = name; this.url = url; this.method = method; this.username = username; this.password = password; } public ScenarioStep(int interval, UnitsTypes units, Integer repeatCount, RequestType request, String name, String url, String method, String username, String password) { this.scheduleSimple = new ScheduleSimple(interval, units, repeatCount); addRequest(request); this.name = name; this.url = url; this.method = method; this.username = username; this.password = password; } /** * Gets the value of the property property. * *

* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to * the returned list will be present inside the JAXB object. This is why there is not a set method for * the property property. * *

* For example, to add a new item, do as follows: * *

	 * getProperty().add(newItem);
	 * 
* * *

* Objects of the following type(s) are allowed in the list {@link Property } * * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2018-12-05T10:53:23+02:00", comments = "JAXB RI v2.2.4-2") public List getProperty() { if (property == null) { property = new ArrayList(); } return this.property; } public void addProperty(Property prop) { getProperty().add(prop); } public void addProperty(String name, String value) { getProperty().add(new Property(name, value)); } /** * Gets the value of the scheduleCron property. * * @return possible object is {@link ScheduleCron } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public ScheduleCron getScheduleCron() { return scheduleCron; } /** * Sets the value of the scheduleCron property. * * @param value * allowed object is {@link ScheduleCron } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setScheduleCron(ScheduleCron value) { this.scheduleCron = value; } /** * Gets the value of the scheduleSimple property. * * @return possible object is {@link ScheduleSimple } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public ScheduleSimple getScheduleSimple() { return scheduleSimple; } /** * Sets the value of the scheduleSimple property. * * @param value * allowed object is {@link ScheduleSimple } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setScheduleSimple(ScheduleSimple value) { this.scheduleSimple = value; } /** * Gets the value of the request property. * *

* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to * the returned list will be present inside the JAXB object. This is why there is not a set method for * the request property. * *

* For example, to add a new item, do as follows: * *

	 * getRequest().add(newItem);
	 * 
* * *

* Objects of the following type(s) are allowed in the list {@link RequestType } * * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-08-10T10:06:43+03:00", comments = "JAXB RI v2.2.4-2") public List getRequest() { if (request == null) { request = new ArrayList(); } return this.request; } public void addRequest(String req) { getRequest().add(new RequestType(req)); } public void addRequest(String req, String parserRef) { getRequest().add(new RequestType(req, parserRef)); } public void addRequest(RequestType req) { getRequest().add(req); } /** * Gets the value of the name property. * * @return possible object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setName(String value) { this.name = value; } /** * Gets the value of the url property. * * @return possible object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public String getUrl() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setUrl(String value) { this.url = value; } /** * Gets the value of the method property. * * @return possible object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public String getMethod() { return method; } /** * Sets the value of the method property. * * @param value * allowed object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setMethod(String value) { this.method = value; } /** * Gets the value of the username property. * * @return possible object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public String getUsername() { return username; } /** * Sets the value of the username property. * * @param value * allowed object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setUsername(String value) { this.username = value; } /** * Gets the value of the password property. * * @return possible object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public String getPassword() { return password; } /** * Sets the value of the password property. * * @param value * allowed object is {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2017-04-25T06:08:33+03:00", comments = "JAXB RI v2.2.4-2") public void setPassword(String value) { this.password = value; } public void setUserCredentials(String username, String password) { this.username = username; this.password = password; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy