Interface NotificationEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<NotificationEvent.Builder,NotificationEvent>,SdkBuilder<NotificationEvent.Builder,NotificationEvent>,SdkPojo
- Enclosing class:
- NotificationEvent
public static interface NotificationEvent.Builder extends SdkPojo, CopyableBuilder<NotificationEvent.Builder,NotificationEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NotificationEvent.BuilderaggregateNotificationEventArn(String aggregateNotificationEventArn)If the value ofaggregationEventTypeis notNONE, this is the Amazon Resource Event (ARN) of the parent aggregate notification.NotificationEvent.BuilderaggregationEventType(String aggregationEventType)The aggregation type of theNotificationConfiguration.NotificationEvent.BuilderaggregationEventType(AggregationEventType aggregationEventType)The aggregation type of theNotificationConfiguration.default NotificationEvent.BuilderaggregationSummary(Consumer<AggregationSummary.Builder> aggregationSummary)Provides additional information about how multiple notifications are grouped.NotificationEvent.BuilderaggregationSummary(AggregationSummary aggregationSummary)Provides additional information about how multiple notifications are grouped.NotificationEvent.BuilderendTime(Instant endTime)The end time of the event.NotificationEvent.BuildereventStatus(String eventStatus)The assessed nature of the event.NotificationEvent.BuildereventStatus(EventStatus eventStatus)The assessed nature of the event.NotificationEvent.Builderid(String id)The unique identifier for aNotificationEvent.NotificationEvent.Buildermedia(Collection<MediaElement> media)A list of media elements.NotificationEvent.Buildermedia(Consumer<MediaElement.Builder>... media)A list of media elements.NotificationEvent.Buildermedia(MediaElement... media)A list of media elements.default NotificationEvent.BuildermessageComponents(Consumer<MessageComponents.Builder> messageComponents)Sets the value of the MessageComponents property for this object.NotificationEvent.BuildermessageComponents(MessageComponents messageComponents)Sets the value of the MessageComponents property for this object.NotificationEvent.BuildernotificationType(String notificationType)The type of event causing the notification.NotificationEvent.BuildernotificationType(NotificationType notificationType)The type of event causing the notification.NotificationEvent.BuilderschemaVersion(String schemaVersion)The schema version of the Notification Event.NotificationEvent.BuilderschemaVersion(SchemaVersion schemaVersion)The schema version of the Notification Event.NotificationEvent.BuildersourceEventDetailUrl(String sourceEventDetailUrl)The source event URL.NotificationEvent.BuildersourceEventDetailUrlDisplayText(String sourceEventDetailUrlDisplayText)The detailed URL for the source event.default NotificationEvent.BuildersourceEventMetadata(Consumer<SourceEventMetadata.Builder> sourceEventMetadata)The source event metadata.NotificationEvent.BuildersourceEventMetadata(SourceEventMetadata sourceEventMetadata)The source event metadata.NotificationEvent.BuilderstartTime(Instant startTime)The notification event start time.NotificationEvent.BuildertextParts(Map<String,TextPartValue> textParts)A list of text values.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
schemaVersion
NotificationEvent.Builder schemaVersion(String schemaVersion)
The schema version of the Notification Event.
- Parameters:
schemaVersion- The schema version of the Notification Event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SchemaVersion,SchemaVersion
-
schemaVersion
NotificationEvent.Builder schemaVersion(SchemaVersion schemaVersion)
The schema version of the Notification Event.
- Parameters:
schemaVersion- The schema version of the Notification Event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SchemaVersion,SchemaVersion
-
id
NotificationEvent.Builder id(String id)
The unique identifier for a
NotificationEvent.- Parameters:
id- The unique identifier for aNotificationEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceEventMetadata
NotificationEvent.Builder sourceEventMetadata(SourceEventMetadata sourceEventMetadata)
The source event metadata.
- Parameters:
sourceEventMetadata- The source event metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceEventMetadata
default NotificationEvent.Builder sourceEventMetadata(Consumer<SourceEventMetadata.Builder> sourceEventMetadata)
The source event metadata.
This is a convenience method that creates an instance of theSourceEventMetadata.Builderavoiding the need to create one manually viaSourceEventMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceEventMetadata(SourceEventMetadata).- Parameters:
sourceEventMetadata- a consumer that will call methods onSourceEventMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sourceEventMetadata(SourceEventMetadata)
-
messageComponents
NotificationEvent.Builder messageComponents(MessageComponents messageComponents)
Sets the value of the MessageComponents property for this object.- Parameters:
messageComponents- The new value for the MessageComponents property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageComponents
default NotificationEvent.Builder messageComponents(Consumer<MessageComponents.Builder> messageComponents)
Sets the value of the MessageComponents property for this object. This is a convenience method that creates an instance of theMessageComponents.Builderavoiding the need to create one manually viaMessageComponents.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomessageComponents(MessageComponents).- Parameters:
messageComponents- a consumer that will call methods onMessageComponents.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
messageComponents(MessageComponents)
-
sourceEventDetailUrl
NotificationEvent.Builder sourceEventDetailUrl(String sourceEventDetailUrl)
The source event URL.
- Parameters:
sourceEventDetailUrl- The source event URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceEventDetailUrlDisplayText
NotificationEvent.Builder sourceEventDetailUrlDisplayText(String sourceEventDetailUrlDisplayText)
The detailed URL for the source event.
- Parameters:
sourceEventDetailUrlDisplayText- The detailed URL for the source event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationType
NotificationEvent.Builder notificationType(String notificationType)
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.
-
-
- Parameters:
notificationType- 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.
-
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NotificationType,NotificationType
-
-
notificationType
NotificationEvent.Builder notificationType(NotificationType notificationType)
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.
-
-
- Parameters:
notificationType- 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.
-
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NotificationType,NotificationType
-
-
eventStatus
NotificationEvent.Builder eventStatus(String eventStatus)
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.
-
-
- Parameters:
eventStatus- 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.
-
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventStatus,EventStatus
-
-
eventStatus
NotificationEvent.Builder eventStatus(EventStatus eventStatus)
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.
-
-
- Parameters:
eventStatus- 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.
-
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventStatus,EventStatus
-
-
aggregationEventType
NotificationEvent.Builder aggregationEventType(String aggregationEventType)
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.
-
-
- Parameters:
aggregationEventType- The aggregation type of theNotificationConfiguration.-
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.
-
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AggregationEventType,AggregationEventType
-
-
aggregationEventType
NotificationEvent.Builder aggregationEventType(AggregationEventType aggregationEventType)
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.
-
-
- Parameters:
aggregationEventType- The aggregation type of theNotificationConfiguration.-
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.
-
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AggregationEventType,AggregationEventType
-
-
aggregateNotificationEventArn
NotificationEvent.Builder aggregateNotificationEventArn(String aggregateNotificationEventArn)
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.
- Parameters:
aggregateNotificationEventArn- If the value ofaggregationEventTypeis notNONE, this is the Amazon Resource Event (ARN) of the parent aggregate notification.This is omitted if notification isn't aggregated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aggregationSummary
NotificationEvent.Builder aggregationSummary(AggregationSummary aggregationSummary)
Provides additional information about how multiple notifications are grouped.
- Parameters:
aggregationSummary- Provides additional information about how multiple notifications are grouped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aggregationSummary
default NotificationEvent.Builder aggregationSummary(Consumer<AggregationSummary.Builder> aggregationSummary)
Provides additional information about how multiple notifications are grouped.
This is a convenience method that creates an instance of theAggregationSummary.Builderavoiding the need to create one manually viaAggregationSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaggregationSummary(AggregationSummary).- Parameters:
aggregationSummary- a consumer that will call methods onAggregationSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
aggregationSummary(AggregationSummary)
-
startTime
NotificationEvent.Builder startTime(Instant startTime)
The notification event start time.
- Parameters:
startTime- The notification event start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
NotificationEvent.Builder endTime(Instant endTime)
The end time of the event.
- Parameters:
endTime- The end time of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textParts
NotificationEvent.Builder textParts(Map<String,TextPartValue> textParts)
A list of text values.
- Parameters:
textParts- A list of text values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
media
NotificationEvent.Builder media(Collection<MediaElement> media)
A list of media elements.
- Parameters:
media- A list of media elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
media
NotificationEvent.Builder media(MediaElement... media)
A list of media elements.
- Parameters:
media- A list of media elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
media
NotificationEvent.Builder media(Consumer<MediaElement.Builder>... media)
A list of media elements.
This is a convenience method that creates an instance of theMediaElement.Builderavoiding the need to create one manually viaMediaElement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#media(List.) - Parameters:
media- a consumer that will call methods onMediaElement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#media(java.util.Collection)
-
-