org.hpccsystems.ws.client.wrappers.wsworkunits.WUCreateAndUpdateWrapper Maven / Gradle / Ivy
package org.hpccsystems.ws.client.wrappers.wsworkunits;
import java.util.ArrayList;
import java.util.List;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.ApplicationValue;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.ArrayOfApplicationValue;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.ArrayOfDebugValue;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.DebugValue;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.WUCreateAndUpdate;
import org.hpccsystems.ws.client.wrappers.ApplicationValueWrapper;
import org.hpccsystems.ws.client.wrappers.DebugValueWrapper;
public class WUCreateAndUpdateWrapper
{
private String wuid;
private Integer state;
private Integer stateOrig;
private String jobname;
private String jobnameOrig;
private String queryText;
private Integer action;
private String description;
private String descriptionOrig;
private boolean addDrilldownFields=false;
private Integer resultLimit;
private boolean _protected=false;
private boolean protectedOrig=false;
private Integer priorityClass;
private Integer priorityLevel;
private String scope;
private String scopeOrig;
private String clusterSelection;
private String clusterOrig;
private String xmlParams;
private String thorSlaveIP;
private String queryMainDefinition;
private List applicationValues = new ArrayList();
private List debugValues = new ArrayList();
/**
* Gets the wuid.
*
* @return the wuid
*/
public String getWuid()
{
return wuid;
}
/**
* Sets the wuid.
*
* @param wuid
* the wuid to set
*/
public void setWuid(String wuid)
{
this.wuid = wuid;
}
/**
* Gets the state.
*
* @return the state
*/
public Integer getState()
{
return state;
}
/**
* Sets the state.
*
* @param state
* the state to set
*/
public void setState(Integer state)
{
this.state = state;
}
/**
* Gets the state orig.
*
* @return the stateOrig
*/
public Integer getStateOrig()
{
return stateOrig;
}
/**
* Sets the state orig.
*
* @param stateOrig
* the stateOrig to set
*/
public void setStateOrig(Integer stateOrig)
{
this.stateOrig = stateOrig;
}
/**
* Gets the jobname.
*
* @return the jobname
*/
public String getJobname()
{
return jobname;
}
/**
* Sets the jobname.
*
* @param jobname
* the jobname to set
*/
public void setJobname(String jobname)
{
this.jobname = jobname;
}
/**
* Gets the jobname orig.
*
* @return the jobnameOrig
*/
public String getJobnameOrig()
{
return jobnameOrig;
}
/**
* Sets the jobname orig.
*
* @param jobnameOrig
* the jobnameOrig to set
*/
public void setJobnameOrig(String jobnameOrig)
{
this.jobnameOrig = jobnameOrig;
}
/**
* Gets the query text.
*
* @return the queryText
*/
public String getQueryText()
{
return queryText;
}
/**
* Sets the query text.
*
* @param queryText
* the queryText to set
*/
public void setQueryText(String queryText)
{
this.queryText = queryText;
}
/**
* Gets the result limit.
*
* @return the resultLimit
*/
public Integer getResultLimit()
{
return resultLimit;
}
/**
* Sets the result limit.
*
* @param resultLimit
* the resultLimit to set
*/
public void setResultLimit(Integer resultLimit)
{
this.resultLimit = resultLimit;
}
/**
* Gets the protected orig.
*
* @return the protectedOrig
*/
public boolean getProtectedOrig()
{
return protectedOrig;
}
/**
* Sets the protected orig.
*
* @param protectedOrig
* the protectedOrig to set
*/
public void setProtectedOrig(boolean protectedOrig)
{
this.protectedOrig = protectedOrig;
}
/**
* Gets the priority class.
*
* @return the priorityClass
*/
public Integer getPriorityClass()
{
return priorityClass;
}
/**
* Sets the priority class.
*
* @param priorityClass
* the priorityClass to set
*/
public void setPriorityClass(Integer priorityClass)
{
this.priorityClass = priorityClass;
}
/**
* Gets the priority level.
*
* @return the priorityLevel
*/
public Integer getPriorityLevel()
{
return priorityLevel;
}
/**
* Sets the priority level.
*
* @param priorityLevel
* the priorityLevel to set
*/
public void setPriorityLevel(Integer priorityLevel)
{
this.priorityLevel = priorityLevel;
}
/**
* Gets the scope.
*
* @return the scope
*/
public String getScope()
{
return scope;
}
/**
* Sets the scope.
*
* @param scope
* the scope to set
*/
public void setScope(String scope)
{
this.scope = scope;
}
/**
* Gets the scope orig.
*
* @return the scopeOrig
*/
public String getScopeOrig()
{
return scopeOrig;
}
/**
* Sets the scope orig.
*
* @param scopeOrig
* the scopeOrig to set
*/
public void setScopeOrig(String scopeOrig)
{
this.scopeOrig = scopeOrig;
}
/**
* Gets the xml params.
*
* @return the xmlParams
*/
public String getXmlParams()
{
return xmlParams;
}
/**
* Sets the xml params.
*
* @param xmlParams
* the xmlParams to set
*/
public void setXmlParams(String xmlParams)
{
this.xmlParams = xmlParams;
}
/**
* Gets the thor slave IP.
*
* @return the thorSlaveIP
*/
public String getThorSlaveIP()
{
return thorSlaveIP;
}
/**
* Sets the thor slave IP.
*
* @param thorSlaveIP
* the thorSlaveIP to set
*/
public void setThorSlaveIP(String thorSlaveIP)
{
this.thorSlaveIP = thorSlaveIP;
}
/**
* Gets the query main definition.
*
* @return the queryMainDefinition
*/
public String getQueryMainDefinition()
{
return queryMainDefinition;
}
/**
* Sets the query main definition.
*
* @param queryMainDefinition
* the queryMainDefinition to set
*/
public void setQueryMainDefinition(String queryMainDefinition)
{
this.queryMainDefinition = queryMainDefinition;
}
/**
* Gets the raw.
*
* @return the raw
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.WUCreateAndUpdate getRaw()
{
return getRawLatestVersion();
}
/**
* Gets the raw version 1 58.
*
* @return the raw version 1 58
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.WUCreateAndUpdate getRawVersion1_58()
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.WUCreateAndUpdate result = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.WUCreateAndUpdate();
result.setProtected(_protected);
if (action != null)
{
result.setAction(action);
}
result.setAddDrilldownFields(addDrilldownFields);
result.setClusterOrig(clusterOrig);
result.setClusterSelection(clusterSelection);
result.setDescription(description);
result.setDescriptionOrig(descriptionOrig);
result.setJobname(jobname);
result.setJobnameOrig(jobnameOrig);
if (priorityClass != null)
{
result.setPriorityClass(priorityClass);
}
if (priorityLevel != null)
{
result.setPriorityLevel(priorityLevel);
}
result.setProtectedOrig(protectedOrig);
result.setQueryMainDefinition(queryMainDefinition);
result.setQueryText(queryText);
if (resultLimit != null)
{
result.setResultLimit(resultLimit);
}
result.setScope(scope);
result.setScopeOrig(scopeOrig);
if (state != null)
{
result.setState(state);
}
result.setStateOrig(stateOrig);
result.setThorSlaveIP(thorSlaveIP);
result.setWuid(wuid);
result.setXmlParams(xmlParams);
if (this.getApplicationValues().size() > 0)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ApplicationValue[] appvals = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ApplicationValue[this.getApplicationValues().size()];
for (int i = 0; i < this.getApplicationValues().size(); i++)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ApplicationValue av = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ApplicationValue();
av.setApplication(this.getApplicationValues().get(i).getApplication());
av.setName(this.getApplicationValues().get(i).getName());
av.setValue(this.getApplicationValues().get(i).getValue());
appvals[i] = av;
}
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ArrayOfApplicationValue applicationvalues = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ArrayOfApplicationValue();
applicationvalues.setApplicationValue(appvals);
result.setApplicationValues(applicationvalues );
}
if (this.getDebugValues().size() > 0)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.DebugValue[] debugvals = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.DebugValue[this.getDebugValues().size()];
for (int i = 0; i < this.getDebugValues().size(); i++)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.DebugValue av = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.DebugValue();
av.setName(this.getDebugValues().get(i).getName());
av.setValue(this.getDebugValues().get(i).getValue());
debugvals[i] = av;
}
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ArrayOfDebugValue debugvalsarray = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_58.ArrayOfDebugValue();
debugvalsarray.setDebugValue(debugvals);
result.setDebugValues(debugvalsarray );
}
return result;
}
/**
* Gets the raw version 1 62.
*
* @return the raw version 1 62
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.WUCreateAndUpdate getRawVersion1_62()
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.WUCreateAndUpdate result = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.WUCreateAndUpdate();
result.setProtected(_protected);
result.setAction(action);
result.setAddDrilldownFields(addDrilldownFields);
result.setClusterOrig(clusterOrig);
result.setClusterSelection(clusterSelection);
result.setDescription(description);
result.setDescriptionOrig(descriptionOrig);
result.setJobname(jobname);
result.setJobnameOrig(jobnameOrig);
result.setPriorityClass(priorityClass);
result.setPriorityLevel(priorityLevel);
result.setProtectedOrig(protectedOrig);
result.setQueryMainDefinition(queryMainDefinition);
result.setQueryText(queryText);
result.setResultLimit(resultLimit);
result.setScope(scope);
result.setScopeOrig(scopeOrig);
result.setState(state);
result.setStateOrig(stateOrig);
result.setThorSlaveIP(thorSlaveIP);
result.setWuid(wuid);
result.setXmlParams(xmlParams);
if (this.getApplicationValues().size() > 0)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ApplicationValue[] appvals = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ApplicationValue[this.getApplicationValues().size()];
for (int i = 0; i < this.getApplicationValues().size(); i++)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ApplicationValue av = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ApplicationValue();
av.setApplication(this.getApplicationValues().get(i).getApplication());
av.setName(this.getApplicationValues().get(i).getName());
av.setValue(this.getApplicationValues().get(i).getValue());
appvals[i] = av;
}
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ArrayOfApplicationValue appvalsarray = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ArrayOfApplicationValue();
appvalsarray.setApplicationValue(appvals);
result.setApplicationValues(appvalsarray);
}
if (this.getDebugValues().size() > 0)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.DebugValue[] debugvals = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.DebugValue[this.getDebugValues().size()];
for (int i = 0; i < this.getDebugValues().size(); i++)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.DebugValue av = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.DebugValue();
av.setName(this.getDebugValues().get(i).getName());
av.setValue(this.getDebugValues().get(i).getValue());
debugvals[i] = av;
}
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ArrayOfDebugValue debugvalsarray = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.ArrayOfDebugValue();
debugvalsarray.setDebugValue(debugvals);
result.setDebugValues(debugvalsarray);
}
return result;
}
/**
* Gets the raw version 1 69.
*
* @return the raw version 1 69
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.WUCreateAndUpdate getRawVersion1_69()
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.WUCreateAndUpdate result = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.WUCreateAndUpdate();
result.setProtected(_protected);
result.setAction(action);
result.setAddDrilldownFields(addDrilldownFields);
result.setClusterOrig(clusterOrig);
result.setClusterSelection(clusterSelection);
result.setDescription(description);
result.setDescriptionOrig(descriptionOrig);
result.setJobname(jobname);
result.setJobnameOrig(jobnameOrig);
if (priorityClass != null)
{
result.setPriorityClass(priorityClass);
}
if (priorityLevel != null)
{
result.setPriorityLevel(priorityLevel);
}
result.setProtectedOrig(protectedOrig);
result.setQueryMainDefinition(queryMainDefinition);
result.setQueryText(queryText);
result.setResultLimit(resultLimit);
result.setScope(scope);
result.setScopeOrig(scopeOrig);
if (state != null)
{
result.setState(state);
}
if (stateOrig != null)
{
result.setStateOrig(stateOrig);
}
result.setThorSlaveIP(thorSlaveIP);
result.setWuid(wuid);
result.setXmlParams(xmlParams);
if (this.getApplicationValues().size() > 0)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ApplicationValue[] appvals = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ApplicationValue[this.getApplicationValues().size()];
for (int i = 0; i < this.getApplicationValues().size(); i++)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ApplicationValue av = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ApplicationValue();
av.setApplication(this.getApplicationValues().get(i).getApplication());
av.setName(this.getApplicationValues().get(i).getName());
av.setValue(this.getApplicationValues().get(i).getValue());
appvals[i] = av;
}
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ArrayOfApplicationValue appvalsarray = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ArrayOfApplicationValue();
appvalsarray.setApplicationValue(appvals);
result.setApplicationValues(appvalsarray );
}
if (this.getDebugValues().size() > 0)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.DebugValue[] debugvals = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.DebugValue[this.getDebugValues().size()];
for (int i = 0; i < this.getDebugValues().size(); i++)
{
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.DebugValue av = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.DebugValue();
av.setName(this.getDebugValues().get(i).getName());
av.setValue(this.getDebugValues().get(i).getValue());
debugvals[i] = av;
}
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ArrayOfDebugValue debugvalsarray = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_69.ArrayOfDebugValue();
debugvalsarray.setDebugValue(debugvals);
result.setDebugValues(debugvalsarray );
}
return result;
}
/**
* Gets the raw version 1 79.
*
* @return the raw version 1 79
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.WUCreateAndUpdate getRawLatestVersion()
{
WUCreateAndUpdate request = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.WUCreateAndUpdate();
if (_protected) request.setProtected(_protected);
if (action != null) request.setAction(action);
if (addDrilldownFields) request.setAddDrilldownFields(addDrilldownFields);
if (clusterOrig != null) request.setClusterOrig(clusterOrig);
if (clusterSelection != null) request.setClusterSelection(clusterSelection);
if (description != null) request.setDescription(description);
if (descriptionOrig != null) request.setDescriptionOrig(descriptionOrig);
if (jobname != null) request.setJobname(jobname);
if (jobnameOrig != null) request.setJobnameOrig(jobnameOrig);
if (priorityClass != null) request.setPriorityClass(priorityClass);
if (priorityLevel != null) request.setPriorityLevel(priorityLevel);
if (protectedOrig) request.setProtectedOrig(protectedOrig);
if (queryMainDefinition != null) request.setQueryMainDefinition(queryMainDefinition);
if (queryText != null) request.setQueryText(queryText);
if (resultLimit != null) request.setResultLimit(resultLimit);
if (scope != null) request.setScope(scope);
if (scopeOrig != null) request.setScopeOrig(scopeOrig);
if (state != null) request.setState(state);
if (stateOrig != null) request.setStateOrig(stateOrig);
if (thorSlaveIP != null) request.setThorSlaveIP(thorSlaveIP);
if (wuid != null) request.setWuid(wuid);
if (xmlParams != null) request.setXmlParams(xmlParams);
if (getApplicationValues() != null && getApplicationValues().size() > 0)
{
ArrayOfApplicationValue appvals = new ArrayOfApplicationValue();
for (int i = 0; i < this.getApplicationValues().size(); i++)
{
ApplicationValue av = new ApplicationValue();
av.setApplication(this.getApplicationValues().get(i).getApplication());
av.setName(this.getApplicationValues().get(i).getName());
av.setValue(this.getApplicationValues().get(i).getValue());
appvals.addApplicationValue(av);
}
request.setApplicationValues(appvals);
}
if (getDebugValues() != null && getDebugValues().size() > 0)
{
ArrayOfDebugValue debugvals = new ArrayOfDebugValue();
for (int i = 0; i < this.getDebugValues().size(); i++)
{
DebugValue av = new DebugValue();
av.setName(this.getDebugValues().get(i).getName());
av.setValue(this.getDebugValues().get(i).getValue());
debugvals.addDebugValue(av);
}
request.setDebugValues(debugvals);
}
return request;
}
/**
* Gets the application values.
*
* @return the applicationValues
*/
public List getApplicationValues()
{
return applicationValues;
}
/**
* Sets the application values.
*
* @param applicationValues
* the applicationValues to set
*/
public void setApplicationValues(List applicationValues)
{
this.applicationValues = applicationValues;
}
/**
* Gets the debug values.
*
* @return the debugValues
*/
public List getDebugValues()
{
return debugValues;
}
/**
* Sets the debug values.
*
* @param debugValues
* the debugValues to set
*/
public void setDebugValues(List debugValues)
{
this.debugValues = debugValues;
}
/**
* Sets the debug values.
*
* @param debugValues
* the debugValues to set
*/
public void setDebugValues(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.DebugValue[] debugValues)
{
this.debugValues.clear();
if (debugValues == null)
{
return;
}
for (int i = 0; i < debugValues.length; i++)
{
this.debugValues.add(new DebugValueWrapper(debugValues[i]));
}
}
/**
* Sets the action.
*
* @param i
* the new action
*/
public void setAction(int i)
{
this.action = i;
}
/**
* Gets the action.
*
* @return the action
*/
public Integer getAction()
{
return action;
}
/**
* Sets the action.
*
* @param action
* the action to set
*/
public void setAction(Integer action)
{
this.action = action;
}
/**
* Gets the description.
*
* @return the description
*/
public String getDescription()
{
return description;
}
/**
* Sets the description.
*
* @param description
* the description to set
*/
public void setDescription(String description)
{
this.description = description;
}
/**
* Gets the description orig.
*
* @return the descriptionOrig
*/
public String getDescriptionOrig()
{
return descriptionOrig;
}
/**
* Sets the description orig.
*
* @param descriptionOrig
* the descriptionOrig to set
*/
public void setDescriptionOrig(String descriptionOrig)
{
this.descriptionOrig = descriptionOrig;
}
/**
* Gets the adds the drilldown fields.
*
* @return the addDrilldownFields
*/
public boolean getAddDrilldownFields()
{
return addDrilldownFields;
}
/**
* Sets the adds the drilldown fields.
*
* @param addDrilldownFields
* the addDrilldownFields to set
*/
public void setAddDrilldownFields(boolean addDrilldownFields)
{
this.addDrilldownFields = addDrilldownFields;
}
/**
* Gets the cluster selection.
*
* @return the clusterSelection
*/
public String getClusterSelection()
{
return clusterSelection;
}
/**
* Sets the cluster selection.
*
* @param clusterSelection
* the clusterSelection to set
*/
public void setClusterSelection(String clusterSelection)
{
this.clusterSelection = clusterSelection;
}
/**
* Gets the cluster orig.
*
* @return the clusterOrig
*/
public String getClusterOrig()
{
return clusterOrig;
}
/**
* Sets the cluster orig.
*
* @param clusterOrig
* the clusterOrig to set
*/
public void setClusterOrig(String clusterOrig)
{
this.clusterOrig = clusterOrig;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
return "WUCreateAndUpdateWrapper [wuid=" + wuid + ", state=" + state + ", stateOrig=" + stateOrig + ", jobname=" + jobname + ", jobnameOrig="
+ jobnameOrig + ", queryText=" + queryText + ", action=" + action + ", description=" + description + ", descriptionOrig="
+ descriptionOrig + ", addDrilldownFields=" + addDrilldownFields + ", resultLimit=" + resultLimit + ", _protected=" + _protected
+ ", protectedOrig=" + protectedOrig + ", priorityClass=" + priorityClass + ", priorityLevel=" + priorityLevel + ", scope=" + scope
+ ", scopeOrig=" + scopeOrig + ", clusterSelection=" + clusterSelection + ", clusterOrig=" + clusterOrig + ", xmlParams=" + xmlParams
+ ", thorSlaveIP=" + thorSlaveIP + ", queryMainDefinition=" + queryMainDefinition + ", applicationValues=" + applicationValues
+ ", debugValues=" + debugValues + "]";
}
}