@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OrganizationEntityAggregate extends Object implements Serializable, Cloneable, StructuredPojo
The aggregate results of entities affected by the specified event in your organization. The results are aggregated by the entity status codes for the specified set of accountsIDs.
Constructor and Description |
---|
OrganizationEntityAggregate() |
Modifier and Type | Method and Description |
---|---|
OrganizationEntityAggregate |
addStatusesEntry(String key,
Integer value)
Add a single Statuses entry
|
OrganizationEntityAggregate |
clearStatusesEntries()
Removes all the entries added into Statuses.
|
OrganizationEntityAggregate |
clone() |
boolean |
equals(Object obj) |
List<AccountEntityAggregate> |
getAccounts()
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event.
|
Integer |
getCount()
The number of entities for the organization that match the filter criteria for the specified events.
|
String |
getEventArn()
A list of event ARNs (unique identifiers).
|
Map<String,Integer> |
getStatuses()
The number of affected entities aggregated by the entitiy status codes.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccounts(Collection<AccountEntityAggregate> accounts)
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event.
|
void |
setCount(Integer count)
The number of entities for the organization that match the filter criteria for the specified events.
|
void |
setEventArn(String eventArn)
A list of event ARNs (unique identifiers).
|
void |
setStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entitiy status codes.
|
String |
toString()
Returns a string representation of this object.
|
OrganizationEntityAggregate |
withAccounts(AccountEntityAggregate... accounts)
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event.
|
OrganizationEntityAggregate |
withAccounts(Collection<AccountEntityAggregate> accounts)
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event.
|
OrganizationEntityAggregate |
withCount(Integer count)
The number of entities for the organization that match the filter criteria for the specified events.
|
OrganizationEntityAggregate |
withEventArn(String eventArn)
A list of event ARNs (unique identifiers).
|
OrganizationEntityAggregate |
withStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entitiy status codes.
|
public void setEventArn(String eventArn)
A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
eventArn
- A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
public String getEventArn()
A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
public OrganizationEntityAggregate withEventArn(String eventArn)
A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
eventArn
- A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
public void setCount(Integer count)
The number of entities for the organization that match the filter criteria for the specified events.
count
- The number of entities for the organization that match the filter criteria for the specified events.public Integer getCount()
The number of entities for the organization that match the filter criteria for the specified events.
public OrganizationEntityAggregate withCount(Integer count)
The number of entities for the organization that match the filter criteria for the specified events.
count
- The number of entities for the organization that match the filter criteria for the specified events.public Map<String,Integer> getStatuses()
The number of affected entities aggregated by the entitiy status codes.
public void setStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entitiy status codes.
statuses
- The number of affected entities aggregated by the entitiy status codes.public OrganizationEntityAggregate withStatuses(Map<String,Integer> statuses)
The number of affected entities aggregated by the entitiy status codes.
statuses
- The number of affected entities aggregated by the entitiy status codes.public OrganizationEntityAggregate addStatusesEntry(String key, Integer value)
public OrganizationEntityAggregate clearStatusesEntries()
public List<AccountEntityAggregate> getAccounts()
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be empty in
the response.
awsAccountIds
provided in the request, this field will be
empty in the response.public void setAccounts(Collection<AccountEntityAggregate> accounts)
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be empty in
the response.
accounts
- A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be
empty in the response.public OrganizationEntityAggregate withAccounts(AccountEntityAggregate... accounts)
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be empty in
the response.
NOTE: This method appends the values to the existing list (if any). Use
setAccounts(java.util.Collection)
or withAccounts(java.util.Collection)
if you want to override
the existing values.
accounts
- A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be
empty in the response.public OrganizationEntityAggregate withAccounts(Collection<AccountEntityAggregate> accounts)
A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be empty in
the response.
accounts
- A list of entity aggregates for each of the specified accounts in your organization that are affected by a
specific event. If there are no awsAccountIds
provided in the request, this field will be
empty in the response.public String toString()
toString
in class Object
Object.toString()
public OrganizationEntityAggregate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.