1 2 package org.metricshub.winrm.service.shell; 3 4 import java.util.ArrayList; 5 import java.util.List; 6 import jakarta.xml.bind.annotation.XmlAccessType; 7 import jakarta.xml.bind.annotation.XmlAccessorType; 8 import jakarta.xml.bind.annotation.XmlElement; 9 import jakarta.xml.bind.annotation.XmlType; 10 11 12 /** 13 * <p>Java class for CommandLine complex type</p>. 14 * 15 * <p>The following schema fragment specifies the expected content contained within this class.</p> 16 * 17 * <pre>{@code 18 * <complexType name="CommandLine"> 19 * <complexContent> 20 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 21 * <sequence> 22 * <element name="Command" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 23 * <element name="Arguments" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 24 * </sequence> 25 * </restriction> 26 * </complexContent> 27 * </complexType> 28 * }</pre> 29 * 30 * 31 */ 32 @XmlAccessorType(XmlAccessType.FIELD) 33 @XmlType(name = "CommandLine", propOrder = { 34 "command", 35 "arguments" 36 }) 37 public class CommandLine { 38 39 @XmlElement(name = "Command") 40 protected String command; 41 @XmlElement(name = "Arguments") 42 protected List<String> arguments; 43 44 /** 45 * Gets the value of the command property. 46 * 47 * @return 48 * possible object is 49 * {@link String } 50 * 51 */ 52 public String getCommand() { 53 return command; 54 } 55 56 /** 57 * Sets the value of the command property. 58 * 59 * @param value 60 * allowed object is 61 * {@link String } 62 * 63 */ 64 public void setCommand(String value) { 65 this.command = value; 66 } 67 68 /** 69 * Gets the value of the arguments property. 70 * 71 * <p>This accessor method returns a reference to the live list, 72 * not a snapshot. Therefore any modification you make to the 73 * returned list will be present inside the JAXB object. 74 * This is why there is not a <CODE>set</CODE> method for the arguments property.</p> 75 * 76 * <p> 77 * For example, to add a new item, do as follows: 78 * </p> 79 * <pre> 80 * getArguments().add(newItem); 81 * </pre> 82 * 83 * 84 * <p> 85 * Objects of the following type(s) are allowed in the list 86 * {@link String } 87 * </p> 88 * 89 * 90 * @return 91 * The value of the arguments property. 92 */ 93 public List<String> getArguments() { 94 if (arguments == null) { 95 arguments = new ArrayList<>(); 96 } 97 return this.arguments; 98 } 99 100 }