Package com.datadog.api.client.v2.model
Class AnnotationCreateAttributes
java.lang.Object
com.datadog.api.client.v2.model.AnnotationCreateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AnnotationCreateAttributes
extends Object
Attributes for creating or updating an annotation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationCreateAttributes(AnnotationColor color, String description, String pageId, Long startTime, AnnotationKind type) -
Method Summary
Modifier and TypeMethodDescriptionaddWidgetIdsItem(String widgetIdsItem) color(AnnotationColor color) description(String description) booleanReturn true if this AnnotationCreateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getColor()Color used to render the annotation in the UI.User-defined text attached to the annotation.End time of the annotation in milliseconds since the Unix epoch.org.openapitools.jackson.nullable.JsonNullable<Long>ID of the page the annotation belongs to, prefixed with the page type and joined by a colon (for example,dashboard:abc-def-xyzornotebook:1234567890).Start time of the annotation in milliseconds since the Unix epoch.getType()Kind of annotation.IDs of widgets the annotation is associated with.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetColor(AnnotationColor color) voidsetDescription(String description) voidsetEndTime(Long endTime) voidsetEndTime_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> endTime) voidvoidsetStartTime(Long startTime) voidsetType(AnnotationKind type) voidsetWidgetIds(List<String> widgetIds) toString()type(AnnotationKind type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_COLOR
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
JSON_PROPERTY_PAGE_ID
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_WIDGET_IDS
- See Also:
-
-
Constructor Details
-
AnnotationCreateAttributes
public AnnotationCreateAttributes() -
AnnotationCreateAttributes
public AnnotationCreateAttributes(AnnotationColor color, String description, String pageId, Long startTime, AnnotationKind type)
-
-
Method Details
-
color
-
getColor
Color used to render the annotation in the UI.- Returns:
- color
-
setColor
-
description
-
getDescription
User-defined text attached to the annotation.- Returns:
- description
-
setDescription
-
endTime
-
getEndTime
End time of the annotation in milliseconds since the Unix epoch. Required fortimeRegionannotations; omit or set to null forpointInTimeannotations.- Returns:
- endTime
-
getEndTime_JsonNullable
-
setEndTime_JsonNullable
-
setEndTime
-
pageId
-
getPageId
ID of the page the annotation belongs to, prefixed with the page type and joined by a colon (for example,dashboard:abc-def-xyzornotebook:1234567890).- Returns:
- pageId
-
setPageId
-
startTime
-
getStartTime
Start time of the annotation in milliseconds since the Unix epoch.- Returns:
- startTime
-
setStartTime
-
type
-
getType
Kind of annotation.pointInTimeannotations mark a single moment in time, whiletimeRegionannotations span a window of time and require anend_time.- Returns:
- type
-
setType
-
widgetIds
-
addWidgetIdsItem
-
getWidgetIds
IDs of widgets the annotation is associated with. When empty or omitted, the annotation applies to the whole page.- Returns:
- widgetIds
-
setWidgetIds
-
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:
- AnnotationCreateAttributes
-
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 AnnotationCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-