/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Health { namespace Model { /** *

The number of entities that are affected by one or more events. Returned by * the DescribeEntityAggregates * operation.

See Also:

AWS * API Reference

*/ class EntityAggregate { public: AWS_HEALTH_API EntityAggregate(); AWS_HEALTH_API EntityAggregate(Aws::Utils::Json::JsonView jsonValue); AWS_HEALTH_API EntityAggregate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 *

*/ inline const Aws::String& GetEventArn() const{ return m_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 *

*/ inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; } /** *

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 *

*/ inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; } /** *

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 *

*/ inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); } /** *

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 *

*/ inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); } /** *

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 *

*/ inline EntityAggregate& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;} /** *

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 *

*/ inline EntityAggregate& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;} /** *

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 *

*/ inline EntityAggregate& WithEventArn(const char* value) { SetEventArn(value); return *this;} /** *

The number of entities that match the criteria for the specified events.

*/ inline int GetCount() const{ return m_count; } /** *

The number of entities that match the criteria for the specified events.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of entities that match the criteria for the specified events.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of entities that match the criteria for the specified events.

*/ inline EntityAggregate& WithCount(int value) { SetCount(value); return *this;} private: Aws::String m_eventArn; bool m_eventArnHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace Health } // namespace Aws