@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventType extends Object implements Serializable, Cloneable, StructuredPojo
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).
| 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 (
issue, scheduledChange, or
accountNotification). |
String |
getCode()
The unique identifier for the event type.
|
String |
getService()
The AWS 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 (
issue, scheduledChange, or
accountNotification). |
void |
setCategory(String category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
void |
setCode(String code)
The unique identifier for the event type.
|
void |
setService(String service)
The AWS service that is affected by the event.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EventType |
withCategory(EventTypeCategory category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
EventType |
withCategory(String category)
A list of event type category codes (
issue, scheduledChange, or
accountNotification). |
EventType |
withCode(String code)
The unique identifier for the event type.
|
EventType |
withService(String service)
The AWS service that is affected by the event.
|
public void setService(String service)
The AWS service that is affected by the event. For example, EC2, RDS.
service - The AWS service that is affected by the event. For example, EC2, RDS.public String getService()
The AWS service that is affected by the event. For example, EC2, RDS.
EC2, RDS.public EventType withService(String service)
The AWS service that is affected by the event. For example, EC2, RDS.
service - The AWS 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 (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic String getCategory()
A list of event type category codes (issue, scheduledChange, or
accountNotification).
issue, scheduledChange, or
accountNotification).EventTypeCategorypublic EventType withCategory(String category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic void setCategory(EventTypeCategory category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).EventTypeCategorypublic EventType withCategory(EventTypeCategory category)
A list of event type category codes (issue, scheduledChange, or
accountNotification).
category - A list of event type category codes (issue, scheduledChange, or
accountNotification).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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.