@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AnnotationAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_AUTHOR_ID |
static String |
JSON_PROPERTY_COLOR |
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_DESCRIPTION |
static String |
JSON_PROPERTY_END_TIME |
static String |
JSON_PROPERTY_MODIFIED_AT |
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 |
|---|
AnnotationAttributes() |
AnnotationAttributes(String authorId,
AnnotationColor color,
Long createdAt,
String description,
Long endTime,
Long modifiedAt,
String pageId,
Long startTime,
AnnotationKind type) |
| Modifier and Type | Method and Description |
|---|---|
AnnotationAttributes |
addWidgetIdsItem(String widgetIdsItem) |
AnnotationAttributes |
authorId(String authorId) |
AnnotationAttributes |
color(AnnotationColor color) |
AnnotationAttributes |
createdAt(Long createdAt) |
AnnotationAttributes |
description(String description) |
AnnotationAttributes |
endTime(Long endTime) |
boolean |
equals(Object o)
Return true if this AnnotationAttributes 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.
|
String |
getAuthorId()
Identifier of the user who created the annotation.
|
AnnotationColor |
getColor()
Color used to render the annotation in the UI.
|
Long |
getCreatedAt()
Creation time of the annotation in milliseconds since the Unix epoch.
|
String |
getDescription()
User-defined text attached to the annotation.
|
Long |
getEndTime()
End time of the annotation in milliseconds since the Unix epoch.
|
Long |
getModifiedAt()
Last modification 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() |
AnnotationAttributes |
modifiedAt(Long modifiedAt) |
AnnotationAttributes |
pageId(String pageId) |
AnnotationAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setAuthorId(String authorId) |
void |
setColor(AnnotationColor color) |
void |
setCreatedAt(Long createdAt) |
void |
setDescription(String description) |
void |
setEndTime(Long endTime) |
void |
setModifiedAt(Long modifiedAt) |
void |
setPageId(String pageId) |
void |
setStartTime(Long startTime) |
void |
setType(AnnotationKind type) |
void |
setWidgetIds(List<String> widgetIds) |
AnnotationAttributes |
startTime(Long startTime) |
String |
toString() |
AnnotationAttributes |
type(AnnotationKind type) |
AnnotationAttributes |
widgetIds(List<String> widgetIds) |
public boolean unparsed
public static final String JSON_PROPERTY_AUTHOR_ID
public static final String JSON_PROPERTY_COLOR
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_END_TIME
public static final String JSON_PROPERTY_MODIFIED_AT
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 AnnotationAttributes()
public AnnotationAttributes(String authorId, AnnotationColor color, Long createdAt, String description, Long endTime, Long modifiedAt, String pageId, Long startTime, AnnotationKind type)
public AnnotationAttributes authorId(String authorId)
public String getAuthorId()
public void setAuthorId(String authorId)
public AnnotationAttributes color(AnnotationColor color)
public AnnotationColor getColor()
public void setColor(AnnotationColor color)
public AnnotationAttributes createdAt(Long createdAt)
public Long getCreatedAt()
public void setCreatedAt(Long createdAt)
public AnnotationAttributes description(String description)
public String getDescription()
public void setDescription(String description)
public AnnotationAttributes endTime(Long endTime)
@Nullable public Long getEndTime()
pointInTime
annotations.public void setEndTime(Long endTime)
public AnnotationAttributes modifiedAt(Long modifiedAt)
public Long getModifiedAt()
public void setModifiedAt(Long modifiedAt)
public AnnotationAttributes pageId(String pageId)
public String getPageId()
dashboard:abc-def-xyz or notebook:1234567890).public void setPageId(String pageId)
public AnnotationAttributes startTime(Long startTime)
public Long getStartTime()
public void setStartTime(Long startTime)
public AnnotationAttributes 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 AnnotationAttributes widgetIds(List<String> widgetIds)
public AnnotationAttributes addWidgetIdsItem(String widgetIdsItem)
@Nullable public List<String> getWidgetIds()
public AnnotationAttributes 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.