|
12 | 12 | import com.fasterxml.jackson.annotation.JsonInclude; |
13 | 13 | import com.fasterxml.jackson.annotation.JsonProperty; |
14 | 14 | import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 15 | +import java.util.ArrayList; |
15 | 16 | import java.util.HashMap; |
| 17 | +import java.util.List; |
16 | 18 | import java.util.Map; |
17 | 19 | import java.util.Objects; |
18 | 20 |
|
19 | 21 | /** Meta for the response from the List Custom Costs endpoints. */ |
20 | 22 | @JsonPropertyOrder({ |
| 23 | + CustomCostListResponseMeta.JSON_PROPERTY_COUNT_BY_STATUS, |
| 24 | + CustomCostListResponseMeta.JSON_PROPERTY_PROVIDERS, |
21 | 25 | CustomCostListResponseMeta.JSON_PROPERTY_TOTAL_FILTERED_COUNT, |
22 | 26 | CustomCostListResponseMeta.JSON_PROPERTY_VERSION |
23 | 27 | }) |
24 | 28 | @jakarta.annotation.Generated( |
25 | 29 | value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") |
26 | 30 | public class CustomCostListResponseMeta { |
27 | 31 | @JsonIgnore public boolean unparsed = false; |
| 32 | + public static final String JSON_PROPERTY_COUNT_BY_STATUS = "count_by_status"; |
| 33 | + private Map<String, Long> countByStatus = null; |
| 34 | + |
| 35 | + public static final String JSON_PROPERTY_PROVIDERS = "providers"; |
| 36 | + private List<String> providers = null; |
| 37 | + |
28 | 38 | public static final String JSON_PROPERTY_TOTAL_FILTERED_COUNT = "total_filtered_count"; |
29 | 39 | private Long totalFilteredCount; |
30 | 40 |
|
31 | 41 | public static final String JSON_PROPERTY_VERSION = "version"; |
32 | 42 | private String version; |
33 | 43 |
|
| 44 | + public CustomCostListResponseMeta countByStatus(Map<String, Long> countByStatus) { |
| 45 | + this.countByStatus = countByStatus; |
| 46 | + return this; |
| 47 | + } |
| 48 | + |
| 49 | + public CustomCostListResponseMeta putCountByStatusItem(String key, Long countByStatusItem) { |
| 50 | + if (this.countByStatus == null) { |
| 51 | + this.countByStatus = new HashMap<>(); |
| 52 | + } |
| 53 | + this.countByStatus.put(key, countByStatusItem); |
| 54 | + return this; |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * Number of Custom Costs files per status. |
| 59 | + * |
| 60 | + * @return countByStatus |
| 61 | + */ |
| 62 | + @jakarta.annotation.Nullable |
| 63 | + @JsonProperty(JSON_PROPERTY_COUNT_BY_STATUS) |
| 64 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 65 | + public Map<String, Long> getCountByStatus() { |
| 66 | + return countByStatus; |
| 67 | + } |
| 68 | + |
| 69 | + public void setCountByStatus(Map<String, Long> countByStatus) { |
| 70 | + this.countByStatus = countByStatus; |
| 71 | + } |
| 72 | + |
| 73 | + public CustomCostListResponseMeta providers(List<String> providers) { |
| 74 | + this.providers = providers; |
| 75 | + return this; |
| 76 | + } |
| 77 | + |
| 78 | + public CustomCostListResponseMeta addProvidersItem(String providersItem) { |
| 79 | + if (this.providers == null) { |
| 80 | + this.providers = new ArrayList<>(); |
| 81 | + } |
| 82 | + this.providers.add(providersItem); |
| 83 | + return this; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * List of available providers. |
| 88 | + * |
| 89 | + * @return providers |
| 90 | + */ |
| 91 | + @jakarta.annotation.Nullable |
| 92 | + @JsonProperty(JSON_PROPERTY_PROVIDERS) |
| 93 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 94 | + public List<String> getProviders() { |
| 95 | + return providers; |
| 96 | + } |
| 97 | + |
| 98 | + public void setProviders(List<String> providers) { |
| 99 | + this.providers = providers; |
| 100 | + } |
| 101 | + |
34 | 102 | public CustomCostListResponseMeta totalFilteredCount(Long totalFilteredCount) { |
35 | 103 | this.totalFilteredCount = totalFilteredCount; |
36 | 104 | return this; |
@@ -129,21 +197,26 @@ public boolean equals(Object o) { |
129 | 197 | return false; |
130 | 198 | } |
131 | 199 | CustomCostListResponseMeta customCostListResponseMeta = (CustomCostListResponseMeta) o; |
132 | | - return Objects.equals(this.totalFilteredCount, customCostListResponseMeta.totalFilteredCount) |
| 200 | + return Objects.equals(this.countByStatus, customCostListResponseMeta.countByStatus) |
| 201 | + && Objects.equals(this.providers, customCostListResponseMeta.providers) |
| 202 | + && Objects.equals(this.totalFilteredCount, customCostListResponseMeta.totalFilteredCount) |
133 | 203 | && Objects.equals(this.version, customCostListResponseMeta.version) |
134 | 204 | && Objects.equals( |
135 | 205 | this.additionalProperties, customCostListResponseMeta.additionalProperties); |
136 | 206 | } |
137 | 207 |
|
138 | 208 | @Override |
139 | 209 | public int hashCode() { |
140 | | - return Objects.hash(totalFilteredCount, version, additionalProperties); |
| 210 | + return Objects.hash( |
| 211 | + countByStatus, providers, totalFilteredCount, version, additionalProperties); |
141 | 212 | } |
142 | 213 |
|
143 | 214 | @Override |
144 | 215 | public String toString() { |
145 | 216 | StringBuilder sb = new StringBuilder(); |
146 | 217 | sb.append("class CustomCostListResponseMeta {\n"); |
| 218 | + sb.append(" countByStatus: ").append(toIndentedString(countByStatus)).append("\n"); |
| 219 | + sb.append(" providers: ").append(toIndentedString(providers)).append("\n"); |
147 | 220 | sb.append(" totalFilteredCount: ").append(toIndentedString(totalFilteredCount)).append("\n"); |
148 | 221 | sb.append(" version: ").append(toIndentedString(version)).append("\n"); |
149 | 222 | sb.append(" additionalProperties: ") |
|
0 commit comments