@Generated(value="software.amazon.awssdk:codegen") public final class IncidentRecord extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IncidentRecord.Builder,IncidentRecord>
The record of the incident that's created when an incident occurs.
| Modifier and Type | Class and Description |
|---|---|
static interface |
IncidentRecord.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the incident record.
|
List<AutomationExecution> |
automationExecutions()
The runbook, or automation document, that's run at the beginning of the incident.
|
static IncidentRecord.Builder |
builder() |
ChatChannel |
chatChannel()
The chat channel used for collaboration during an incident.
|
Instant |
creationTime()
The time that Incident Manager created the incident record.
|
String |
dedupeString()
The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the
same account.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAutomationExecutions()
For responses, this returns true if the service returned a value for the AutomationExecutions property.
|
int |
hashCode() |
boolean |
hasNotificationTargets()
For responses, this returns true if the service returned a value for the NotificationTargets property.
|
Integer |
impact()
The impact of the incident on customers and applications.
|
IncidentRecordSource |
incidentRecordSource()
Details about the action that started the incident.
|
String |
lastModifiedBy()
Who modified the incident most recently.
|
Instant |
lastModifiedTime()
The time at which the incident was most recently modified.
|
List<NotificationTargetItem> |
notificationTargets()
The Amazon SNS targets that are notified when updates are made to an incident.
|
Instant |
resolvedTime()
The time at which the incident was resolved.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IncidentRecord.Builder> |
serializableBuilderClass() |
IncidentRecordStatus |
status()
The current status of the incident.
|
String |
statusAsString()
The current status of the incident.
|
String |
summary()
The summary of the incident.
|
String |
title()
The title of the incident.
|
IncidentRecord.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the incident record.
public final boolean hasAutomationExecutions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AutomationExecution> automationExecutions()
The runbook, or automation document, that's run at the beginning of the incident.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAutomationExecutions() method.
public final ChatChannel chatChannel()
The chat channel used for collaboration during an incident.
public final Instant creationTime()
The time that Incident Manager created the incident record.
public final String dedupeString()
The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the same account.
public final Integer impact()
The impact of the incident on customers and applications.
public final IncidentRecordSource incidentRecordSource()
Details about the action that started the incident.
public final String lastModifiedBy()
Who modified the incident most recently.
public final Instant lastModifiedTime()
The time at which the incident was most recently modified.
public final boolean hasNotificationTargets()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<NotificationTargetItem> notificationTargets()
The Amazon SNS targets that are notified when updates are made to an incident.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNotificationTargets() method.
public final Instant resolvedTime()
The time at which the incident was resolved. This appears as a timeline event.
public final IncidentRecordStatus status()
The current status of the incident.
If the service returns an enum value that is not available in the current SDK version, status will
return IncidentRecordStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
IncidentRecordStatuspublic final String statusAsString()
The current status of the incident.
If the service returns an enum value that is not available in the current SDK version, status will
return IncidentRecordStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
IncidentRecordStatuspublic final String summary()
The summary of the incident. The summary is a brief synopsis of what occurred, what's currently happening, and context of the incident.
public final String title()
The title of the incident.
public IncidentRecord.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<IncidentRecord.Builder,IncidentRecord>public static IncidentRecord.Builder builder()
public static Class<? extends IncidentRecord.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.