@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EntityAggregate extends Object implements Serializable, Cloneable, StructuredPojo
The number of entities that are affected by one or more events. Returned by the DescribeEntityAggregates operation.
Constructor and Description |
---|
EntityAggregate() |
Modifier and Type | Method and Description |
---|---|
EntityAggregate |
addStatusesEntry(String key,
Integer value)
Add a single Statuses entry
|
EntityAggregate |
clearStatusesEntries()
Removes all the entries added into Statuses.
|
EntityAggregate |
clone() |
boolean |
equals(Object obj) |
Integer |
getCount()
The number of entities that match the criteria for the specified events.
|
String |
getEventArn()
The unique identifier for the event.
|
Map<String,Integer> |
getStatuses()
The number of affected entities aggregated by the entity status codes.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCount(Integer count)
The number of entities that match the criteria for the specified events.
|
void |
setEventArn(String eventArn)
The unique identifier for the event.
|
void |
setStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entity status codes.
|
String |
toString()
Returns a string representation of this object.
|
EntityAggregate |
withCount(Integer count)
The number of entities that match the criteria for the specified events.
|
EntityAggregate |
withEventArn(String eventArn)
The unique identifier for the event.
|
EntityAggregate |
withStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entity status codes.
|
public void setEventArn(String eventArn)
The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
eventArn
- The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public String getEventArn()
The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public EntityAggregate withEventArn(String eventArn)
The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
eventArn
- The unique identifier for the event. The event ARN has the
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public void setCount(Integer count)
The number of entities that match the criteria for the specified events.
count
- The number of entities that match the criteria for the specified events.public Integer getCount()
The number of entities that match the criteria for the specified events.
public EntityAggregate withCount(Integer count)
The number of entities that match the criteria for the specified events.
count
- The number of entities that match the criteria for the specified events.public Map<String,Integer> getStatuses()
The number of affected entities aggregated by the entity status codes.
public void setStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entity status codes.
statuses
- The number of affected entities aggregated by the entity status codes.public EntityAggregate withStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entity status codes.
statuses
- The number of affected entities aggregated by the entity status codes.public EntityAggregate addStatusesEntry(String key, Integer value)
public EntityAggregate clearStatusesEntries()
public String toString()
toString
in class Object
Object.toString()
public EntityAggregate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.