1 2 package org.metricshub.winrm.service.shell; 3 4 import java.math.BigInteger; 5 import java.util.ArrayList; 6 import java.util.List; 7 import jakarta.xml.bind.annotation.XmlAccessType; 8 import jakarta.xml.bind.annotation.XmlAccessorType; 9 import jakarta.xml.bind.annotation.XmlAttribute; 10 import jakarta.xml.bind.annotation.XmlElement; 11 import jakarta.xml.bind.annotation.XmlSchemaType; 12 import jakarta.xml.bind.annotation.XmlType; 13 14 15 /** 16 * <p>Java class for ReceiveResponse complex type</p>. 17 * 18 * <p>The following schema fragment specifies the expected content contained within this class.</p> 19 * 20 * <pre>{@code 21 * <complexType name="ReceiveResponse"> 22 * <complexContent> 23 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 24 * <sequence> 25 * <element name="Stream" type="{http://schemas.microsoft.com/wbem/wsman/1/windows/shell}StreamType" maxOccurs="unbounded"/> 26 * <element name="CommandState" type="{http://schemas.microsoft.com/wbem/wsman/1/windows/shell}CommandStateType" minOccurs="0"/> 27 * </sequence> 28 * <attribute ref="{http://schemas.microsoft.com/wbem/wsman/1/windows/shell}SequenceID"/> 29 * </restriction> 30 * </complexContent> 31 * </complexType> 32 * }</pre> 33 * 34 * 35 */ 36 @XmlAccessorType(XmlAccessType.FIELD) 37 @XmlType(name = "ReceiveResponse", propOrder = { 38 "stream", 39 "commandState" 40 }) 41 public class ReceiveResponse { 42 43 @XmlElement(name = "Stream", required = true) 44 protected List<StreamType> stream; 45 @XmlElement(name = "CommandState") 46 protected CommandStateType commandState; 47 @XmlAttribute(name = "SequenceID", namespace = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell") 48 @XmlSchemaType(name = "unsignedLong") 49 protected BigInteger sequenceID; 50 51 /** 52 * Gets the value of the stream property. 53 * 54 * <p>This accessor method returns a reference to the live list, 55 * not a snapshot. Therefore any modification you make to the 56 * returned list will be present inside the JAXB object. 57 * This is why there is not a <CODE>set</CODE> method for the stream property.</p> 58 * 59 * <p> 60 * For example, to add a new item, do as follows: 61 * </p> 62 * <pre> 63 * getStream().add(newItem); 64 * </pre> 65 * 66 * 67 * <p> 68 * Objects of the following type(s) are allowed in the list 69 * {@link StreamType } 70 * </p> 71 * 72 * 73 * @return 74 * The value of the stream property. 75 */ 76 public List<StreamType> getStream() { 77 if (stream == null) { 78 stream = new ArrayList<>(); 79 } 80 return this.stream; 81 } 82 83 /** 84 * Gets the value of the commandState property. 85 * 86 * @return 87 * possible object is 88 * {@link CommandStateType } 89 * 90 */ 91 public CommandStateType getCommandState() { 92 return commandState; 93 } 94 95 /** 96 * Sets the value of the commandState property. 97 * 98 * @param value 99 * allowed object is 100 * {@link CommandStateType } 101 * 102 */ 103 public void setCommandState(CommandStateType value) { 104 this.commandState = value; 105 } 106 107 /** 108 * Gets the value of the sequenceID property. 109 * 110 * @return 111 * possible object is 112 * {@link BigInteger } 113 * 114 */ 115 public BigInteger getSequenceID() { 116 return sequenceID; 117 } 118 119 /** 120 * Sets the value of the sequenceID property. 121 * 122 * @param value 123 * allowed object is 124 * {@link BigInteger } 125 * 126 */ 127 public void setSequenceID(BigInteger value) { 128 this.sequenceID = value; 129 } 130 131 }