Class EventType
- java.lang.Object
-
- software.amazon.awssdk.services.health.model.EventType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EventType.Builder,EventType>
@Generated("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
EventTypeshows the category, service, and the event type code of the event. For example, anissuemight be the category,EC2the service, andAWS_EC2_SYSTEM_MAINTENANCE_EVENTthe 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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEventType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventType.Builderbuilder()EventTypeCategorycategory()A list of event type category codes.StringcategoryAsString()A list of event type category codes.Stringcode()The unique identifier for the event type.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends EventType.Builder>serializableBuilderClass()Stringservice()The Amazon Web Services service that is affected by the event.EventType.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
service
public final String service()
The Amazon Web Services service that is affected by the event. For example,
EC2,RDS.- Returns:
- The Amazon Web Services service that is affected by the event. For example,
EC2,RDS.
-
code
public final String code()
The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION; for example,AWS_EC2_SYSTEM_MAINTENANCE_EVENT.- Returns:
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION; for example,AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
-
category
public final EventTypeCategory category()
A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time.If the service returns an enum value that is not available in the current SDK version,
categorywill returnEventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcategoryAsString().- Returns:
- A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time. - See Also:
EventTypeCategory
-
categoryAsString
public final String categoryAsString()
A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time.If the service returns an enum value that is not available in the current SDK version,
categorywill returnEventTypeCategory.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcategoryAsString().- Returns:
- A list of event type category codes. Possible values are
issue,accountNotification, orscheduledChange. Currently, theinvestigationvalue isn't supported at this time. - See Also:
EventTypeCategory
-
toBuilder
public EventType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EventType.Builder,EventType>
-
builder
public static EventType.Builder builder()
-
serializableBuilderClass
public static Class<? extends EventType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-