1313import com .fasterxml .jackson .annotation .JsonInclude ;
1414import com .fasterxml .jackson .annotation .JsonProperty ;
1515import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
16+ import java .util .ArrayList ;
1617import java .util .HashMap ;
18+ import java .util .List ;
1719import java .util .Map ;
1820import java .util .Objects ;
1921
2022/** The view of the world that the map should render. */
21- @ JsonPropertyOrder ({GeomapWidgetDefinitionView .JSON_PROPERTY_FOCUS })
23+ @ JsonPropertyOrder ({
24+ GeomapWidgetDefinitionView .JSON_PROPERTY_CUSTOM_EXTENT ,
25+ GeomapWidgetDefinitionView .JSON_PROPERTY_FOCUS
26+ })
2227@ jakarta .annotation .Generated (
2328 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
2429public class GeomapWidgetDefinitionView {
2530 @ JsonIgnore public boolean unparsed = false ;
31+ public static final String JSON_PROPERTY_CUSTOM_EXTENT = "custom_extent" ;
32+ private List <Double > customExtent = null ;
33+
2634 public static final String JSON_PROPERTY_FOCUS = "focus" ;
2735 private String focus ;
2836
@@ -34,13 +42,44 @@ public GeomapWidgetDefinitionView(
3442 this .focus = focus ;
3543 }
3644
45+ public GeomapWidgetDefinitionView customExtent (List <Double > customExtent ) {
46+ this .customExtent = customExtent ;
47+ return this ;
48+ }
49+
50+ public GeomapWidgetDefinitionView addCustomExtentItem (Double customExtentItem ) {
51+ if (this .customExtent == null ) {
52+ this .customExtent = new ArrayList <>();
53+ }
54+ this .customExtent .add (customExtentItem );
55+ return this ;
56+ }
57+
58+ /**
59+ * A custom extent of the map defined by an array of four numbers in the order <code>
60+ * [minLongitude, minLatitude, maxLongitude, maxLatitude]</code>.
61+ *
62+ * @return customExtent
63+ */
64+ @ jakarta .annotation .Nullable
65+ @ JsonProperty (JSON_PROPERTY_CUSTOM_EXTENT )
66+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
67+ public List <Double > getCustomExtent () {
68+ return customExtent ;
69+ }
70+
71+ public void setCustomExtent (List <Double > customExtent ) {
72+ this .customExtent = customExtent ;
73+ }
74+
3775 public GeomapWidgetDefinitionView focus (String focus ) {
3876 this .focus = focus ;
3977 return this ;
4078 }
4179
4280 /**
43- * The 2-letter ISO code of a country to focus the map on. Or <code>WORLD</code>.
81+ * The ISO code of a country, sub-division, or region to focus the map on. Or <code>WORLD</code>.
82+ * Mutually exclusive with <code>custom_extent</code>.
4483 *
4584 * @return focus
4685 */
@@ -110,20 +149,22 @@ public boolean equals(Object o) {
110149 return false ;
111150 }
112151 GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView ) o ;
113- return Objects .equals (this .focus , geomapWidgetDefinitionView .focus )
152+ return Objects .equals (this .customExtent , geomapWidgetDefinitionView .customExtent )
153+ && Objects .equals (this .focus , geomapWidgetDefinitionView .focus )
114154 && Objects .equals (
115155 this .additionalProperties , geomapWidgetDefinitionView .additionalProperties );
116156 }
117157
118158 @ Override
119159 public int hashCode () {
120- return Objects .hash (focus , additionalProperties );
160+ return Objects .hash (customExtent , focus , additionalProperties );
121161 }
122162
123163 @ Override
124164 public String toString () {
125165 StringBuilder sb = new StringBuilder ();
126166 sb .append ("class GeomapWidgetDefinitionView {\n " );
167+ sb .append (" customExtent: " ).append (toIndentedString (customExtent )).append ("\n " );
127168 sb .append (" focus: " ).append (toIndentedString (focus )).append ("\n " );
128169 sb .append (" additionalProperties: " )
129170 .append (toIndentedString (additionalProperties ))
0 commit comments