AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseStream.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/sagemaker-runtime/model/PayloadPart.h>
9#include <aws/sagemaker-runtime/model/ModelStreamError.h>
10#include <aws/sagemaker-runtime/model/InternalStreamFailure.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMakerRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKERRUNTIME_API ResponseStream();
38 AWS_SAGEMAKERRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKERRUNTIME_API ResponseStream& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const PayloadPart& GetPayloadPart() const{ return m_payloadPart; }
50 inline bool PayloadPartHasBeenSet() const { return m_payloadPartHasBeenSet; }
51 inline void SetPayloadPart(const PayloadPart& value) { m_payloadPartHasBeenSet = true; m_payloadPart = value; }
52 inline void SetPayloadPart(PayloadPart&& value) { m_payloadPartHasBeenSet = true; m_payloadPart = std::move(value); }
53 inline ResponseStream& WithPayloadPart(const PayloadPart& value) { SetPayloadPart(value); return *this;}
54 inline ResponseStream& WithPayloadPart(PayloadPart&& value) { SetPayloadPart(std::move(value)); return *this;}
56
58
66 inline const ModelStreamError& GetModelStreamError() const{ return m_modelStreamError; }
67 inline bool ModelStreamErrorHasBeenSet() const { return m_modelStreamErrorHasBeenSet; }
68 inline void SetModelStreamError(const ModelStreamError& value) { m_modelStreamErrorHasBeenSet = true; m_modelStreamError = value; }
69 inline void SetModelStreamError(ModelStreamError&& value) { m_modelStreamErrorHasBeenSet = true; m_modelStreamError = std::move(value); }
70 inline ResponseStream& WithModelStreamError(const ModelStreamError& value) { SetModelStreamError(value); return *this;}
71 inline ResponseStream& WithModelStreamError(ModelStreamError&& value) { SetModelStreamError(std::move(value)); return *this;}
73
75
79 inline const InternalStreamFailure& GetInternalStreamFailure() const{ return m_internalStreamFailure; }
80 inline bool InternalStreamFailureHasBeenSet() const { return m_internalStreamFailureHasBeenSet; }
81 inline void SetInternalStreamFailure(const InternalStreamFailure& value) { m_internalStreamFailureHasBeenSet = true; m_internalStreamFailure = value; }
82 inline void SetInternalStreamFailure(InternalStreamFailure&& value) { m_internalStreamFailureHasBeenSet = true; m_internalStreamFailure = std::move(value); }
83 inline ResponseStream& WithInternalStreamFailure(const InternalStreamFailure& value) { SetInternalStreamFailure(value); return *this;}
84 inline ResponseStream& WithInternalStreamFailure(InternalStreamFailure&& value) { SetInternalStreamFailure(std::move(value)); return *this;}
86 private:
87
88 PayloadPart m_payloadPart;
89 bool m_payloadPartHasBeenSet = false;
90
91 ModelStreamError m_modelStreamError;
92 bool m_modelStreamErrorHasBeenSet = false;
93
94 InternalStreamFailure m_internalStreamFailure;
95 bool m_internalStreamFailureHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMakerRuntime
100} // namespace Aws
ResponseStream & WithModelStreamError(ModelStreamError &&value)
ResponseStream & WithPayloadPart(const PayloadPart &value)
ResponseStream & WithInternalStreamFailure(InternalStreamFailure &&value)
void SetInternalStreamFailure(const InternalStreamFailure &value)
AWS_SAGEMAKERRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERRUNTIME_API ResponseStream()
ResponseStream & WithModelStreamError(const ModelStreamError &value)
ResponseStream & WithPayloadPart(PayloadPart &&value)
ResponseStream & WithInternalStreamFailure(const InternalStreamFailure &value)
const InternalStreamFailure & GetInternalStreamFailure() const
AWS_SAGEMAKERRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERRUNTIME_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const ModelStreamError & GetModelStreamError() const
const PayloadPart & GetPayloadPart() const
void SetInternalStreamFailure(InternalStreamFailure &&value)
void SetModelStreamError(ModelStreamError &&value)
void SetModelStreamError(const ModelStreamError &value)
void SetPayloadPart(const PayloadPart &value)
Aws::Utils::Json::JsonValue JsonValue