AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ImageInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ImageInputFormat.h>
9#include <aws/bedrock-agent-runtime/model/ImageInputSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API ImageInput() = default;
36 AWS_BEDROCKAGENTRUNTIME_API ImageInput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline ImageInputFormat GetFormat() const { return m_format; }
45 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
46 inline void SetFormat(ImageInputFormat value) {
47 m_formatHasBeenSet = true;
48 m_format = value;
49 }
51 SetFormat(value);
52 return *this;
53 }
55
57
60 inline const ImageInputSource& GetSource() const { return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 template <typename SourceT = ImageInputSource>
63 void SetSource(SourceT&& value) {
64 m_sourceHasBeenSet = true;
65 m_source = std::forward<SourceT>(value);
66 }
67 template <typename SourceT = ImageInputSource>
69 SetSource(std::forward<SourceT>(value));
70 return *this;
71 }
73 private:
75
76 ImageInputSource m_source;
77 bool m_formatHasBeenSet = false;
78 bool m_sourceHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace BedrockAgentRuntime
83} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ImageInput()=default
AWS_BEDROCKAGENTRUNTIME_API ImageInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageInput & WithFormat(ImageInputFormat value)
Definition ImageInput.h:50
ImageInput & WithSource(SourceT &&value)
Definition ImageInput.h:68
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFormat(ImageInputFormat value)
Definition ImageInput.h:46
AWS_BEDROCKAGENTRUNTIME_API ImageInput(Aws::Utils::Json::JsonView jsonValue)
const ImageInputSource & GetSource() const
Definition ImageInput.h:60
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue