/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Summary information about an event, returned by the DescribeEventsForOrganization
* operation.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.
*/ inline const Aws::String& GetService() const{ return m_service; } /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline OrganizationEvent& WithService(const Aws::String& value) { SetService(value); return *this;} /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline OrganizationEvent& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} /** *The AWS service that is affected by the event. For example, EC2, RDS.
*/ inline OrganizationEvent& WithService(const char* value) { SetService(value); return *this;} /** *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 type.
*/ inline const EventTypeCategory& GetEventTypeCategory() const{ return m_eventTypeCategory; } /** *The category of the event type.
*/ inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; } /** *The category of the event type.
*/ inline void SetEventTypeCategory(const EventTypeCategory& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = value; } /** *The category of the event type.
*/ inline void SetEventTypeCategory(EventTypeCategory&& value) { m_eventTypeCategoryHasBeenSet = true; m_eventTypeCategory = std::move(value); } /** *The category of the event type.
*/ inline OrganizationEvent& WithEventTypeCategory(const EventTypeCategory& value) { SetEventTypeCategory(value); return *this;} /** *The category of the event type.
*/ inline OrganizationEvent& WithEventTypeCategory(EventTypeCategory&& value) { SetEventTypeCategory(std::move(value)); return *this;} /** *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.
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 OrganizationEvent& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The AWS Region name of the event.
*/ inline OrganizationEvent& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The AWS Region name of the event.
*/ inline OrganizationEvent& WithRegion(const char* value) { SetRegion(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 OrganizationEvent& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The date and time that the event began.
*/ inline OrganizationEvent& 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 OrganizationEvent& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The date and time that the event ended.
*/ inline OrganizationEvent& 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 OrganizationEvent& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The most recent date and time that the event was updated.
*/ inline OrganizationEvent& 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.