AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ModelStreamError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker-gateway-runtime/SageMakerGatewayRuntime_EXPORTS.h>
9#include <aws/sagemaker-gateway-runtime/model/StreamErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMakerGatewayRuntime {
21namespace Model {
22
31 public:
32 AWS_SAGEMAKERGATEWAYRUNTIME_API ModelStreamError() = default;
33 AWS_SAGEMAKERGATEWAYRUNTIME_API ModelStreamError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKERGATEWAYRUNTIME_API ModelStreamError& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKERGATEWAYRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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
61 inline StreamErrorCode GetErrorCode() const { return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(StreamErrorCode value) {
64 m_errorCodeHasBeenSet = true;
65 m_errorCode = value;
66 }
68 SetErrorCode(value);
69 return *this;
70 }
72 private:
73 Aws::String m_message;
74
76 bool m_messageHasBeenSet = false;
77 bool m_errorCodeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace SageMakerGatewayRuntime
82} // namespace Aws
ModelStreamError & WithErrorCode(StreamErrorCode value)
AWS_SAGEMAKERGATEWAYRUNTIME_API ModelStreamError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERGATEWAYRUNTIME_API ModelStreamError(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERGATEWAYRUNTIME_API ModelStreamError()=default
ModelStreamError & WithMessage(MessageT &&value)
AWS_SAGEMAKERGATEWAYRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue