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

An object that contains details about a member account in your organization * that failed to activate Amazon Inspector deep inspection.

See * Also:

AWS * API Reference

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

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline FailedMemberAccountEc2DeepInspectionStatusState& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline FailedMemberAccountEc2DeepInspectionStatusState& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The unique identifier for the Amazon Web Services account of the organization * member that failed to activate Amazon Inspector deep inspection.

*/ inline FailedMemberAccountEc2DeepInspectionStatusState& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The status of EC2 scanning in the account that failed to activate Amazon * Inspector deep inspection.

*/ inline const Status& GetEc2ScanStatus() const{ return m_ec2ScanStatus; } /** *

The status of EC2 scanning in the account that failed to activate Amazon * Inspector deep inspection.

*/ inline bool Ec2ScanStatusHasBeenSet() const { return m_ec2ScanStatusHasBeenSet; } /** *

The status of EC2 scanning in the account that failed to activate Amazon * Inspector deep inspection.

*/ inline void SetEc2ScanStatus(const Status& value) { m_ec2ScanStatusHasBeenSet = true; m_ec2ScanStatus = value; } /** *

The status of EC2 scanning in the account that failed to activate Amazon * Inspector deep inspection.

*/ inline void SetEc2ScanStatus(Status&& value) { m_ec2ScanStatusHasBeenSet = true; m_ec2ScanStatus = std::move(value); } /** *

The status of EC2 scanning in the account that failed to activate Amazon * Inspector deep inspection.

*/ inline FailedMemberAccountEc2DeepInspectionStatusState& WithEc2ScanStatus(const Status& value) { SetEc2ScanStatus(value); return *this;} /** *

The status of EC2 scanning in the account that failed to activate Amazon * Inspector deep inspection.

*/ inline FailedMemberAccountEc2DeepInspectionStatusState& WithEc2ScanStatus(Status&& value) { SetEc2ScanStatus(std::move(value)); return *this;} /** *

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

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

The error message explaining why the account failed to activate Amazon * Inspector deep inspection.

*/ inline FailedMemberAccountEc2DeepInspectionStatusState& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Status m_ec2ScanStatus; bool m_ec2ScanStatusHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws