AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModelStreamError.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMakerRuntime
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_SAGEMAKERRUNTIME_API ModelStreamError();
40 AWS_SAGEMAKERRUNTIME_API ModelStreamError(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKERRUNTIME_API ModelStreamError& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline ModelStreamError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline ModelStreamError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline ModelStreamError& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
65 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
66 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
67 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
68 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
69 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
70 inline ModelStreamError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
71 inline ModelStreamError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
72 inline ModelStreamError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
79 Aws::String m_errorCode;
80 bool m_errorCodeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace SageMakerRuntime
85} // namespace Aws
ModelStreamError & WithMessage(Aws::String &&value)
ModelStreamError & WithErrorCode(const char *value)
ModelStreamError & WithMessage(const char *value)
AWS_SAGEMAKERRUNTIME_API ModelStreamError(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ModelStreamError & WithErrorCode(Aws::String &&value)
void SetErrorCode(const Aws::String &value)
ModelStreamError & WithMessage(const Aws::String &value)
ModelStreamError & WithErrorCode(const Aws::String &value)
AWS_SAGEMAKERRUNTIME_API ModelStreamError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERRUNTIME_API ModelStreamError()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue