@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AnnotationCreateAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_COLOR |
static String |
JSON_PROPERTY_DESCRIPTION |
static String |
JSON_PROPERTY_END_TIME |
static String |
JSON_PROPERTY_PAGE_ID |
static String |
JSON_PROPERTY_START_TIME |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_WIDGET_IDS |
boolean |
unparsed |
| Constructor and Description |
|---|
AnnotationCreateAttributes() |
AnnotationCreateAttributes(AnnotationColor color,
String description,
String pageId,
Long startTime,
AnnotationKind type) |
| Modifier and Type | Method and Description |
|---|---|
AnnotationCreateAttributes |
addWidgetIdsItem(String widgetIdsItem) |
AnnotationCreateAttributes |
color(AnnotationColor color) |
AnnotationCreateAttributes |
description(String description) |
AnnotationCreateAttributes |
endTime(Long endTime) |
boolean |
equals(Object o)
Return true if this AnnotationCreateAttributes 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.
|
AnnotationColor |
getColor()
Color used to render the annotation in the UI.
|
String |
getDescription()
User-defined text attached to the annotation.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getEndTime_JsonNullable() |
Long |
getEndTime()
End time of the annotation in milliseconds since the Unix epoch.
|
String |
getPageId()
ID of the page the annotation belongs to, prefixed with the page type and joined by a colon
(for example,
dashboard:abc-def-xyz or notebook:1234567890). |
Long |
getStartTime()
Start time of the annotation in milliseconds since the Unix epoch.
|
AnnotationKind |
getType()
Kind of annotation.
|
List<String> |
getWidgetIds()
IDs of widgets the annotation is associated with.
|
int |
hashCode() |
AnnotationCreateAttributes |
pageId(String pageId) |
AnnotationCreateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setColor(AnnotationColor color) |
void |
setDescription(String description) |
void |
setEndTime_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> endTime) |
void |
setEndTime(Long endTime) |
void |
setPageId(String pageId) |
void |
setStartTime(Long startTime) |
void |
setType(AnnotationKind type) |
void |
setWidgetIds(List<String> widgetIds) |
AnnotationCreateAttributes |
startTime(Long startTime) |
String |
toString() |
AnnotationCreateAttributes |
type(AnnotationKind type) |
AnnotationCreateAttributes |
widgetIds(List<String> widgetIds) |
public boolean unparsed
public static final String JSON_PROPERTY_COLOR
public static final String JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_END_TIME
public static final String JSON_PROPERTY_PAGE_ID
public static final String JSON_PROPERTY_START_TIME
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_WIDGET_IDS
public AnnotationCreateAttributes()
public AnnotationCreateAttributes(AnnotationColor color, String description, String pageId, Long startTime, AnnotationKind type)
public AnnotationCreateAttributes color(AnnotationColor color)
public AnnotationColor getColor()
public void setColor(AnnotationColor color)
public AnnotationCreateAttributes description(String description)
public String getDescription()
public void setDescription(String description)
public AnnotationCreateAttributes endTime(Long endTime)
@Nullable public Long getEndTime()
timeRegion
annotations; omit or set to null for pointInTime annotations.public org.openapitools.jackson.nullable.JsonNullable<Long> getEndTime_JsonNullable()
public void setEndTime_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> endTime)
public void setEndTime(Long endTime)
public AnnotationCreateAttributes pageId(String pageId)
public String getPageId()
dashboard:abc-def-xyz or notebook:1234567890).public void setPageId(String pageId)
public AnnotationCreateAttributes startTime(Long startTime)
public Long getStartTime()
public void setStartTime(Long startTime)
public AnnotationCreateAttributes type(AnnotationKind type)
public AnnotationKind getType()
pointInTime annotations mark a single moment in time, while
timeRegion annotations span a window of time and require an end_time.public void setType(AnnotationKind type)
public AnnotationCreateAttributes widgetIds(List<String> widgetIds)
public AnnotationCreateAttributes addWidgetIdsItem(String widgetIdsItem)
@Nullable public List<String> getWidgetIds()
public AnnotationCreateAttributes 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 © 2026. All rights reserved.