AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ImageBlockDelta.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ErrorBlock.h>
9#include <aws/bedrock-runtime/model/ImageSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKRUNTIME_API ImageBlockDelta() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ImageSource& GetSource() const { return m_source; }
41 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
42 template <typename SourceT = ImageSource>
43 void SetSource(SourceT&& value) {
44 m_sourceHasBeenSet = true;
45 m_source = std::forward<SourceT>(value);
46 }
47 template <typename SourceT = ImageSource>
49 SetSource(std::forward<SourceT>(value));
50 return *this;
51 }
53
55
58 inline const ErrorBlock& GetError() const { return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 template <typename ErrorT = ErrorBlock>
61 void SetError(ErrorT&& value) {
62 m_errorHasBeenSet = true;
63 m_error = std::forward<ErrorT>(value);
64 }
65 template <typename ErrorT = ErrorBlock>
67 SetError(std::forward<ErrorT>(value));
68 return *this;
69 }
71 private:
72 ImageSource m_source;
73
74 ErrorBlock m_error;
75 bool m_sourceHasBeenSet = false;
76 bool m_errorHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockRuntime
81} // namespace Aws
AWS_BEDROCKRUNTIME_API ImageBlockDelta(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ImageBlockDelta()=default
ImageBlockDelta & WithSource(SourceT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ImageBlockDelta & WithError(ErrorT &&value)
AWS_BEDROCKRUNTIME_API ImageBlockDelta & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue