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,6 +42,36 @@ 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 ;
@@ -110,20 +148,22 @@ public boolean equals(Object o) {
110148 return false ;
111149 }
112150 GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView ) o ;
113- return Objects .equals (this .focus , geomapWidgetDefinitionView .focus )
151+ return Objects .equals (this .customExtent , geomapWidgetDefinitionView .customExtent )
152+ && Objects .equals (this .focus , geomapWidgetDefinitionView .focus )
114153 && Objects .equals (
115154 this .additionalProperties , geomapWidgetDefinitionView .additionalProperties );
116155 }
117156
118157 @ Override
119158 public int hashCode () {
120- return Objects .hash (focus , additionalProperties );
159+ return Objects .hash (customExtent , focus , additionalProperties );
121160 }
122161
123162 @ Override
124163 public String toString () {
125164 StringBuilder sb = new StringBuilder ();
126165 sb .append ("class GeomapWidgetDefinitionView {\n " );
166+ sb .append (" customExtent: " ).append (toIndentedString (customExtent )).append ("\n " );
127167 sb .append (" focus: " ).append (toIndentedString (focus )).append ("\n " );
128168 sb .append (" additionalProperties: " )
129169 .append (toIndentedString (additionalProperties ))
0 commit comments