AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_BEDROCKAGENTRUNTIME_API ImageInput() = default;
41 AWS_BEDROCKAGENTRUNTIME_API ImageInput(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API ImageInput& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline ImageInputFormat GetFormat() const { return m_format; }
51 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
52 inline void SetFormat(ImageInputFormat value) { m_formatHasBeenSet = true; m_format = value; }
53 inline ImageInput& WithFormat(ImageInputFormat value) { SetFormat(value); return *this;}
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
64 template<typename SourceT = ImageInputSource>
65 ImageInput& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
67 private:
68
70 bool m_formatHasBeenSet = false;
71
72 ImageInputSource m_source;
73 bool m_sourceHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BedrockAgentRuntime
78} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ImageInput()=default
AWS_BEDROCKAGENTRUNTIME_API ImageInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageInput & WithFormat(ImageInputFormat value)
Definition ImageInput.h:53
ImageInput & WithSource(SourceT &&value)
Definition ImageInput.h:65
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFormat(ImageInputFormat value)
Definition ImageInput.h:52
AWS_BEDROCKAGENTRUNTIME_API ImageInput(Aws::Utils::Json::JsonView jsonValue)
const ImageInputSource & GetSource() const
Definition ImageInput.h:60
Aws::Utils::Json::JsonValue JsonValue