Interface HealthEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<HealthEvent.Builder,HealthEvent>,SdkBuilder<HealthEvent.Builder,HealthEvent>,SdkPojo
- Enclosing class:
- HealthEvent
public static interface HealthEvent.Builder extends SdkPojo, CopyableBuilder<HealthEvent.Builder,HealthEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HealthEvent.BuildercreatedAt(Instant createdAt)When the health event was created.HealthEvent.BuilderendedAt(Instant endedAt)The time when a health event ended.HealthEvent.BuildereventArn(String eventArn)The Amazon Resource Name (ARN) of the event.HealthEvent.BuildereventId(String eventId)The internally-generated identifier of a specific network traffic impairment health event.HealthEvent.BuilderhealthScoreThreshold(Double healthScoreThreshold)The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch Internet Monitor created the health event.HealthEvent.BuilderimpactedLocations(Collection<ImpactedLocation> impactedLocations)The locations impacted by the health event.HealthEvent.BuilderimpactedLocations(Consumer<ImpactedLocation.Builder>... impactedLocations)The locations impacted by the health event.HealthEvent.BuilderimpactedLocations(ImpactedLocation... impactedLocations)The locations impacted by the health event.HealthEvent.BuilderimpactType(String impactType)The type of impairment for a health event.HealthEvent.BuilderimpactType(HealthEventImpactType impactType)The type of impairment for a health event.HealthEvent.BuilderlastUpdatedAt(Instant lastUpdatedAt)When the health event was last updated.HealthEvent.BuilderpercentOfTotalTrafficImpacted(Double percentOfTotalTrafficImpacted)The impact on total traffic that a health event has, in increased latency or reduced availability.HealthEvent.BuilderstartedAt(Instant startedAt)When a health event started.HealthEvent.Builderstatus(String status)The status of a health event.HealthEvent.Builderstatus(HealthEventStatus status)The status of a health event.-
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
-
eventArn
HealthEvent.Builder eventArn(String eventArn)
The Amazon Resource Name (ARN) of the event.
- Parameters:
eventArn- The Amazon Resource Name (ARN) of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventId
HealthEvent.Builder eventId(String eventId)
The internally-generated identifier of a specific network traffic impairment health event.
- Parameters:
eventId- The internally-generated identifier of a specific network traffic impairment health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
HealthEvent.Builder startedAt(Instant startedAt)
When a health event started.
- Parameters:
startedAt- When a health event started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endedAt
HealthEvent.Builder endedAt(Instant endedAt)
The time when a health event ended. If the health event is still active, then the end time is not set.
- Parameters:
endedAt- The time when a health event ended. If the health event is still active, then the end time is not set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
HealthEvent.Builder createdAt(Instant createdAt)
When the health event was created.
- Parameters:
createdAt- When the health event was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedAt
HealthEvent.Builder lastUpdatedAt(Instant lastUpdatedAt)
When the health event was last updated.
- Parameters:
lastUpdatedAt- When the health event was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedLocations
HealthEvent.Builder impactedLocations(Collection<ImpactedLocation> impactedLocations)
The locations impacted by the health event.
- Parameters:
impactedLocations- The locations impacted by the health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedLocations
HealthEvent.Builder impactedLocations(ImpactedLocation... impactedLocations)
The locations impacted by the health event.
- Parameters:
impactedLocations- The locations impacted by the health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedLocations
HealthEvent.Builder impactedLocations(Consumer<ImpactedLocation.Builder>... impactedLocations)
The locations impacted by the health event.
This is a convenience method that creates an instance of theImpactedLocation.Builderavoiding the need to create one manually viaImpactedLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#impactedLocations(List.) - Parameters:
impactedLocations- a consumer that will call methods onImpactedLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#impactedLocations(java.util.Collection)
-
status
HealthEvent.Builder status(String status)
The status of a health event.
- Parameters:
status- The status of a health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthEventStatus,HealthEventStatus
-
status
HealthEvent.Builder status(HealthEventStatus status)
The status of a health event.
- Parameters:
status- The status of a health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthEventStatus,HealthEventStatus
-
percentOfTotalTrafficImpacted
HealthEvent.Builder percentOfTotalTrafficImpacted(Double percentOfTotalTrafficImpacted)
The impact on total traffic that a health event has, in increased latency or reduced availability. This is the percentage of how much latency has increased or availability has decreased during the event, compared to what is typical for traffic from this client location to the Amazon Web Services location using this client network.
- Parameters:
percentOfTotalTrafficImpacted- The impact on total traffic that a health event has, in increased latency or reduced availability. This is the percentage of how much latency has increased or availability has decreased during the event, compared to what is typical for traffic from this client location to the Amazon Web Services location using this client network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactType
HealthEvent.Builder impactType(String impactType)
The type of impairment for a health event.
- Parameters:
impactType- The type of impairment for a health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthEventImpactType,HealthEventImpactType
-
impactType
HealthEvent.Builder impactType(HealthEventImpactType impactType)
The type of impairment for a health event.
- Parameters:
impactType- The type of impairment for a health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HealthEventImpactType,HealthEventImpactType
-
healthScoreThreshold
HealthEvent.Builder healthScoreThreshold(Double healthScoreThreshold)
The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch Internet Monitor created the health event.
- Parameters:
healthScoreThreshold- The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch Internet Monitor created the health event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-