@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Widget extends Object
Note: The layout property is required for widgets in dashboards
with free layout_type. For the new dashboard layout,
the layout property depends on the reflow_type of the dashboard. - If
reflow_type is fixed, layout is required. - If
reflow_type is auto, layout should not be set.
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_DEFINITION |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_LAYOUT |
boolean |
unparsed |
| Constructor and Description |
|---|
Widget() |
Widget(WidgetDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
Widget |
definition(WidgetDefinition definition) |
boolean |
equals(Object o)
Return true if this Widget object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
WidgetDefinition |
getDefinition()
|
Long |
getId()
ID of the widget.
|
WidgetLayout |
getLayout()
The layout for a widget on a
free or new dashboard layout
dashboard. |
int |
hashCode() |
Widget |
id(Long id) |
Widget |
layout(WidgetLayout layout) |
Widget |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDefinition(WidgetDefinition definition) |
void |
setId(Long id) |
void |
setLayout(WidgetLayout layout) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_DEFINITION
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_LAYOUT
public Widget()
public Widget(WidgetDefinition definition)
public Widget definition(WidgetDefinition definition)
public WidgetDefinition getDefinition()
public void setDefinition(WidgetDefinition definition)
@Nullable public Long getId()
public void setId(Long id)
public Widget layout(WidgetLayout layout)
@Nullable public WidgetLayout getLayout()
free or new dashboard layout
dashboard.public void setLayout(WidgetLayout layout)
public Widget putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.