/** * 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 DescribeAffectedEntitiesForOrganization * operation can't find or process a specific entity.

See Also:

AWS * API Reference

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

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

The 12-digit Amazon Web Services account numbers that contains the affected * entities.

*/ inline OrganizationAffectedEntitiesErrorItem& 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 OrganizationAffectedEntitiesErrorItem& 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 OrganizationAffectedEntitiesErrorItem& 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 OrganizationAffectedEntitiesErrorItem& 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 OrganizationAffectedEntitiesErrorItem& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;} /** *

The name of the error.

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

The name of the error.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

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

A message that describes the error. Follow the error message and retry your * request.

For example, the InvalidAccountInputError error * message appears if you call the * DescribeAffectedEntitiesForOrganization operation and specify the * AccountSpecific value for the EventScopeCode * parameter, but don't specify an Amazon Web Services account.

*/ inline OrganizationAffectedEntitiesErrorItem& 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