7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/Status.h>
37 AWS_INSPECTOR2_API
State() =
default;
61 template<
typename ErrorMessageT = Aws::String>
62 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet =
true; m_errorMessage = std::forward<ErrorMessageT>(value); }
63 template<
typename ErrorMessageT = Aws::String>
73 inline void SetStatus(
Status value) { m_statusHasBeenSet =
true; m_status = value; }
79 bool m_errorCodeHasBeenSet =
false;
82 bool m_errorMessageHasBeenSet =
false;
85 bool m_statusHasBeenSet =
false;
ErrorCode GetErrorCode() const
State & WithStatus(Status value)
bool StatusHasBeenSet() const
void SetErrorCode(ErrorCode value)
State & WithErrorMessage(ErrorMessageT &&value)
AWS_INSPECTOR2_API State(Aws::Utils::Json::JsonView jsonValue)
State & WithErrorCode(ErrorCode value)
bool ErrorCodeHasBeenSet() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(Status value)
void SetErrorMessage(ErrorMessageT &&value)
AWS_INSPECTOR2_API State()=default
const Aws::String & GetErrorMessage() const
AWS_INSPECTOR2_API State & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ErrorMessageHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue