|
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 | | -/** Assets related to the object, including title and url. */ |
| 21 | +/** Assets related to the object, including title, url, and tags. */ |
20 | 22 | @JsonPropertyOrder({ |
| 23 | + MetricAssetAttributes.JSON_PROPERTY_TAGS, |
21 | 24 | MetricAssetAttributes.JSON_PROPERTY_TITLE, |
22 | 25 | MetricAssetAttributes.JSON_PROPERTY_URL |
23 | 26 | }) |
24 | 27 | @jakarta.annotation.Generated( |
25 | 28 | value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") |
26 | 29 | public class MetricAssetAttributes { |
27 | 30 | @JsonIgnore public boolean unparsed = false; |
| 31 | + public static final String JSON_PROPERTY_TAGS = "tags"; |
| 32 | + private List<String> tags = null; |
| 33 | + |
28 | 34 | public static final String JSON_PROPERTY_TITLE = "title"; |
29 | 35 | private String title; |
30 | 36 |
|
31 | 37 | public static final String JSON_PROPERTY_URL = "url"; |
32 | 38 | private String url; |
33 | 39 |
|
| 40 | + public MetricAssetAttributes tags(List<String> tags) { |
| 41 | + this.tags = tags; |
| 42 | + return this; |
| 43 | + } |
| 44 | + |
| 45 | + public MetricAssetAttributes addTagsItem(String tagsItem) { |
| 46 | + if (this.tags == null) { |
| 47 | + this.tags = new ArrayList<>(); |
| 48 | + } |
| 49 | + this.tags.add(tagsItem); |
| 50 | + return this; |
| 51 | + } |
| 52 | + |
| 53 | + /** |
| 54 | + * List of tag keys used in the asset. |
| 55 | + * |
| 56 | + * @return tags |
| 57 | + */ |
| 58 | + @jakarta.annotation.Nullable |
| 59 | + @JsonProperty(JSON_PROPERTY_TAGS) |
| 60 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 61 | + public List<String> getTags() { |
| 62 | + return tags; |
| 63 | + } |
| 64 | + |
| 65 | + public void setTags(List<String> tags) { |
| 66 | + this.tags = tags; |
| 67 | + } |
| 68 | + |
34 | 69 | public MetricAssetAttributes title(String title) { |
35 | 70 | this.title = title; |
36 | 71 | return this; |
@@ -129,20 +164,22 @@ public boolean equals(Object o) { |
129 | 164 | return false; |
130 | 165 | } |
131 | 166 | MetricAssetAttributes metricAssetAttributes = (MetricAssetAttributes) o; |
132 | | - return Objects.equals(this.title, metricAssetAttributes.title) |
| 167 | + return Objects.equals(this.tags, metricAssetAttributes.tags) |
| 168 | + && Objects.equals(this.title, metricAssetAttributes.title) |
133 | 169 | && Objects.equals(this.url, metricAssetAttributes.url) |
134 | 170 | && Objects.equals(this.additionalProperties, metricAssetAttributes.additionalProperties); |
135 | 171 | } |
136 | 172 |
|
137 | 173 | @Override |
138 | 174 | public int hashCode() { |
139 | | - return Objects.hash(title, url, additionalProperties); |
| 175 | + return Objects.hash(tags, title, url, additionalProperties); |
140 | 176 | } |
141 | 177 |
|
142 | 178 | @Override |
143 | 179 | public String toString() { |
144 | 180 | StringBuilder sb = new StringBuilder(); |
145 | 181 | sb.append("class MetricAssetAttributes {\n"); |
| 182 | + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); |
146 | 183 | sb.append(" title: ").append(toIndentedString(title)).append("\n"); |
147 | 184 | sb.append(" url: ").append(toIndentedString(url)).append("\n"); |
148 | 185 | sb.append(" additionalProperties: ") |
|
0 commit comments