/** * 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 the state of Amazon Inspector deep * inspection for a member account.

See Also:

AWS * API Reference

*/ class MemberAccountEc2DeepInspectionStatusState { public: AWS_INSPECTOR2_API MemberAccountEc2DeepInspectionStatusState(); AWS_INSPECTOR2_API MemberAccountEc2DeepInspectionStatusState(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API MemberAccountEc2DeepInspectionStatusState& 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

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

The unique identifier for the Amazon Web Services account of the organization * member

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

The unique identifier for the Amazon Web Services account of the organization * member

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

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

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

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

The unique identifier for the Amazon Web Services account of the organization * member

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

The unique identifier for the Amazon Web Services account of the organization * member

*/ inline MemberAccountEc2DeepInspectionStatusState& WithAccountId(const char* value) { SetAccountId(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 MemberAccountEc2DeepInspectionStatusState& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

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

*/ inline MemberAccountEc2DeepInspectionStatusState& 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 MemberAccountEc2DeepInspectionStatusState& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The state of Amazon Inspector deep inspection in the member account.

*/ inline const Ec2DeepInspectionStatus& GetStatus() const{ return m_status; } /** *

The state of Amazon Inspector deep inspection in the member account.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The state of Amazon Inspector deep inspection in the member account.

*/ inline void SetStatus(const Ec2DeepInspectionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The state of Amazon Inspector deep inspection in the member account.

*/ inline void SetStatus(Ec2DeepInspectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The state of Amazon Inspector deep inspection in the member account.

*/ inline MemberAccountEc2DeepInspectionStatusState& WithStatus(const Ec2DeepInspectionStatus& value) { SetStatus(value); return *this;} /** *

The state of Amazon Inspector deep inspection in the member account.

*/ inline MemberAccountEc2DeepInspectionStatusState& WithStatus(Ec2DeepInspectionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Ec2DeepInspectionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws