AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelStreamError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMakerRuntime {
20namespace Model {
21
33 public:
34 AWS_SAGEMAKERRUNTIME_API ModelStreamError() = default;
35 AWS_SAGEMAKERRUNTIME_API ModelStreamError(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKERRUNTIME_API ModelStreamError& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
49 ModelStreamError& WithMessage(MessageT&& value) {
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
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) {
67 m_errorCodeHasBeenSet = true;
68 m_errorCode = std::forward<ErrorCodeT>(value);
69 }
70 template <typename ErrorCodeT = Aws::String>
71 ModelStreamError& WithErrorCode(ErrorCodeT&& value) {
72 SetErrorCode(std::forward<ErrorCodeT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_message;
78
79 Aws::String m_errorCode;
80 bool m_messageHasBeenSet = false;
81 bool m_errorCodeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace SageMakerRuntime
86} // 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