-
Notifications
You must be signed in to change notification settings - Fork 1
/
ApiQoSEndpointResponse.java
41 lines (35 loc) · 1.28 KB
/
ApiQoSEndpointResponse.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
* This is licensed software from AccelByte Inc, for limitations
* and restrictions contact your company contract manager.
*
* Code generated. DO NOT EDIT.
*/
package net.accelbyte.sdk.api.ams.models;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.*;
import lombok.*;
import net.accelbyte.sdk.core.Model;
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@Getter
@Setter
// @deprecated 2022-08-29 - All args constructor may cause problems. Use builder instead.
@AllArgsConstructor(onConstructor = @__(@Deprecated))
@NoArgsConstructor
public class ApiQoSEndpointResponse extends Model {
@JsonProperty("servers")
private List<ApiQoSServer> servers;
@JsonIgnore
public ApiQoSEndpointResponse createFromJson(String json) throws JsonProcessingException {
return new ObjectMapper().readValue(json, this.getClass());
}
@JsonIgnore
public List<ApiQoSEndpointResponse> createFromJsonList(String json)
throws JsonProcessingException {
return new ObjectMapper().readValue(json, new TypeReference<List<ApiQoSEndpointResponse>>() {});
}
}