-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathEntityV3Queue.java
More file actions
284 lines (247 loc) · 8.4 KB
/
EntityV3Queue.java
File metadata and controls
284 lines (247 loc) · 8.4 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*/
package com.datadog.api.client.v2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/** Schema for queue entities. */
@JsonPropertyOrder({
EntityV3Queue.JSON_PROPERTY_API_VERSION,
EntityV3Queue.JSON_PROPERTY_DATADOG,
EntityV3Queue.JSON_PROPERTY_EXTENSIONS,
EntityV3Queue.JSON_PROPERTY_INTEGRATIONS,
EntityV3Queue.JSON_PROPERTY_KIND,
EntityV3Queue.JSON_PROPERTY_METADATA,
EntityV3Queue.JSON_PROPERTY_SPEC
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class EntityV3Queue {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_API_VERSION = "apiVersion";
private EntityV3APIVersion apiVersion;
public static final String JSON_PROPERTY_DATADOG = "datadog";
private EntityV3QueueDatadog datadog;
public static final String JSON_PROPERTY_EXTENSIONS = "extensions";
private Map<String, Object> extensions = null;
public static final String JSON_PROPERTY_INTEGRATIONS = "integrations";
private EntityV3Integrations integrations;
public static final String JSON_PROPERTY_KIND = "kind";
private EntityV3QueueKind kind;
public static final String JSON_PROPERTY_METADATA = "metadata";
private EntityV3Metadata metadata;
public static final String JSON_PROPERTY_SPEC = "spec";
private EntityV3QueueSpec spec;
public EntityV3Queue() {}
@JsonCreator
public EntityV3Queue(
@JsonProperty(required = true, value = JSON_PROPERTY_API_VERSION)
EntityV3APIVersion apiVersion,
@JsonProperty(required = true, value = JSON_PROPERTY_KIND) EntityV3QueueKind kind,
@JsonProperty(required = true, value = JSON_PROPERTY_METADATA) EntityV3Metadata metadata) {
this.apiVersion = apiVersion;
this.unparsed |= !apiVersion.isValid();
this.kind = kind;
this.unparsed |= !kind.isValid();
this.metadata = metadata;
this.unparsed |= metadata.unparsed;
}
public EntityV3Queue apiVersion(EntityV3APIVersion apiVersion) {
this.apiVersion = apiVersion;
this.unparsed |= !apiVersion.isValid();
return this;
}
/**
* The version of the schema data that was used to populate this entity's data. This could be via
* the API, Terraform, or YAML file in a repository. The field is known as schema-version in the
* previous version.
*
* @return apiVersion
*/
@JsonProperty(JSON_PROPERTY_API_VERSION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EntityV3APIVersion getApiVersion() {
return apiVersion;
}
public void setApiVersion(EntityV3APIVersion apiVersion) {
if (!apiVersion.isValid()) {
this.unparsed = true;
}
this.apiVersion = apiVersion;
}
public EntityV3Queue datadog(EntityV3QueueDatadog datadog) {
this.datadog = datadog;
this.unparsed |= datadog.unparsed;
return this;
}
/**
* Datadog product integrations for the datastore entity.
*
* @return datadog
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATADOG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EntityV3QueueDatadog getDatadog() {
return datadog;
}
public void setDatadog(EntityV3QueueDatadog datadog) {
this.datadog = datadog;
}
public EntityV3Queue extensions(Map<String, Object> extensions) {
this.extensions = extensions;
return this;
}
public EntityV3Queue putExtensionsItem(String key, Object extensionsItem) {
if (this.extensions == null) {
this.extensions = new HashMap<>();
}
this.extensions.put(key, extensionsItem);
return this;
}
/**
* Custom extensions. This is the free-formed field to send client-side metadata. No Datadog
* features are affected by this field.
*
* @return extensions
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXTENSIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Object> getExtensions() {
return extensions;
}
public void setExtensions(Map<String, Object> extensions) {
this.extensions = extensions;
}
public EntityV3Queue integrations(EntityV3Integrations integrations) {
this.integrations = integrations;
this.unparsed |= integrations.unparsed;
return this;
}
/**
* A base schema for defining third-party integrations.
*
* @return integrations
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INTEGRATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EntityV3Integrations getIntegrations() {
return integrations;
}
public void setIntegrations(EntityV3Integrations integrations) {
this.integrations = integrations;
}
public EntityV3Queue kind(EntityV3QueueKind kind) {
this.kind = kind;
this.unparsed |= !kind.isValid();
return this;
}
/**
* The definition of Entity V3 Queue Kind object.
*
* @return kind
*/
@JsonProperty(JSON_PROPERTY_KIND)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EntityV3QueueKind getKind() {
return kind;
}
public void setKind(EntityV3QueueKind kind) {
if (!kind.isValid()) {
this.unparsed = true;
}
this.kind = kind;
}
public EntityV3Queue metadata(EntityV3Metadata metadata) {
this.metadata = metadata;
this.unparsed |= metadata.unparsed;
return this;
}
/**
* The definition of Entity V3 Metadata object.
*
* @return metadata
*/
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EntityV3Metadata getMetadata() {
return metadata;
}
public void setMetadata(EntityV3Metadata metadata) {
this.metadata = metadata;
}
public EntityV3Queue spec(EntityV3QueueSpec spec) {
this.spec = spec;
this.unparsed |= spec.unparsed;
return this;
}
/**
* The definition of Entity V3 Queue Spec object.
*
* @return spec
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SPEC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EntityV3QueueSpec getSpec() {
return spec;
}
public void setSpec(EntityV3QueueSpec spec) {
this.spec = spec;
}
/** Return true if this EntityV3Queue object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityV3Queue entityV3Queue = (EntityV3Queue) o;
return Objects.equals(this.apiVersion, entityV3Queue.apiVersion)
&& Objects.equals(this.datadog, entityV3Queue.datadog)
&& Objects.equals(this.extensions, entityV3Queue.extensions)
&& Objects.equals(this.integrations, entityV3Queue.integrations)
&& Objects.equals(this.kind, entityV3Queue.kind)
&& Objects.equals(this.metadata, entityV3Queue.metadata)
&& Objects.equals(this.spec, entityV3Queue.spec);
}
@Override
public int hashCode() {
return Objects.hash(apiVersion, datadog, extensions, integrations, kind, metadata, spec);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityV3Queue {\n");
sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n");
sb.append(" datadog: ").append(toIndentedString(datadog)).append("\n");
sb.append(" extensions: ").append(toIndentedString(extensions)).append("\n");
sb.append(" integrations: ").append(toIndentedString(integrations)).append("\n");
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" spec: ").append(toIndentedString(spec)).append("\n");
sb.append('}');
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}