Class NotificationEvent
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<NotificationEvent.Builder,- NotificationEvent> 
 A NotificationEvent is a notification-focused representation of an event. They contain semantic
 information used by Channels to create end-user notifications.
 
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringIf the value ofaggregationEventTypeis notNONE, this is the Amazon Resource Event (ARN) of the parent aggregate notification.final AggregationEventTypeThe aggregation type of theNotificationConfiguration.final StringThe aggregation type of theNotificationConfiguration.final AggregationSummaryProvides additional information about how multiple notifications are grouped.static NotificationEvent.Builderbuilder()final InstantendTime()The end time of the event.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final EventStatusThe assessed nature of the event.final StringThe assessed nature of the event.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanhasMedia()For responses, this returns true if the service returned a value for the Media property.final booleanFor responses, this returns true if the service returned a value for the TextParts property.final Stringid()The unique identifier for aNotificationEvent.final List<MediaElement> media()A list of media elements.final MessageComponentsReturns the value of the MessageComponents property for this object.final NotificationTypeThe type of event causing the notification.final StringThe type of event causing the notification.final StringThe unique identifier of the organizational unit associated with the notification event.final SchemaVersionThe schema version of the Notification Event.final StringThe schema version of the Notification Event.static Class<? extends NotificationEvent.Builder> final StringThe source event URL.final StringThe detailed URL for the source event.final SourceEventMetadataThe source event metadata.final InstantThe notification event start time.final Map<String, TextPartValue> A list of text values.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
schemaVersionThe schema version of the Notification Event. If the service returns an enum value that is not available in the current SDK version, schemaVersionwill returnSchemaVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromschemaVersionAsString().- Returns:
- The schema version of the Notification Event.
- See Also:
 
- 
schemaVersionAsStringThe schema version of the Notification Event. If the service returns an enum value that is not available in the current SDK version, schemaVersionwill returnSchemaVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromschemaVersionAsString().- Returns:
- The schema version of the Notification Event.
- See Also:
 
- 
idThe unique identifier for a NotificationEvent.- Returns:
- The unique identifier for a NotificationEvent.
 
- 
sourceEventMetadataThe source event metadata. - Returns:
- The source event metadata.
 
- 
messageComponentsReturns the value of the MessageComponents property for this object.- Returns:
- The value of the MessageComponents property for this object.
 
- 
sourceEventDetailUrl
- 
sourceEventDetailUrlDisplayTextThe detailed URL for the source event. - Returns:
- The detailed URL for the source event.
 
- 
notificationTypeThe type of event causing the notification. - 
 Values: - 
 ALERT- 
 A notification about an event where something was triggered, initiated, reopened, deployed, or a threshold was breached. 
 
- 
 
- 
 WARNING- 
 A notification about an event where an issue is about to arise. For example, something is approaching a threshold. 
 
- 
 
- 
 ANNOUNCEMENT- 
 A notification about an important event. For example, a step in a workflow or escalation path or that a workflow was updated. 
 
- 
 
- 
 INFORMATIONAL- 
 A notification about informational messages. For example, recommendations, service announcements, or reminders. 
 
- 
 
 
- 
 
 If the service returns an enum value that is not available in the current SDK version, notificationTypewill returnNotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnotificationTypeAsString().- Returns:
- The type of event causing the notification.
         - 
         Values: - 
         ALERT- 
         A notification about an event where something was triggered, initiated, reopened, deployed, or a threshold was breached. 
 
- 
         
- 
         WARNING- 
         A notification about an event where an issue is about to arise. For example, something is approaching a threshold. 
 
- 
         
- 
         ANNOUNCEMENT- 
         A notification about an important event. For example, a step in a workflow or escalation path or that a workflow was updated. 
 
- 
         
- 
         INFORMATIONAL- 
         A notification about informational messages. For example, recommendations, service announcements, or reminders. 
 
- 
         
 
- 
         
 
- 
         
- See Also:
 
- 
 
- 
notificationTypeAsStringThe type of event causing the notification. - 
 Values: - 
 ALERT- 
 A notification about an event where something was triggered, initiated, reopened, deployed, or a threshold was breached. 
 
- 
 
- 
 WARNING- 
 A notification about an event where an issue is about to arise. For example, something is approaching a threshold. 
 
- 
 
- 
 ANNOUNCEMENT- 
 A notification about an important event. For example, a step in a workflow or escalation path or that a workflow was updated. 
 
- 
 
- 
 INFORMATIONAL- 
 A notification about informational messages. For example, recommendations, service announcements, or reminders. 
 
- 
 
 
- 
 
 If the service returns an enum value that is not available in the current SDK version, notificationTypewill returnNotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnotificationTypeAsString().- Returns:
- The type of event causing the notification.
         - 
         Values: - 
         ALERT- 
         A notification about an event where something was triggered, initiated, reopened, deployed, or a threshold was breached. 
 
- 
         
