@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ComparisonDuration extends Object
type value or set type to
custom_timeframe and provide custom_timeframe with explicit millisecond epoch
bounds.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CUSTOM_TIMEFRAME |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
ComparisonDuration() |
ComparisonDuration(ComparisonDurationType type) |
| Modifier and Type | Method and Description |
|---|---|
ComparisonDuration |
customTimeframe(ComparisonCustomTimeframe customTimeframe) |
boolean |
equals(Object o)
Return true if this ComparisonDuration 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.
|
ComparisonCustomTimeframe |
getCustomTimeframe()
Fixed time range for a
custom_timeframe comparison. |
ComparisonDurationType |
getType()
The comparison window type.
|
int |
hashCode() |
ComparisonDuration |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCustomTimeframe(ComparisonCustomTimeframe customTimeframe) |
void |
setType(ComparisonDurationType type) |
String |
toString() |
ComparisonDuration |
type(ComparisonDurationType type) |
public boolean unparsed
public static final String JSON_PROPERTY_CUSTOM_TIMEFRAME
public static final String JSON_PROPERTY_TYPE
public ComparisonDuration()
public ComparisonDuration(ComparisonDurationType type)
public ComparisonDuration customTimeframe(ComparisonCustomTimeframe customTimeframe)
@Nullable public ComparisonCustomTimeframe getCustomTimeframe()
custom_timeframe comparison.public void setCustomTimeframe(ComparisonCustomTimeframe customTimeframe)
public ComparisonDuration type(ComparisonDurationType type)
public ComparisonDurationType getType()
public void setType(ComparisonDurationType type)
public ComparisonDuration 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.