Package com.datadog.api.client.v2.model
Class DowntimeCreateRequestAttributes
java.lang.Object
com.datadog.api.client.v2.model.DowntimeCreateRequestAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class DowntimeCreateRequestAttributes
extends Object
Downtime details.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDowntimeCreateRequestAttributes(DowntimeMonitorIdentifier monitorIdentifier, String scope) -
Method Summary
Modifier and TypeMethodDescriptionaddNotifyEndStatesItem(DowntimeNotifyEndStateTypes notifyEndStatesItem) addNotifyEndTypesItem(DowntimeNotifyEndStateActions notifyEndTypesItem) displayTimezone(String displayTimezone) booleanReturn true if this DowntimeCreateRequestAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The timezone in which to display the downtime's start and end times in Datadog applications.org.openapitools.jackson.nullable.JsonNullable<String>A message to include with notifications for this downtime.org.openapitools.jackson.nullable.JsonNullable<String>Monitor identifier for the downtime.If the first recovery notification during a downtime should be muted.States that will trigger a monitor notification when thenotify_end_typesaction occurs.Actions that will trigger a monitor notification if the downtime is in thenotify_end_typesstate.Schedule for the downtime.getScope()The scope to which the downtime applies.inthashCode()monitorIdentifier(DowntimeMonitorIdentifier monitorIdentifier) muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification) notifyEndStates(List<DowntimeNotifyEndStateTypes> notifyEndStates) notifyEndTypes(List<DowntimeNotifyEndStateActions> notifyEndTypes) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.schedule(DowntimeScheduleCreateRequest schedule) voidsetDisplayTimezone(String displayTimezone) voidsetDisplayTimezone_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> displayTimezone) voidsetMessage(String message) voidsetMessage_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> message) voidsetMonitorIdentifier(DowntimeMonitorIdentifier monitorIdentifier) voidsetMuteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification) voidsetNotifyEndStates(List<DowntimeNotifyEndStateTypes> notifyEndStates) voidsetNotifyEndTypes(List<DowntimeNotifyEndStateActions> notifyEndTypes) voidsetSchedule(DowntimeScheduleCreateRequest schedule) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DISPLAY_TIMEZONE
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_MONITOR_IDENTIFIER
- See Also:
-
JSON_PROPERTY_MUTE_FIRST_RECOVERY_NOTIFICATION
- See Also:
-
JSON_PROPERTY_NOTIFY_END_STATES
- See Also:
-
JSON_PROPERTY_NOTIFY_END_TYPES
- See Also:
-
JSON_PROPERTY_SCHEDULE
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
-
Constructor Details
-
DowntimeCreateRequestAttributes
public DowntimeCreateRequestAttributes() -
DowntimeCreateRequestAttributes
-
-
Method Details
-
displayTimezone
-
getDisplayTimezone
The timezone in which to display the downtime's start and end times in Datadog applications. This is not used as an offset for scheduling.- Returns:
- displayTimezone
-
getDisplayTimezone_JsonNullable
-
setDisplayTimezone_JsonNullable
public void setDisplayTimezone_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> displayTimezone) -
setDisplayTimezone
-
message
-
getMessage
A message to include with notifications for this downtime. Email notifications can be sent to specific users by using the same@usernamenotation as events.- Returns:
- message
-
getMessage_JsonNullable
-
setMessage_JsonNullable
-
setMessage
-
monitorIdentifier
public DowntimeCreateRequestAttributes monitorIdentifier(DowntimeMonitorIdentifier monitorIdentifier) -
getMonitorIdentifier
Monitor identifier for the downtime.- Returns:
- monitorIdentifier
-
setMonitorIdentifier
-
muteFirstRecoveryNotification
public DowntimeCreateRequestAttributes muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification) -
getMuteFirstRecoveryNotification
If the first recovery notification during a downtime should be muted.- Returns:
- muteFirstRecoveryNotification
-
setMuteFirstRecoveryNotification
-
notifyEndStates
public DowntimeCreateRequestAttributes notifyEndStates(List<DowntimeNotifyEndStateTypes> notifyEndStates) -
addNotifyEndStatesItem
public DowntimeCreateRequestAttributes addNotifyEndStatesItem(DowntimeNotifyEndStateTypes notifyEndStatesItem) -
getNotifyEndStates
States that will trigger a monitor notification when thenotify_end_typesaction occurs.- Returns:
- notifyEndStates
-
setNotifyEndStates
-
notifyEndTypes
public DowntimeCreateRequestAttributes notifyEndTypes(List<DowntimeNotifyEndStateActions> notifyEndTypes) -
addNotifyEndTypesItem
public DowntimeCreateRequestAttributes addNotifyEndTypesItem(DowntimeNotifyEndStateActions notifyEndTypesItem) -
getNotifyEndTypes
Actions that will trigger a monitor notification if the downtime is in thenotify_end_typesstate.- Returns:
- notifyEndTypes
-
setNotifyEndTypes
-
schedule
-
getSchedule
Schedule for the downtime.- Returns:
- schedule
-
setSchedule
-
scope
-
getScope
The scope to which the downtime applies. Must follow the common search syntax.- Returns:
- scope
-
setScope
-
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:
- DowntimeCreateRequestAttributes
-
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 DowntimeCreateRequestAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-