- 
         WARNING- 
         A notification about an event where an issue is about to arise. For example, something is approaching a threshold. 
 
- 
         
- 
         ANNOUNCEMENT- 
         A notification about an important event. For example, a step in a workflow or escalation path or that a workflow was updated. 
 
- 
         
- 
         INFORMATIONAL- 
         A notification about informational messages. For example, recommendations, service announcements, or reminders. 
 
- 
         
 
- 
         
 
- 
         
- See Also:
 
- 
 
- 
eventStatusThe assessed nature of the event. - 
 Values: - 
 HEALTHY- 
 All EventRulesareACTIVEand any call can be run.
 
- 
 
- 
 UNHEALTHY- 
 Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
 
 
- 
 
 If the service returns an enum value that is not available in the current SDK version, eventStatuswill returnEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventStatusAsString().- Returns:
- The assessed nature of the event.
         - 
         Values: - 
         HEALTHY- 
         All EventRulesareACTIVEand any call can be run.
 
- 
         
- 
         UNHEALTHY- 
         Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
         
 
- 
         
 
- 
         
- See Also:
 
- 
 
- 
eventStatusAsStringThe assessed nature of the event. - 
 Values: - 
 HEALTHY- 
 All EventRulesareACTIVEand any call can be run.
 
- 
 
- 
 UNHEALTHY- 
 Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
 
 
- 
 
 If the service returns an enum value that is not available in the current SDK version, eventStatuswill returnEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventStatusAsString().- Returns:
- The assessed nature of the event.
         - 
         Values: - 
         HEALTHY- 
         All EventRulesareACTIVEand any call can be run.
 
- 
         
- 
         UNHEALTHY- 
         Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
         
 
- 
         
 
- 
         
- See Also:
 
- 
 
- 
aggregationEventTypeThe aggregation type of the NotificationConfiguration.- 
 Values: - 
 AGGREGATE- 
 The notification event is an aggregate notification. Aggregate notifications summarize grouped events over a specified time period. 
 
- 
 
- 
 CHILD- 
 Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
 
- 
 NONE- 
 The notification isn't aggregated. 
 
- 
 
 
- 
 
 If the service returns an enum value that is not available in the current SDK version, aggregationEventTypewill returnAggregationEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationEventTypeAsString().- Returns:
- The aggregation type of the NotificationConfiguration.- 
         Values: - 
         AGGREGATE- 
         The notification event is an aggregate notification. Aggregate notifications summarize grouped events over a specified time period. 
 
- 
         
- 
         CHILD- 
         Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
         
- 
         NONE- 
         The notification isn't aggregated. 
 
- 
         
 
- 
         
 
- 
         
- See Also:
 
- 
 
- 
aggregationEventTypeAsStringThe aggregation type of the NotificationConfiguration.- 
 Values: - 
 AGGREGATE- 
 The notification event is an aggregate notification. Aggregate notifications summarize grouped events over a specified time period. 
 
- 
 
- 
 CHILD- 
 Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
 
- 
 NONE- 
 The notification isn't aggregated. 
 
- 
 
 
- 
 
 If the service returns an enum value that is not available in the current SDK version, aggregationEventTypewill returnAggregationEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationEventTypeAsString().- Returns:
- The aggregation type of the NotificationConfiguration.- 
         Values: - 
         AGGREGATE- 
         The notification event is an aggregate notification. Aggregate notifications summarize grouped events over a specified time period. 
 
- 
         
- 
         CHILD- 
         Some EventRulesareACTIVEand some areINACTIVE. Any call can be run.
 
- 
         
- 
         NONE- 
         The notification isn't aggregated. 
 
- 
         
 
- 
         
 
- 
         
- See Also:
 
- 
 
- 
aggregateNotificationEventArnIf the value of aggregationEventTypeis notNONE, this is the Amazon Resource Event (ARN) of the parent aggregate notification.This is omitted if notification isn't aggregated. - Returns:
- If the value of aggregationEventTypeis notNONE, this is the Amazon Resource Event (ARN) of the parent aggregate notification.This is omitted if notification isn't aggregated. 
 
- 
aggregationSummaryProvides additional information about how multiple notifications are grouped. - Returns:
- Provides additional information about how multiple notifications are grouped.
 
- 
startTimeThe notification event start time. - Returns:
- The notification event start time.
 
- 
endTime
- 
hasTextPartspublic final boolean hasTextParts()For responses, this returns true if the service returned a value for the TextParts property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
- 
textPartsA list of text values. 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 hasTextParts()method.- Returns:
- A list of text values.
 
- 
hasMediapublic final boolean hasMedia()For responses, this returns true if the service returned a value for the Media property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
- 
mediaA list of media elements. 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 hasMedia()method.- Returns:
- A list of media elements.
 
- 
organizationalUnitIdThe unique identifier of the organizational unit associated with the notification event. - Returns:
- The unique identifier of the organizational unit associated with the notification event.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<NotificationEvent.Builder,- NotificationEvent> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-