/** * 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 { /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

See Also:

AWS * API Reference

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

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline OrganizationEventDetailsErrorItem& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline OrganizationEventDetailsErrorItem& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

Error information returned when a DescribeEventDetailsForOrganization * operation can't find a specified event.

*/ inline OrganizationEventDetailsErrorItem& WithAwsAccountId(const char* value) { SetAwsAccountId(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 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 OrganizationEventDetailsErrorItem& 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 OrganizationEventDetailsErrorItem& 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 OrganizationEventDetailsErrorItem& WithEventArn(const char* value) { SetEventArn(value); return *this;} /** *

The name of the error.

*/ inline const Aws::String& GetErrorName() const{ return m_errorName; } /** *

The name of the error.

*/ inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; } /** *

The name of the error.

*/ inline void SetErrorName(const Aws::String& value) { m_errorNameHasBeenSet = true; m_errorName = value; } /** *

The name of the error.

*/ inline void SetErrorName(Aws::String&& value) { m_errorNameHasBeenSet = true; m_errorName = std::move(value); } /** *

The name of the error.

*/ inline void SetErrorName(const char* value) { m_errorNameHasBeenSet = true; m_errorName.assign(value); } /** *

The name of the error.

*/ inline OrganizationEventDetailsErrorItem& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;} /** *

The name of the error.

*/ inline OrganizationEventDetailsErrorItem& WithErrorName(Aws::String&& value) { SetErrorName(std::move(value)); return *this;} /** *

The name of the error.

*/ inline OrganizationEventDetailsErrorItem& WithErrorName(const char* value) { SetErrorName(value); return *this;} /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline OrganizationEventDetailsErrorItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline OrganizationEventDetailsErrorItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

A message that describes the error.

If you call the * DescribeEventDetailsForOrganization operation and receive one of * the following errors, follow the recommendations in the message:

  • *

    We couldn't find a public event that matches your request. To find an event * that is account specific, you must enter an Amazon Web Services account ID in * the request.

  • We couldn't find an account specific event for * the specified Amazon Web Services account. To find an event that is public, you * must enter a null value for the Amazon Web Services account ID in the * request.

  • Your Amazon Web Services account doesn't include the * Amazon Web Services Support plan required to use the Health API. You must have * either a Business, Enterprise On-Ramp, or Enterprise Support plan.

  • *
*/ inline OrganizationEventDetailsErrorItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_eventArn; bool m_eventArnHasBeenSet = false; Aws::String m_errorName; bool m_errorNameHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace Health } // namespace Aws