Skip to content

Commit 674cf75

Browse files
committed
Fix CustomAttributeValuesUnion
1 parent 5ebfca1 commit 674cf75

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/com/datadog/api/client/v2/model/CustomAttributeValuesUnion.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ public CustomAttributeValuesUnion(Double o) {
287287
setActualInstance(o);
288288
}
289289

290-
public CustomAttributeValuesUnion(List<Double> o) {
291-
super("oneOf", Boolean.FALSE);
292-
setActualInstance(o);
290+
public static CustomAttributeValuesUnion fromDoubleList(List<Double> o) {
291+
CustomAttributeValuesUnion instance = new CustomAttributeValuesUnion();
292+
instance.setActualInstance(o);
293+
return instance;
293294
}
294295

295296
static {
@@ -369,7 +370,7 @@ public String getString() throws ClassCastException {
369370
* @return The actual instance of `List&lt;String&gt;`
370371
* @throws ClassCastException if the instance is not `List&lt;String&gt;`
371372
*/
372-
public List<String> getList() throws ClassCastException {
373+
public List<String> getStringList() throws ClassCastException {
373374
return (List<String>) super.getActualInstance();
374375
}
375376

@@ -391,7 +392,7 @@ public Double getDouble() throws ClassCastException {
391392
* @return The actual instance of `List&lt;Double&gt;`
392393
* @throws ClassCastException if the instance is not `List&lt;Double&gt;`
393394
*/
394-
public List<Double> getList() throws ClassCastException {
395+
public List<Double> getDoubleList() throws ClassCastException {
395396
return (List<Double>) super.getActualInstance();
396397
}
397398
}

0 commit comments

Comments
 (0)