@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventType extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
EventType() |
| Modifier and Type | Method and Description |
|---|---|
EventType |
clone() |
boolean |
equals(Object obj) |
String |
getCategory()
A list of event type category codes.
|
String |
getCode()
The unique identifier for the event type.
|
String |
getService()
The Amazon Web Service that is affected by the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCategory(EventTypeCategory category)
A list of event type category codes.
|
void |
setCategory(String category)
A list of event type category codes.
|
void |
setCode(String code)
The unique identifier for the event type.
|
void |
setService(String service)
The Amazon Web Service that is affected by the event.
|
String |
toString()
Returns a string representation of this object.
|
EventType |
withCategory(EventTypeCategory category)
A list of event type category codes.
|
EventType |
withCategory(String category)
A list of event type category codes.
|
EventType |
withCode(String code)
The unique identifier for the event type.
|
EventType |
withService(String service)
The Amazon Web Service that is affected by the event.
|
public void setService(String service)
The Amazon Web Service that is affected by the event. For example, EC2, RDS.
service - The Amazon Web Service that is affected by the event. For example, EC2, RDS.public String getService()
The Amazon Web Service that is affected by the event. For example, EC2, RDS.
EC2, RDS.public EventType withService(String service)
The Amazon Web Service that is affected by the event. For example, EC2, RDS.
service - The Amazon Web Service that is affected by the event. For example, EC2, RDS.public void setCode(String code)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
code - The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION ; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT.public String getCode()
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 EventType withCode(String code)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION ; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
code - The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION ; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT.public void setCategory(String 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.
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.EventTypeCategorypublic String getCategory()
A list of event type category codes. Possible values are issue, accountNotification, or
scheduledChange. Currently, the investigation value isn't supported at this time.
issue,
accountNotification, or scheduledChange. Currently, the
investigation value isn't supported at this time.EventTypeCategorypublic EventType withCategory(String 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.
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.EventTypeCategorypublic void setCategory(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.
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.EventTypeCategorypublic EventType withCategory(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.
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.EventTypeCategorypublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.