@Generated(value="software.amazon.awssdk:codegen") public final class GetHealthEventResponse extends InternetMonitorResponse implements ToCopyableBuilder<GetHealthEventResponse.Builder,GetHealthEventResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetHealthEventResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetHealthEventResponse.Builder |
builder() |
Instant |
createdAt()
The time when a health event was created.
|
Instant |
endedAt()
The time when a health event was resolved.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventArn()
The Amazon Resource Name (ARN) of the event.
|
String |
eventId()
The internally generated identifier of a health event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasImpactedLocations()
For responses, this returns true if the service returned a value for the ImpactedLocations property.
|
Double |
healthScoreThreshold()
The threshold percentage for health events when Amazon CloudWatch Internet Monitor creates a health event.
|
List<ImpactedLocation> |
impactedLocations()
The locations affected by a health event.
|
HealthEventImpactType |
impactType()
The type of impairment of a specific health event.
|
String |
impactTypeAsString()
The type of impairment of a specific health event.
|
Instant |
lastUpdatedAt()
The time when a health event was last updated or recalculated.
|
Double |
percentOfTotalTrafficImpacted()
The impact on total traffic that a health event has.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetHealthEventResponse.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The time when a health event started.
|
HealthEventStatus |
status()
The status of a health event.
|
String |
statusAsString()
The status of a health event.
|
GetHealthEventResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String eventArn()
The Amazon Resource Name (ARN) of the event.
public final String eventId()
The internally generated identifier of a health event.
public final Instant startedAt()
The time when a health event started.
public final Instant endedAt()
The time when a health event was resolved. If the health event is still active, the end time is not set.
public final Instant createdAt()
The time when a health event was created.
public final Instant lastUpdatedAt()
The time when a health event was last updated or recalculated.
public final boolean hasImpactedLocations()
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<ImpactedLocation> impactedLocations()
The locations affected by a health event.
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 hasImpactedLocations() method.
public final HealthEventStatus status()
The status of a health event.
If the service returns an enum value that is not available in the current SDK version, status will
return HealthEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
HealthEventStatuspublic final String statusAsString()
The status of a health event.
If the service returns an enum value that is not available in the current SDK version, status will
return HealthEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
HealthEventStatuspublic final Double percentOfTotalTrafficImpacted()
The impact on total traffic that a health event has.
public final HealthEventImpactType impactType()
The type of impairment of a specific health event.
If the service returns an enum value that is not available in the current SDK version, impactType will
return HealthEventImpactType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from impactTypeAsString().
HealthEventImpactTypepublic final String impactTypeAsString()
The type of impairment of a specific health event.
If the service returns an enum value that is not available in the current SDK version, impactType will
return HealthEventImpactType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from impactTypeAsString().
HealthEventImpactTypepublic final Double healthScoreThreshold()
The threshold percentage for health events when Amazon CloudWatch Internet Monitor creates a health event.
public GetHealthEventResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetHealthEventResponse.Builder,GetHealthEventResponse>toBuilder in class AwsResponsepublic static GetHealthEventResponse.Builder builder()
public static Class<? extends GetHealthEventResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.