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

io.cloudsoft.winrm4j.client.shell.Shell Maven / Gradle / Ivy


package io.cloudsoft.winrm4j.client.shell;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.Duration;
import org.w3c.dom.Element;


/**
 * 

Java class for Shell complex type. * *

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

 * <complexType name="Shell">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ShellId" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="Environment" type="{http://schemas.microsoft.com/wbem/wsman/1/windows/shell}EnvironmentVariableList" minOccurs="0"/>
 *         <element name="WorkingDirectory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Lifetime" type="{http://www.w3.org/2001/XMLSchema}duration" minOccurs="0"/>
 *         <element name="IdleTimeout" type="{http://www.w3.org/2001/XMLSchema}duration" minOccurs="0"/>
 *         <element name="InputStreams" minOccurs="0">
 *           <simpleType>
 *             <list itemType="{http://www.w3.org/2001/XMLSchema}string" />
 *           </simpleType>
 *         </element>
 *         <element name="OutputStreams" minOccurs="0">
 *           <simpleType>
 *             <list itemType="{http://www.w3.org/2001/XMLSchema}string" />
 *           </simpleType>
 *         </element>
 *         <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Shell", propOrder = { "shellId", "environment", "workingDirectory", "lifetime", "idleTimeout", "inputStreams", "outputStreams", "any" }) public class Shell { @XmlElement(name = "ShellId") @XmlSchemaType(name = "anyURI") protected String shellId; @XmlElement(name = "Environment") protected EnvironmentVariableList environment; @XmlElement(name = "WorkingDirectory") protected String workingDirectory; @XmlElement(name = "Lifetime") protected Duration lifetime; @XmlElement(name = "IdleTimeout") protected Duration idleTimeout; @XmlList @XmlElement(name = "InputStreams") protected List inputStreams; @XmlList @XmlElement(name = "OutputStreams") protected List outputStreams; @XmlAnyElement(lax = true) protected List any; /** * Gets the value of the shellId property. * * @return * possible object is * {@link String } * */ public String getShellId() { return shellId; } /** * Sets the value of the shellId property. * * @param value * allowed object is * {@link String } * */ public void setShellId(String value) { this.shellId = value; } /** * Gets the value of the environment property. * * @return * possible object is * {@link EnvironmentVariableList } * */ public EnvironmentVariableList getEnvironment() { return environment; } /** * Sets the value of the environment property. * * @param value * allowed object is * {@link EnvironmentVariableList } * */ public void setEnvironment(EnvironmentVariableList value) { this.environment = value; } /** * Gets the value of the workingDirectory property. * * @return * possible object is * {@link String } * */ public String getWorkingDirectory() { return workingDirectory; } /** * Sets the value of the workingDirectory property. * * @param value * allowed object is * {@link String } * */ public void setWorkingDirectory(String value) { this.workingDirectory = value; } /** * Gets the value of the lifetime property. * * @return * possible object is * {@link Duration } * */ public Duration getLifetime() { return lifetime; } /** * Sets the value of the lifetime property. * * @param value * allowed object is * {@link Duration } * */ public void setLifetime(Duration value) { this.lifetime = value; } /** * Gets the value of the idleTimeout property. * * @return * possible object is * {@link Duration } * */ public Duration getIdleTimeout() { return idleTimeout; } /** * Sets the value of the idleTimeout property. * * @param value * allowed object is * {@link Duration } * */ public void setIdleTimeout(Duration value) { this.idleTimeout = value; } /** * Gets the value of the inputStreams 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 inputStreams property. * *

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

     *    getInputStreams().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getInputStreams() { if (inputStreams == null) { inputStreams = new ArrayList(); } return this.inputStreams; } /** * Gets the value of the outputStreams 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 outputStreams property. * *

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

     *    getOutputStreams().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getOutputStreams() { if (outputStreams == null) { outputStreams = new ArrayList(); } return this.outputStreams; } /** * Gets the value of the any 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 any property. * *

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

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * {@link Element } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } }