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 * <element name="EnumerationContext" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}EnumerationContextType"/>
31 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
32 * </sequence>
33 * <anyAttribute processContents='lax' namespace='##other'/>
34 * </restriction>
35 * </complexContent>
36 * </complexType>
37 * }</pre>
38 *
39 *
40 */
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "", propOrder = {
43 "expires",
44 "enumerationContext",
45 "any"
46 })
47 @XmlRootElement(name = "EnumerateResponse")
48 public class EnumerateResponse {
49
50 @XmlElement(name = "Expires")
51 protected String expires;
52 @XmlElement(name = "EnumerationContext", required = true)
53 protected EnumerationContextType enumerationContext;
54 @XmlAnyElement(lax = true)
55 protected List<Object> any;
56 @XmlAnyAttribute
57 private Map<QName, String> otherAttributes = new HashMap<>();
58
59 /**
60 * Gets the value of the expires property.
61 *
62 * @return
63 * possible object is
64 * {@link String }
65 *
66 */
67 public String getExpires() {
68 return expires;
69 }
70
71 /**
72 * Sets the value of the expires property.
73 *
74 * @param value
75 * allowed object is
76 * {@link String }
77 *
78 */
79 public void setExpires(String value) {
80 this.expires = value;
81 }
82
83 /**
84 * Gets the value of the enumerationContext property.
85 *
86 * @return
87 * possible object is
88 * {@link EnumerationContextType }
89 *
90 */
91 public EnumerationContextType getEnumerationContext() {
92 return enumerationContext;
93 }
94
95 /**
96 * Sets the value of the enumerationContext property.
97 *
98 * @param value
99 * allowed object is
100 * {@link EnumerationContextType }
101 *
102 */
103 public void setEnumerationContext(EnumerationContextType value) {
104 this.enumerationContext = value;
105 }
106
107 /**
108 * Gets the value of the any property.
109 *
110 * <p>This accessor method returns a reference to the live list,
111 * not a snapshot. Therefore any modification you make to the
112 * returned list will be present inside the JAXB object.
113 * This is why there is not a <CODE>set</CODE> method for the any property.</p>
114 *
115 * <p>
116 * For example, to add a new item, do as follows:
117 * </p>
118 * <pre>
119 * getAny().add(newItem);
120 * </pre>
121 *
122 *
123 * <p>
124 * Objects of the following type(s) are allowed in the list
125 * {@link Object }
126 * {@link Element }
127 * </p>
128 *
129 *
130 * @return
131 * The value of the any property.
132 */
133 public List<Object> getAny() {
134 if (any == null) {
135 any = new ArrayList<>();
136 }
137 return this.any;
138 }
139
140 /**
141 * Gets a map that contains attributes that aren't bound to any typed property on this class.
142 *
143 * <p>
144 * the map is keyed by the name of the attribute and
145 * the value is the string value of the attribute.
146 *
147 * the map returned by this method is live, and you can add new attribute
148 * by updating the map directly. Because of this design, there's no setter.
149 *
150 *
151 * @return
152 * always non-null
153 */
154 public Map<QName, String> getOtherAttributes() {
155 return otherAttributes;
156 }
157
158 }