AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResponseStream.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/Trace.h>
9#include <aws/iotsitewise/model/InvocationOutput.h>
10#include <aws/iotsitewise/model/ConflictingOperationException.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 IoTSiteWise
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTSITEWISE_API ResponseStream() = default;
38 AWS_IOTSITEWISE_API ResponseStream(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API ResponseStream& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Trace& GetTrace() const { return m_trace; }
49 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
50 template<typename TraceT = Trace>
51 void SetTrace(TraceT&& value) { m_traceHasBeenSet = true; m_trace = std::forward<TraceT>(value); }
52 template<typename TraceT = Trace>
53 ResponseStream& WithTrace(TraceT&& value) { SetTrace(std::forward<TraceT>(value)); return *this;}
55
57
60 inline const InvocationOutput& GetOutput() const { return m_output; }
61 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
62 template<typename OutputT = InvocationOutput>
63 void SetOutput(OutputT&& value) { m_outputHasBeenSet = true; m_output = std::forward<OutputT>(value); }
64 template<typename OutputT = InvocationOutput>
65 ResponseStream& WithOutput(OutputT&& value) { SetOutput(std::forward<OutputT>(value)); return *this;}
67
69
70 inline const IoTSiteWiseError& GetAccessDeniedException() const { return m_accessDeniedException; }
71 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
72 template<typename AccessDeniedExceptionT = IoTSiteWiseError>
73 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
74 template<typename AccessDeniedExceptionT = IoTSiteWiseError>
75 ResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
77
79
80 inline const ConflictingOperationException& GetConflictingOperationException() const { return m_conflictingOperationException; }
81 inline bool ConflictingOperationExceptionHasBeenSet() const { return m_conflictingOperationExceptionHasBeenSet; }
82 template<typename ConflictingOperationExceptionT = ConflictingOperationException>
83 void SetConflictingOperationException(ConflictingOperationExceptionT&& value) { m_conflictingOperationExceptionHasBeenSet = true; m_conflictingOperationException = std::forward<ConflictingOperationExceptionT>(value); }
84 template<typename ConflictingOperationExceptionT = ConflictingOperationException>
85 ResponseStream& WithConflictingOperationException(ConflictingOperationExceptionT&& value) { SetConflictingOperationException(std::forward<ConflictingOperationExceptionT>(value)); return *this;}
87
89
90 inline const IoTSiteWiseError& GetInternalFailureException() const { return m_internalFailureException; }
91 inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; }
92 template<typename InternalFailureExceptionT = IoTSiteWiseError>
93 void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward<InternalFailureExceptionT>(value); }
94 template<typename InternalFailureExceptionT = IoTSiteWiseError>
95 ResponseStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward<InternalFailureExceptionT>(value)); return *this;}
97
99
100 inline const IoTSiteWiseError& GetInvalidRequestException() const { return m_invalidRequestException; }
101 inline bool InvalidRequestExceptionHasBeenSet() const { return m_invalidRequestExceptionHasBeenSet; }
102 template<typename InvalidRequestExceptionT = IoTSiteWiseError>
103 void SetInvalidRequestException(InvalidRequestExceptionT&& value) { m_invalidRequestExceptionHasBeenSet = true; m_invalidRequestException = std::forward<InvalidRequestExceptionT>(value); }
104 template<typename InvalidRequestExceptionT = IoTSiteWiseError>
105 ResponseStream& WithInvalidRequestException(InvalidRequestExceptionT&& value) { SetInvalidRequestException(std::forward<InvalidRequestExceptionT>(value)); return *this;}
107
109
110 inline const IoTSiteWiseError& GetLimitExceededException() const { return m_limitExceededException; }
111 inline bool LimitExceededExceptionHasBeenSet() const { return m_limitExceededExceptionHasBeenSet; }
112 template<typename LimitExceededExceptionT = IoTSiteWiseError>
113 void SetLimitExceededException(LimitExceededExceptionT&& value) { m_limitExceededExceptionHasBeenSet = true; m_limitExceededException = std::forward<LimitExceededExceptionT>(value); }
114 template<typename LimitExceededExceptionT = IoTSiteWiseError>
115 ResponseStream& WithLimitExceededException(LimitExceededExceptionT&& value) { SetLimitExceededException(std::forward<LimitExceededExceptionT>(value)); return *this;}
117
119
120 inline const IoTSiteWiseError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
121 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
122 template<typename ResourceNotFoundExceptionT = IoTSiteWiseError>
123 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
124 template<typename ResourceNotFoundExceptionT = IoTSiteWiseError>
125 ResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
127
129
130 inline const IoTSiteWiseError& GetThrottlingException() const { return m_throttlingException; }
131 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
132 template<typename ThrottlingExceptionT = IoTSiteWiseError>
133 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
134 template<typename ThrottlingExceptionT = IoTSiteWiseError>
135 ResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
137 private:
138
139 Trace m_trace;
140 bool m_traceHasBeenSet = false;
141
142 InvocationOutput m_output;
143 bool m_outputHasBeenSet = false;
144
145 IoTSiteWiseError m_accessDeniedException;
146 bool m_accessDeniedExceptionHasBeenSet = false;
147
148 ConflictingOperationException m_conflictingOperationException;
149 bool m_conflictingOperationExceptionHasBeenSet = false;
150
151 IoTSiteWiseError m_internalFailureException;
152 bool m_internalFailureExceptionHasBeenSet = false;
153
154 IoTSiteWiseError m_invalidRequestException;
155 bool m_invalidRequestExceptionHasBeenSet = false;
156
157 IoTSiteWiseError m_limitExceededException;
158 bool m_limitExceededExceptionHasBeenSet = false;
159
160 IoTSiteWiseError m_resourceNotFoundException;
161 bool m_resourceNotFoundExceptionHasBeenSet = false;
162
163 IoTSiteWiseError m_throttlingException;
164 bool m_throttlingExceptionHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace IoTSiteWise
169} // namespace Aws
ResponseStream & WithTrace(TraceT &&value)
ResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
ResponseStream & WithInvalidRequestException(InvalidRequestExceptionT &&value)
ResponseStream & WithOutput(OutputT &&value)
void SetInvalidRequestException(InvalidRequestExceptionT &&value)
const InvocationOutput & GetOutput() const
const IoTSiteWiseError & GetResourceNotFoundException() const
ResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
ResponseStream & WithLimitExceededException(LimitExceededExceptionT &&value)
const IoTSiteWiseError & GetInvalidRequestException() const
const IoTSiteWiseError & GetAccessDeniedException() const
AWS_IOTSITEWISE_API ResponseStream()=default
AWS_IOTSITEWISE_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLimitExceededException(LimitExceededExceptionT &&value)
ResponseStream & WithConflictingOperationException(ConflictingOperationExceptionT &&value)
const IoTSiteWiseError & GetInternalFailureException() const
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseStream & WithInternalFailureException(InternalFailureExceptionT &&value)
AWS_IOTSITEWISE_API ResponseStream(Aws::Utils::Json::JsonView jsonValue)
void SetThrottlingException(ThrottlingExceptionT &&value)
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const ConflictingOperationException & GetConflictingOperationException() const
ResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
void SetInternalFailureException(InternalFailureExceptionT &&value)
void SetConflictingOperationException(ConflictingOperationExceptionT &&value)
const IoTSiteWiseError & GetLimitExceededException() const
const IoTSiteWiseError & GetThrottlingException() const
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue