23
23
24
24
/** Object describing a monitor. */
25
25
@ JsonPropertyOrder ({
26
+ Monitor .JSON_PROPERTY_CLASSIFICATION ,
26
27
Monitor .JSON_PROPERTY_CREATED ,
27
28
Monitor .JSON_PROPERTY_CREATOR ,
28
29
Monitor .JSON_PROPERTY_DELETED ,
45
46
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
46
47
public class Monitor {
47
48
@ JsonIgnore public boolean unparsed = false ;
49
+ public static final String JSON_PROPERTY_CLASSIFICATION = "classification" ;
50
+ private String classification ;
51
+
48
52
public static final String JSON_PROPERTY_CREATED = "created" ;
49
53
private OffsetDateTime created ;
50
54
@@ -107,6 +111,18 @@ public Monitor(
107
111
this .unparsed |= !type .isValid ();
108
112
}
109
113
114
+ /**
115
+ * The classification of the monitor.
116
+ *
117
+ * @return classification
118
+ */
119
+ @ jakarta .annotation .Nullable
120
+ @ JsonProperty (JSON_PROPERTY_CLASSIFICATION )
121
+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
122
+ public String getClassification () {
123
+ return classification ;
124
+ }
125
+
110
126
/**
111
127
* Timestamp of the monitor creation.
112
128
*
@@ -525,7 +541,8 @@ public boolean equals(Object o) {
525
541
return false ;
526
542
}
527
543
Monitor monitor = (Monitor ) o ;
528
- return Objects .equals (this .created , monitor .created )
544
+ return Objects .equals (this .classification , monitor .classification )
545
+ && Objects .equals (this .created , monitor .created )
529
546
&& Objects .equals (this .creator , monitor .creator )
530
547
&& Objects .equals (this .deleted , monitor .deleted )
531
548
&& Objects .equals (this .id , monitor .id )
@@ -548,6 +565,7 @@ public boolean equals(Object o) {
548
565
@ Override
549
566
public int hashCode () {
550
567
return Objects .hash (
568
+ classification ,
551
569
created ,
552
570
creator ,
553
571
deleted ,
@@ -572,6 +590,7 @@ public int hashCode() {
572
590
public String toString () {
573
591
StringBuilder sb = new StringBuilder ();
574
592
sb .append ("class Monitor {\n " );
593
+ sb .append (" classification: " ).append (toIndentedString (classification )).append ("\n " );
575
594
sb .append (" created: " ).append (toIndentedString (created )).append ("\n " );
576
595
sb .append (" creator: " ).append (toIndentedString (creator )).append ("\n " );
577
596
sb .append (" deleted: " ).append (toIndentedString (deleted )).append ("\n " );
0 commit comments