16
16
17
17
/** The definition of Entity V3 Service Spec object. */
18
18
@ JsonPropertyOrder ({
19
+ EntityV3ServiceSpec .JSON_PROPERTY_COMPONENT_OF ,
19
20
EntityV3ServiceSpec .JSON_PROPERTY_DEPENDS_ON ,
20
21
EntityV3ServiceSpec .JSON_PROPERTY_LANGUAGES ,
21
22
EntityV3ServiceSpec .JSON_PROPERTY_LIFECYCLE ,
26
27
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
27
28
public class EntityV3ServiceSpec {
28
29
@ JsonIgnore public boolean unparsed = false ;
30
+ public static final String JSON_PROPERTY_COMPONENT_OF = "componentOf" ;
31
+ private List <String > componentOf = null ;
32
+
29
33
public static final String JSON_PROPERTY_DEPENDS_ON = "dependsOn" ;
30
34
private List <String > dependsOn = null ;
31
35
@@ -41,6 +45,35 @@ public class EntityV3ServiceSpec {
41
45
public static final String JSON_PROPERTY_TYPE = "type" ;
42
46
private String type ;
43
47
48
+ public EntityV3ServiceSpec componentOf (List <String > componentOf ) {
49
+ this .componentOf = componentOf ;
50
+ return this ;
51
+ }
52
+
53
+ public EntityV3ServiceSpec addComponentOfItem (String componentOfItem ) {
54
+ if (this .componentOf == null ) {
55
+ this .componentOf = new ArrayList <>();
56
+ }
57
+ this .componentOf .add (componentOfItem );
58
+ return this ;
59
+ }
60
+
61
+ /**
62
+ * A list of components the service is a part of
63
+ *
64
+ * @return componentOf
65
+ */
66
+ @ jakarta .annotation .Nullable
67
+ @ JsonProperty (JSON_PROPERTY_COMPONENT_OF )
68
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
69
+ public List <String > getComponentOf () {
70
+ return componentOf ;
71
+ }
72
+
73
+ public void setComponentOf (List <String > componentOf ) {
74
+ this .componentOf = componentOf ;
75
+ }
76
+
44
77
public EntityV3ServiceSpec dependsOn (List <String > dependsOn ) {
45
78
this .dependsOn = dependsOn ;
46
79
return this ;
@@ -172,7 +205,8 @@ public boolean equals(Object o) {
172
205
return false ;
173
206
}
174
207
EntityV3ServiceSpec entityV3ServiceSpec = (EntityV3ServiceSpec ) o ;
175
- return Objects .equals (this .dependsOn , entityV3ServiceSpec .dependsOn )
208
+ return Objects .equals (this .componentOf , entityV3ServiceSpec .componentOf )
209
+ && Objects .equals (this .dependsOn , entityV3ServiceSpec .dependsOn )
176
210
&& Objects .equals (this .languages , entityV3ServiceSpec .languages )
177
211
&& Objects .equals (this .lifecycle , entityV3ServiceSpec .lifecycle )
178
212
&& Objects .equals (this .tier , entityV3ServiceSpec .tier )
@@ -181,13 +215,14 @@ public boolean equals(Object o) {
181
215
182
216
@ Override
183
217
public int hashCode () {
184
- return Objects .hash (dependsOn , languages , lifecycle , tier , type );
218
+ return Objects .hash (componentOf , dependsOn , languages , lifecycle , tier , type );
185
219
}
186
220
187
221
@ Override
188
222
public String toString () {
189
223
StringBuilder sb = new StringBuilder ();
190
224
sb .append ("class EntityV3ServiceSpec {\n " );
225
+ sb .append (" componentOf: " ).append (toIndentedString (componentOf )).append ("\n " );
191
226
sb .append (" dependsOn: " ).append (toIndentedString (dependsOn )).append ("\n " );
192
227
sb .append (" languages: " ).append (toIndentedString (languages )).append ("\n " );
193
228
sb .append (" lifecycle: " ).append (toIndentedString (lifecycle )).append ("\n " );
0 commit comments