AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MessageT = Aws::String>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::String>
52 ModelStreamError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
63 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
64 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
65 template<typename ErrorCodeT = Aws::String>
66 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
67 template<typename ErrorCodeT = Aws::String>
68 ModelStreamError& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
70 private:
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74
75 Aws::String m_errorCode;
76 bool m_errorCodeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SageMakerRuntime
81} // namespace Aws
AWS_SAGEMAKERRUNTIME_API ModelStreamError()=default
ModelStreamError & WithMessage(MessageT &&value)
AWS_SAGEMAKERRUNTIME_API ModelStreamError(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERRUNTIME_API ModelStreamError & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelStreamError & WithErrorCode(ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue