@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HealthEvent extends Object implements Serializable, Cloneable, StructuredPojo
Information about a health event created in a monitor in Amazon CloudWatch Internet Monitor.
| Constructor and Description |
|---|
HealthEvent() |
| Modifier and Type | Method and Description |
|---|---|
HealthEvent |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
When the health event was created.
|
Date |
getEndedAt()
The time when a health event ended.
|
String |
getEventArn()
The Amazon Resource Name (ARN) of the event.
|
String |
getEventId()
The internally generated identifier of a specific network traffic impairment health event.
|
List<ImpactedLocation> |
getImpactedLocations()
The locations impacted by the health event.
|
String |
getImpactType()
The type of impairment for a health event.
|
Date |
getLastUpdatedAt()
When the health event was last updated.
|
Double |
getPercentOfTotalTrafficImpacted()
The impact on global traffic monitored by this monitor for this health event.
|
Date |
getStartedAt()
When a health event started.
|
String |
getStatus()
Health event list member.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCreatedAt(Date createdAt)
When the health event was created.
|
void |
setEndedAt(Date endedAt)
The time when a health event ended.
|
void |
setEventArn(String eventArn)
The Amazon Resource Name (ARN) of the event.
|
void |
setEventId(String eventId)
The internally generated identifier of a specific network traffic impairment health event.
|
void |
setImpactedLocations(Collection<ImpactedLocation> impactedLocations)
The locations impacted by the health event.
|
void |
setImpactType(String impactType)
The type of impairment for a health event.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
When the health event was last updated.
|
void |
setPercentOfTotalTrafficImpacted(Double percentOfTotalTrafficImpacted)
The impact on global traffic monitored by this monitor for this health event.
|
void |
setStartedAt(Date startedAt)
When a health event started.
|
void |
setStatus(String status)
Health event list member.
|
String |
toString()
Returns a string representation of this object.
|
HealthEvent |
withCreatedAt(Date createdAt)
When the health event was created.
|
HealthEvent |
withEndedAt(Date endedAt)
The time when a health event ended.
|
HealthEvent |
withEventArn(String eventArn)
The Amazon Resource Name (ARN) of the event.
|
HealthEvent |
withEventId(String eventId)
The internally generated identifier of a specific network traffic impairment health event.
|
HealthEvent |
withImpactedLocations(Collection<ImpactedLocation> impactedLocations)
The locations impacted by the health event.
|
HealthEvent |
withImpactedLocations(ImpactedLocation... impactedLocations)
The locations impacted by the health event.
|
HealthEvent |
withImpactType(HealthEventImpactType impactType)
The type of impairment for a health event.
|
HealthEvent |
withImpactType(String impactType)
The type of impairment for a health event.
|
HealthEvent |
withLastUpdatedAt(Date lastUpdatedAt)
When the health event was last updated.
|
HealthEvent |
withPercentOfTotalTrafficImpacted(Double percentOfTotalTrafficImpacted)
The impact on global traffic monitored by this monitor for this health event.
|
HealthEvent |
withStartedAt(Date startedAt)
When a health event started.
|
HealthEvent |
withStatus(HealthEventStatus status)
Health event list member.
|
HealthEvent |
withStatus(String status)
Health event list member.
|
public void setEventArn(String eventArn)
The Amazon Resource Name (ARN) of the event.
eventArn - The Amazon Resource Name (ARN) of the event.public String getEventArn()
The Amazon Resource Name (ARN) of the event.
public HealthEvent withEventArn(String eventArn)
The Amazon Resource Name (ARN) of the event.
eventArn - The Amazon Resource Name (ARN) of the event.public void setEventId(String eventId)
The internally generated identifier of a specific network traffic impairment health event.
eventId - The internally generated identifier of a specific network traffic impairment health event.public String getEventId()
The internally generated identifier of a specific network traffic impairment health event.
public HealthEvent withEventId(String eventId)
The internally generated identifier of a specific network traffic impairment health event.
eventId - The internally generated identifier of a specific network traffic impairment health event.public void setStartedAt(Date startedAt)
When a health event started.
startedAt - When a health event started.public Date getStartedAt()
When a health event started.
public HealthEvent withStartedAt(Date startedAt)
When a health event started.
startedAt - When a health event started.public void setEndedAt(Date endedAt)
The time when a health event ended. If the health event is still active, then the end time is not set.
endedAt - The time when a health event ended. If the health event is still active, then the end time is not set.public Date getEndedAt()
The time when a health event ended. If the health event is still active, then the end time is not set.
public HealthEvent withEndedAt(Date endedAt)
The time when a health event ended. If the health event is still active, then the end time is not set.
endedAt - The time when a health event ended. If the health event is still active, then the end time is not set.public void setCreatedAt(Date createdAt)
When the health event was created.
createdAt - When the health event was created.public Date getCreatedAt()
When the health event was created.
public HealthEvent withCreatedAt(Date createdAt)
When the health event was created.
createdAt - When the health event was created.public void setLastUpdatedAt(Date lastUpdatedAt)
When the health event was last updated.
lastUpdatedAt - When the health event was last updated.public Date getLastUpdatedAt()
When the health event was last updated.
public HealthEvent withLastUpdatedAt(Date lastUpdatedAt)
When the health event was last updated.
lastUpdatedAt - When the health event was last updated.public List<ImpactedLocation> getImpactedLocations()
The locations impacted by the health event.
public void setImpactedLocations(Collection<ImpactedLocation> impactedLocations)
The locations impacted by the health event.
impactedLocations - The locations impacted by the health event.public HealthEvent withImpactedLocations(ImpactedLocation... impactedLocations)
The locations impacted by the health event.
NOTE: This method appends the values to the existing list (if any). Use
setImpactedLocations(java.util.Collection) or withImpactedLocations(java.util.Collection) if
you want to override the existing values.
impactedLocations - The locations impacted by the health event.public HealthEvent withImpactedLocations(Collection<ImpactedLocation> impactedLocations)
The locations impacted by the health event.
impactedLocations - The locations impacted by the health event.public void setStatus(String status)
Health event list member.
status - Health event list member.HealthEventStatuspublic String getStatus()
Health event list member.
HealthEventStatuspublic HealthEvent withStatus(String status)
Health event list member.
status - Health event list member.HealthEventStatuspublic HealthEvent withStatus(HealthEventStatus status)
Health event list member.
status - Health event list member.HealthEventStatuspublic void setPercentOfTotalTrafficImpacted(Double percentOfTotalTrafficImpacted)
The impact on global traffic monitored by this monitor for this health event.
percentOfTotalTrafficImpacted - The impact on global traffic monitored by this monitor for this health event.public Double getPercentOfTotalTrafficImpacted()
The impact on global traffic monitored by this monitor for this health event.
public HealthEvent withPercentOfTotalTrafficImpacted(Double percentOfTotalTrafficImpacted)
The impact on global traffic monitored by this monitor for this health event.
percentOfTotalTrafficImpacted - The impact on global traffic monitored by this monitor for this health event.public void setImpactType(String impactType)
The type of impairment for a health event.
impactType - The type of impairment for a health event.HealthEventImpactTypepublic String getImpactType()
The type of impairment for a health event.
HealthEventImpactTypepublic HealthEvent withImpactType(String impactType)
The type of impairment for a health event.
impactType - The type of impairment for a health event.HealthEventImpactTypepublic HealthEvent withImpactType(HealthEventImpactType impactType)
The type of impairment for a health event.
impactType - The type of impairment for a health event.HealthEventImpactTypepublic String toString()
toString in class ObjectObject.toString()public HealthEvent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.