/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Summary information about an AWS Health event. AWS Health events can
* be public or account-specific: Public events might be
* service events that are not specific to an AWS account. For example, if there is
* an issue with an AWS Region, AWS Health provides information about the event,
* even if you don't use services or resources in that Region.
* Account-specific events are specific to either your AWS account or an
* account in your organization. For example, if there's an issue with Amazon
* Elastic Compute Cloud in a Region that you use, AWS Health provides information
* about the event and the affected resources in the account. You can determine if an event is public or account-specific by using the
*
* eventScopeCode parameter. For more information, see eventScopeCode.See
* Also:
AWS API
* Reference
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The unique identifier for the event. Format:
* arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
* . Example: Example:
* arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
*
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The AWS service that is affected by the event. For example, EC2,
* RDS.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The unique identifier for the event type. The format is
* AWS_SERVICE_DESCRIPTION ; for example,
* AWS_EC2_SYSTEM_MAINTENANCE_EVENT.
The category of the event. Possible values are issue,
* scheduledChange, and accountNotification.
The category of the event. Possible values are issue,
* scheduledChange, and accountNotification.
The category of the event. Possible values are issue,
* scheduledChange, and accountNotification.
The category of the event. Possible values are issue,
* scheduledChange, and accountNotification.
The category of the event. Possible values are issue,
* scheduledChange, and accountNotification.
The category of the event. Possible values are issue,
* scheduledChange, and accountNotification.
The AWS region name of the event.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The AWS region name of the event.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The AWS region name of the event.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The AWS region name of the event.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The AWS region name of the event.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The AWS region name of the event.
*/ inline Event& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The AWS region name of the event.
*/ inline Event& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The AWS region name of the event.
*/ inline Event& WithRegion(const char* value) { SetRegion(value); return *this;} /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline Event& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline Event& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The AWS Availability Zone of the event. For example, us-east-1a.
*/ inline Event& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The date and time that the event began.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The date and time that the event began.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The date and time that the event began.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The date and time that the event began.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The date and time that the event began.
*/ inline Event& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The date and time that the event began.
*/ inline Event& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The date and time that the event ended.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The date and time that the event ended.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The date and time that the event ended.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The date and time that the event ended.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The date and time that the event ended.
*/ inline Event& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The date and time that the event ended.
*/ inline Event& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *The most recent date and time that the event was updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The most recent date and time that the event was updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The most recent date and time that the event was updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The most recent date and time that the event was updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The most recent date and time that the event was updated.
*/ inline Event& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The most recent date and time that the event was updated.
*/ inline Event& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *The most recent status of the event. Possible values are open,
* closed, and upcoming.
The most recent status of the event. Possible values are open,
* closed, and upcoming.
The most recent status of the event. Possible values are open,
* closed, and upcoming.
The most recent status of the event. Possible values are open,
* closed, and upcoming.
The most recent status of the event. Possible values are open,
* closed, and upcoming.
The most recent status of the event. Possible values are open,
* closed, and upcoming.
This parameter specifies if the AWS Health event is a public AWS service * event or an account-specific event.
If the
* eventScopeCode value is PUBLIC, then the
* affectedAccounts value is always empty.
If the
* eventScopeCode value is ACCOUNT_SPECIFIC, then the
* affectedAccounts value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.
If the eventScopeCode
* value is NONE, then the eventArn that you specified in
* the request is invalid or doesn't exist.
This parameter specifies if the AWS Health event is a public AWS service * event or an account-specific event.
If the
* eventScopeCode value is PUBLIC, then the
* affectedAccounts value is always empty.
If the
* eventScopeCode value is ACCOUNT_SPECIFIC, then the
* affectedAccounts value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.
If the eventScopeCode
* value is NONE, then the eventArn that you specified in
* the request is invalid or doesn't exist.
This parameter specifies if the AWS Health event is a public AWS service * event or an account-specific event.
If the
* eventScopeCode value is PUBLIC, then the
* affectedAccounts value is always empty.
If the
* eventScopeCode value is ACCOUNT_SPECIFIC, then the
* affectedAccounts value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.
If the eventScopeCode
* value is NONE, then the eventArn that you specified in
* the request is invalid or doesn't exist.
This parameter specifies if the AWS Health event is a public AWS service * event or an account-specific event.
If the
* eventScopeCode value is PUBLIC, then the
* affectedAccounts value is always empty.
If the
* eventScopeCode value is ACCOUNT_SPECIFIC, then the
* affectedAccounts value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.
If the eventScopeCode
* value is NONE, then the eventArn that you specified in
* the request is invalid or doesn't exist.
This parameter specifies if the AWS Health event is a public AWS service * event or an account-specific event.
If the
* eventScopeCode value is PUBLIC, then the
* affectedAccounts value is always empty.
If the
* eventScopeCode value is ACCOUNT_SPECIFIC, then the
* affectedAccounts value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.
If the eventScopeCode
* value is NONE, then the eventArn that you specified in
* the request is invalid or doesn't exist.
This parameter specifies if the AWS Health event is a public AWS service * event or an account-specific event.
If the
* eventScopeCode value is PUBLIC, then the
* affectedAccounts value is always empty.
If the
* eventScopeCode value is ACCOUNT_SPECIFIC, then the
* affectedAccounts value lists the affected AWS accounts in your
* organization. For example, if an event affects a service such as Amazon Elastic
* Compute Cloud and you have AWS accounts that use that service, those account IDs
* appear in the response.
If the eventScopeCode
* value is NONE, then the eventArn that you specified in
* the request is invalid or doesn't exist.