Package com.datadog.api.client.v1.model
Class ImageWidgetDefinition
java.lang.Object
com.datadog.api.client.v1.model.ImageWidgetDefinition
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ImageWidgetDefinition
extends Object
The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or
animated GIF.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ImageWidgetDefinition object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether to display a background or not.Whether to display a border or not.Horizontal alignment.Size of the margins around the image.How to size the image on the widget.getType()Type of the image widget.getUrl()URL of the image.URL of the image in dark mode.Vertical alignment.hasBackground(Boolean hasBackground) inthashCode()horizontalAlign(WidgetHorizontalAlign horizontalAlign) margin(WidgetMargin margin) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetHasBackground(Boolean hasBackground) voidsetHasBorder(Boolean hasBorder) voidsetHorizontalAlign(WidgetHorizontalAlign horizontalAlign) voidsetMargin(WidgetMargin margin) voidsetSizing(WidgetImageSizing sizing) voidvoidvoidsetUrlDarkTheme(String urlDarkTheme) voidsetVerticalAlign(WidgetVerticalAlign verticalAlign) sizing(WidgetImageSizing sizing) toString()urlDarkTheme(String urlDarkTheme) verticalAlign(WidgetVerticalAlign verticalAlign)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_HAS_BACKGROUND
- See Also:
-
JSON_PROPERTY_HAS_BORDER
- See Also:
-
JSON_PROPERTY_HORIZONTAL_ALIGN
- See Also:
-
JSON_PROPERTY_MARGIN
- See Also:
-
JSON_PROPERTY_SIZING
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
JSON_PROPERTY_URL_DARK_THEME
- See Also:
-
JSON_PROPERTY_VERTICAL_ALIGN
- See Also:
-
-
Constructor Details
-
ImageWidgetDefinition
public ImageWidgetDefinition() -
ImageWidgetDefinition
-
-
Method Details
-
hasBackground
-
getHasBackground
Whether to display a background or not.- Returns:
- hasBackground
-
setHasBackground
-
hasBorder
-
getHasBorder
Whether to display a border or not.- Returns:
- hasBorder
-
setHasBorder
-
horizontalAlign
-
getHorizontalAlign
Horizontal alignment.- Returns:
- horizontalAlign
-
setHorizontalAlign
-
margin
-
getMargin
Size of the margins around the image. Note:smallandlargevalues are deprecated.- Returns:
- margin
-
setMargin
-
sizing
-
getSizing
How to size the image on the widget. The values are based on the imageobject-fitCSS properties. Note:zoom,fitandcentervalues are deprecated.- Returns:
- sizing
-
setSizing
-
type
-
getType
Type of the image widget.- Returns:
- type
-
setType
-
url
-
getUrl
URL of the image.- Returns:
- url
-
setUrl
-
urlDarkTheme
-
getUrlDarkTheme
URL of the image in dark mode.- Returns:
- urlDarkTheme
-
setUrlDarkTheme
-
verticalAlign
-
getVerticalAlign
Vertical alignment.- Returns:
- verticalAlign
-
setVerticalAlign
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- ImageWidgetDefinition
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this ImageWidgetDefinition object is equal to o. -
hashCode
public int hashCode() -
toString
-