88
99import com .fasterxml .jackson .annotation .JsonAnyGetter ;
1010import com .fasterxml .jackson .annotation .JsonAnySetter ;
11- import com .fasterxml .jackson .annotation .JsonCreator ;
1211import com .fasterxml .jackson .annotation .JsonIgnore ;
1312import com .fasterxml .jackson .annotation .JsonInclude ;
1413import com .fasterxml .jackson .annotation .JsonProperty ;
1514import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
15+ import java .util .ArrayList ;
1616import java .util .HashMap ;
17+ import java .util .List ;
1718import java .util .Map ;
1819import java .util .Objects ;
1920
2021/** The view of the world that the map should render. */
21- @ JsonPropertyOrder ({GeomapWidgetDefinitionView .JSON_PROPERTY_FOCUS })
22+ @ JsonPropertyOrder ({
23+ GeomapWidgetDefinitionView .JSON_PROPERTY_CUSTOM_EXTENT ,
24+ GeomapWidgetDefinitionView .JSON_PROPERTY_FOCUS
25+ })
2226@ jakarta .annotation .Generated (
2327 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
2428public class GeomapWidgetDefinitionView {
2529 @ JsonIgnore public boolean unparsed = false ;
30+ public static final String JSON_PROPERTY_CUSTOM_EXTENT = "custom_extent" ;
31+ private List <Double > customExtent = null ;
32+
2633 public static final String JSON_PROPERTY_FOCUS = "focus" ;
2734 private String focus ;
2835
29- public GeomapWidgetDefinitionView () {}
36+ public GeomapWidgetDefinitionView customExtent (List <Double > customExtent ) {
37+ this .customExtent = customExtent ;
38+ return this ;
39+ }
3040
31- @ JsonCreator
32- public GeomapWidgetDefinitionView (
33- @ JsonProperty (required = true , value = JSON_PROPERTY_FOCUS ) String focus ) {
34- this .focus = focus ;
41+ public GeomapWidgetDefinitionView addCustomExtentItem (Double customExtentItem ) {
42+ if (this .customExtent == null ) {
43+ this .customExtent = new ArrayList <>();
44+ }
45+ this .customExtent .add (customExtentItem );
46+ return this ;
47+ }
48+
49+ /**
50+ * A custom extent of the map defined by an array of four numbers in the order <code>
51+ * [minLongitude, minLatitude, maxLongitude, maxLatitude]</code>. Mutually exclusive with <code>
52+ * focus</code>.
53+ *
54+ * @return customExtent
55+ */
56+ @ jakarta .annotation .Nullable
57+ @ JsonProperty (JSON_PROPERTY_CUSTOM_EXTENT )
58+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
59+ public List <Double > getCustomExtent () {
60+ return customExtent ;
61+ }
62+
63+ public void setCustomExtent (List <Double > customExtent ) {
64+ this .customExtent = customExtent ;
3565 }
3666
3767 public GeomapWidgetDefinitionView focus (String focus ) {
@@ -40,12 +70,14 @@ public GeomapWidgetDefinitionView focus(String focus) {
4070 }
4171
4272 /**
43- * The 2-letter ISO code of a country to focus the map on. Or <code>WORLD</code>.
73+ * The 2-letter ISO code of a country to focus the map on. Or <code>WORLD</code>. Mutually
74+ * exclusive with <code>custom_extent</code>.
4475 *
4576 * @return focus
4677 */
78+ @ jakarta .annotation .Nullable
4779 @ JsonProperty (JSON_PROPERTY_FOCUS )
48- @ JsonInclude (value = JsonInclude .Include .ALWAYS )
80+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
4981 public String getFocus () {
5082 return focus ;
5183 }
@@ -110,20 +142,22 @@ public boolean equals(Object o) {
110142 return false ;
111143 }
112144 GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView ) o ;
113- return Objects .equals (this .focus , geomapWidgetDefinitionView .focus )
145+ return Objects .equals (this .customExtent , geomapWidgetDefinitionView .customExtent )
146+ && Objects .equals (this .focus , geomapWidgetDefinitionView .focus )
114147 && Objects .equals (
115148 this .additionalProperties , geomapWidgetDefinitionView .additionalProperties );
116149 }
117150
118151 @ Override
119152 public int hashCode () {
120- return Objects .hash (focus , additionalProperties );
153+ return Objects .hash (customExtent , focus , additionalProperties );
121154 }
122155
123156 @ Override
124157 public String toString () {
125158 StringBuilder sb = new StringBuilder ();
126159 sb .append ("class GeomapWidgetDefinitionView {\n " );
160+ sb .append (" customExtent: " ).append (toIndentedString (customExtent )).append ("\n " );
127161 sb .append (" focus: " ).append (toIndentedString (focus )).append ("\n " );
128162 sb .append (" additionalProperties: " )
129163 .append (toIndentedString (additionalProperties ))
0 commit comments