1 2 package org.metricshub.winrm.service.enumeration; 3 4 import java.util.ArrayList; 5 import java.util.HashMap; 6 import java.util.List; 7 import java.util.Map; 8 import javax.xml.namespace.QName; 9 import jakarta.xml.bind.annotation.XmlAccessType; 10 import jakarta.xml.bind.annotation.XmlAccessorType; 11 import jakarta.xml.bind.annotation.XmlAnyAttribute; 12 import jakarta.xml.bind.annotation.XmlAnyElement; 13 import jakarta.xml.bind.annotation.XmlElement; 14 import jakarta.xml.bind.annotation.XmlRootElement; 15 import jakarta.xml.bind.annotation.XmlType; 16 import org.w3c.dom.Element; 17 18 19 /** 20 * <p>Java class for anonymous complex type</p>. 21 * 22 * <p>The following schema fragment specifies the expected content contained within this class.</p> 23 * 24 * <pre>{@code 25 * <complexType> 26 * <complexContent> 27 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 28 * <sequence> 29 * <element name="Expires" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}ExpirationType" minOccurs="0"/> 30 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 31 * </sequence> 32 * <anyAttribute processContents='lax' namespace='##other'/> 33 * </restriction> 34 * </complexContent> 35 * </complexType> 36 * }</pre> 37 * 38 * 39 */ 40 @XmlAccessorType(XmlAccessType.FIELD) 41 @XmlType(name = "", propOrder = { 42 "expires", 43 "any" 44 }) 45 @XmlRootElement(name = "GetStatusResponse") 46 public class GetStatusResponse { 47 48 @XmlElement(name = "Expires") 49 protected String expires; 50 @XmlAnyElement(lax = true) 51 protected List<Object> any; 52 @XmlAnyAttribute 53 private Map<QName, String> otherAttributes = new HashMap<>(); 54 55 /** 56 * Gets the value of the expires property. 57 * 58 * @return 59 * possible object is 60 * {@link String } 61 * 62 */ 63 public String getExpires() { 64 return expires; 65 } 66 67 /** 68 * Sets the value of the expires property. 69 * 70 * @param value 71 * allowed object is 72 * {@link String } 73 * 74 */ 75 public void setExpires(String value) { 76 this.expires = value; 77 } 78 79 /** 80 * Gets the value of the any property. 81 * 82 * <p>This accessor method returns a reference to the live list, 83 * not a snapshot. Therefore any modification you make to the 84 * returned list will be present inside the JAXB object. 85 * This is why there is not a <CODE>set</CODE> method for the any property.</p> 86 * 87 * <p> 88 * For example, to add a new item, do as follows: 89 * </p> 90 * <pre> 91 * getAny().add(newItem); 92 * </pre> 93 * 94 * 95 * <p> 96 * Objects of the following type(s) are allowed in the list 97 * {@link Object } 98 * {@link Element } 99 * </p> 100 * 101 * 102 * @return 103 * The value of the any property. 104 */ 105 public List<Object> getAny() { 106 if (any == null) { 107 any = new ArrayList<>(); 108 } 109 return this.any; 110 } 111 112 /** 113 * Gets a map that contains attributes that aren't bound to any typed property on this class. 114 * 115 * <p> 116 * the map is keyed by the name of the attribute and 117 * the value is the string value of the attribute. 118 * 119 * the map returned by this method is live, and you can add new attribute 120 * by updating the map directly. Because of this design, there's no setter. 121 * 122 * 123 * @return 124 * always non-null 125 */ 126 public Map<QName, String> getOtherAttributes() { 127 return otherAttributes; 128 } 129 130 }