/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 described the state of Amazon Inspector scans for an * account.

See Also:

AWS * API Reference

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

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 State& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code explaining why the account failed to enable Amazon * Inspector.

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

The error message received when the account failed to enable Amazon * Inspector.

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

The error message received when the account failed to enable Amazon * Inspector.

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

The status of Amazon Inspector for the account.

*/ inline State& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} private: ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Status m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws