/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object with details on why an account failed to enable Amazon
* Inspector.See Also:
AWS
* API Reference
The Amazon Web Services account ID.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The Amazon Web Services account ID.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The Amazon Web Services account ID.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The Amazon Web Services account ID.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The Amazon Web Services account ID.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The Amazon Web Services account ID.
*/ inline FailedAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The Amazon Web Services account ID.
*/ inline FailedAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The Amazon Web Services account ID.
*/ inline FailedAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The error code explaining why the account failed to enable Amazon * Inspector.
*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *The error code explaining why the account failed to enable Amazon * Inspector.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code explaining why the account failed to enable Amazon * Inspector.
*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code explaining why the account failed to enable Amazon * Inspector.
*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code explaining why the account failed to enable Amazon * Inspector.
*/ inline FailedAccount& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *The error code explaining why the account failed to enable Amazon * Inspector.
*/ inline FailedAccount& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline FailedAccount& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline FailedAccount& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message received when the account failed to enable Amazon * Inspector.
*/ inline FailedAccount& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *An object detailing which resources Amazon Inspector is enabled to scan for * the account.
*/ inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; } /** *An object detailing which resources Amazon Inspector is enabled to scan for * the account.
*/ inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; } /** *An object detailing which resources Amazon Inspector is enabled to scan for * the account.
*/ inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; } /** *An object detailing which resources Amazon Inspector is enabled to scan for * the account.
*/ inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); } /** *An object detailing which resources Amazon Inspector is enabled to scan for * the account.
*/ inline FailedAccount& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;} /** *An object detailing which resources Amazon Inspector is enabled to scan for * the account.
*/ inline FailedAccount& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;} /** *The status of Amazon Inspector for the account.
*/ inline const Status& GetStatus() const{ return m_status; } /** *The status of Amazon Inspector for the account.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of Amazon Inspector for the account.
*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of Amazon Inspector for the account.
*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of Amazon Inspector for the account.
*/ inline FailedAccount& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *The status of Amazon Inspector for the account.
*/ inline FailedAccount& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; ResourceStatus m_resourceStatus; bool m_resourceStatusHasBeenSet = false; Status m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws