@Generated(value="software.amazon.awssdk:codegen") public class EventType extends Object implements StructuredPojo, ToCopyableBuilder<EventType.Builder,EventType>
Metadata about a type of event that is reported by AWS Health. Data consists of the category (for example,
issue
), the service (for example, EC2
), and the event type code (for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
).
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 (
issue , scheduledChange , or
accountNotification ). |
String |
categoryAsString()
A list of event type category codes (
issue , scheduledChange , or
accountNotification ). |
String |
code()
The unique identifier for the event type.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends EventType.Builder> |
serializableBuilderClass() |
String |
service()
The AWS service that is affected by the event.
|
EventType.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String service()
The AWS service that is affected by the event. For example, EC2
, RDS
.
EC2
, RDS
.public 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 EventTypeCategory category()
A list of event type category codes (issue
, scheduledChange
, or
accountNotification
).
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
, scheduledChange
, or
accountNotification
).EventTypeCategory
public String categoryAsString()
A list of event type category codes (issue
, scheduledChange
, or
accountNotification
).
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
, scheduledChange
, or
accountNotification
).EventTypeCategory
public EventType.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EventType.Builder,EventType>
public static EventType.Builder builder()
public static Class<? extends EventType.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.