/** * 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 Macie2 { namespace Model { /** *

Provides information about an account-related request that hasn't been * processed.

See Also:

AWS * API Reference

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The Amazon Web Services account ID for the account that the request applies * to.

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

The source of the issue or delay in processing the request.

*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The source of the issue or delay in processing the request.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The source of the issue or delay in processing the request.

*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The source of the issue or delay in processing the request.

*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The source of the issue or delay in processing the request.

*/ inline UnprocessedAccount& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *

The source of the issue or delay in processing the request.

*/ inline UnprocessedAccount& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

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

The reason why the request hasn't been processed.

*/ inline UnprocessedAccount& WithErrorMessage(const char* value) { SetErrorMessage(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; }; } // namespace Model } // namespace Macie2 } // namespace Aws