1
2 package org.metricshub.winrm.service.enumeration;
3
4 import java.math.BigInteger;
5 import java.util.ArrayList;
6 import java.util.HashMap;
7 import java.util.List;
8 import java.util.Map;
9 import javax.xml.datatype.Duration;
10 import javax.xml.namespace.QName;
11 import jakarta.xml.bind.annotation.XmlAccessType;
12 import jakarta.xml.bind.annotation.XmlAccessorType;
13 import jakarta.xml.bind.annotation.XmlAnyAttribute;
14 import jakarta.xml.bind.annotation.XmlAnyElement;
15 import jakarta.xml.bind.annotation.XmlElement;
16 import jakarta.xml.bind.annotation.XmlRootElement;
17 import jakarta.xml.bind.annotation.XmlSchemaType;
18 import jakarta.xml.bind.annotation.XmlType;
19 import org.w3c.dom.Element;
20
21
22 /**
23 * <p>Java class for anonymous complex type</p>.
24 *
25 * <p>The following schema fragment specifies the expected content contained within this class.</p>
26 *
27 * <pre>{@code
28 * <complexType>
29 * <complexContent>
30 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31 * <sequence>
32 * <element name="EnumerationContext" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}EnumerationContextType"/>
33 * <element name="MaxTime" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}PositiveDurationType" minOccurs="0"/>
34 * <element name="MaxElements" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
35 * <element name="MaxCharacters" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/>
36 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
37 * </sequence>
38 * <anyAttribute processContents='lax' namespace='##other'/>
39 * </restriction>
40 * </complexContent>
41 * </complexType>
42 * }</pre>
43 *
44 *
45 */
46 @XmlAccessorType(XmlAccessType.FIELD)
47 @XmlType(name = "", propOrder = {
48 "enumerationContext",
49 "maxTime",
50 "maxElements",
51 "maxCharacters",
52 "any"
53 })
54 @XmlRootElement(name = "Pull")
55 public class Pull {
56
57 @XmlElement(name = "EnumerationContext", required = true)
58 protected EnumerationContextType enumerationContext;
59 @XmlElement(name = "MaxTime")
60 protected Duration maxTime;
61 @XmlElement(name = "MaxElements")
62 @XmlSchemaType(name = "positiveInteger")
63 protected BigInteger maxElements;
64 @XmlElement(name = "MaxCharacters")
65 @XmlSchemaType(name = "positiveInteger")
66 protected BigInteger maxCharacters;
67 @XmlAnyElement(lax = true)
68 protected List<Object> any;
69 @XmlAnyAttribute
70 private Map<QName, String> otherAttributes = new HashMap<>();
71
72 /**
73 * Gets the value of the enumerationContext property.
74 *
75 * @return
76 * possible object is
77 * {@link EnumerationContextType }
78 *
79 */
80 public EnumerationContextType getEnumerationContext() {
81 return enumerationContext;
82 }
83
84 /**
85 * Sets the value of the enumerationContext property.
86 *
87 * @param value
88 * allowed object is
89 * {@link EnumerationContextType }
90 *
91 */
92 public void setEnumerationContext(EnumerationContextType value) {
93 this.enumerationContext = value;
94 }
95
96 /**
97 * Gets the value of the maxTime property.
98 *
99 * @return
100 * possible object is
101 * {@link Duration }
102 *
103 */
104 public Duration getMaxTime() {
105 return maxTime;
106 }
107
108 /**
109 * Sets the value of the maxTime property.
110 *
111 * @param value
112 * allowed object is
113 * {@link Duration }
114 *
115 */
116 public void setMaxTime(Duration value) {
117 this.maxTime = value;
118 }
119
120 /**
121 * Gets the value of the maxElements property.
122 *
123 * @return
124 * possible object is
125 * {@link BigInteger }
126 *
127 */
128 public BigInteger getMaxElements() {
129 return maxElements;
130 }
131
132 /**
133 * Sets the value of the maxElements property.
134 *
135 * @param value
136 * allowed object is
137 * {@link BigInteger }
138 *
139 */
140 public void setMaxElements(BigInteger value) {
141 this.maxElements = value;
142 }
143
144 /**
145 * Gets the value of the maxCharacters property.
146 *
147 * @return
148 * possible object is
149 * {@link BigInteger }
150 *
151 */
152 public BigInteger getMaxCharacters() {
153 return maxCharacters;
154 }
155
156 /**
157 * Sets the value of the maxCharacters property.
158 *
159 * @param value
160 * allowed object is
161 * {@link BigInteger }
162 *
163 */
164 public void setMaxCharacters(BigInteger value) {
165 this.maxCharacters = value;
166 }
167
168 /**
169 * Gets the value of the any property.
170 *
171 * <p>This accessor method returns a reference to the live list,
172 * not a snapshot. Therefore any modification you make to the
173 * returned list will be present inside the JAXB object.
174 * This is why there is not a <CODE>set</CODE> method for the any property.</p>
175 *
176 * <p>
177 * For example, to add a new item, do as follows:
178 * </p>
179 * <pre>
180 * getAny().add(newItem);
181 * </pre>
182 *
183 *
184 * <p>
185 * Objects of the following type(s) are allowed in the list
186 * {@link Object }
187 * {@link Element }
188 * </p>
189 *
190 *
191 * @return
192 * The value of the any property.
193 */
194 public List<Object> getAny() {
195 if (any == null) {
196 any = new ArrayList<>();
197 }
198 return this.any;
199 }
200
201 /**
202 * Gets a map that contains attributes that aren't bound to any typed property on this class.
203 *
204 * <p>
205 * the map is keyed by the name of the attribute and
206 * the value is the string value of the attribute.
207 *
208 * the map returned by this method is live, and you can add new attribute
209 * by updating the map directly. Because of this design, there's no setter.
210 *
211 *
212 * @return
213 * always non-null
214 */
215 public Map<QName, String> getOtherAttributes() {
216 return otherAttributes;
217 }
218
219 }