@Generated(value="software.amazon.awssdk:codegen") public final class EventType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EventType.Builder,EventType>
Contains the metadata about a type of event that is reported by Health. The EventType shows the
category, service, and the event type code of the event. For example, an issue might be the category,
EC2 the service, and AWS_EC2_SYSTEM_MAINTENANCE_EVENT the event type code.
You can use the DescribeEventTypes API operation to return this information about an event.
You can also use the Amazon CloudWatch Events console to create a rule so that you can get notified or take action when Health delivers a specific event to your Amazon Web Services account. For more information, see Monitor for Health events with Amazon CloudWatch Events in the Health User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EventType.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EventType.Builder |
builder() |
EventTypeCategory |
category()
A list of event type category codes.
|
String |
categoryAsString()
A list of event type category codes.
|
String |
code()
The unique identifier for the event type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends EventType.Builder> |
serializableBuilderClass() |
String |
service()
The Amazon Web Services service that is affected by the event.
|
EventType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String service()
The Amazon Web Services service that is affected by the event. For example, EC2, RDS.
EC2,
RDS.public final String code()
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
AWS_SERVICE_DESCRIPTION ; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT.public final EventTypeCategory category()
A list of event type category codes. Possible values are issue, accountNotification, or
scheduledChange. Currently, the investigation value isn't supported at this time.
If the service returns an enum value that is not available in the current SDK version, category will
return EventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
categoryAsString().
issue,
accountNotification, or scheduledChange. Currently, the
investigation value isn't supported at this time.EventTypeCategorypublic final String categoryAsString()
A list of event type category codes. Possible values are issue, accountNotification, or
scheduledChange. Currently, the investigation value isn't supported at this time.
If the service returns an enum value that is not available in the current SDK version, category will
return EventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
categoryAsString().
issue,
accountNotification, or scheduledChange. Currently, the
investigation value isn't supported at this time.EventTypeCategorypublic EventType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EventType.Builder,EventType>public static EventType.Builder builder()
public static Class<? extends EventType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.