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

Information about an error received while accessing free trail data for an * account.

See Also:

AWS * API Reference

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The account associated with the Amazon Inspector free trial information.

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

The error code.

*/ inline const FreeTrialInfoErrorCode& GetCode() const{ return m_code; } /** *

The error code.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The error code.

*/ inline void SetCode(const FreeTrialInfoErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The error code.

*/ inline void SetCode(FreeTrialInfoErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The error code.

*/ inline FreeTrialInfoError& WithCode(const FreeTrialInfoErrorCode& value) { SetCode(value); return *this;} /** *

The error code.

*/ inline FreeTrialInfoError& WithCode(FreeTrialInfoErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *

The error message returned.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The error message returned.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The error message returned.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The error message returned.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The error message returned.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The error message returned.

*/ inline FreeTrialInfoError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The error message returned.

*/ inline FreeTrialInfoError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The error message returned.

*/ inline FreeTrialInfoError& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; FreeTrialInfoErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws