AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImageSource.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/bedrock-agent-runtime/model/S3Location.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
33 {
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API ImageSource() = default;
36 AWS_BEDROCKAGENTRUNTIME_API ImageSource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTRUNTIME_API ImageSource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
47 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
48 template<typename BytesT = Aws::Utils::ByteBuffer>
49 void SetBytes(BytesT&& value) { m_bytesHasBeenSet = true; m_bytes = std::forward<BytesT>(value); }
50 template<typename BytesT = Aws::Utils::ByteBuffer>
51 ImageSource& WithBytes(BytesT&& value) { SetBytes(std::forward<BytesT>(value)); return *this;}
53
55
58 inline const S3Location& GetS3Location() const { return m_s3Location; }
59 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
60 template<typename S3LocationT = S3Location>
61 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
62 template<typename S3LocationT = S3Location>
63 ImageSource& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
65 private:
66
67 Aws::Utils::ByteBuffer m_bytes{};
68 bool m_bytesHasBeenSet = false;
69
70 S3Location m_s3Location;
71 bool m_s3LocationHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace BedrockAgentRuntime
76} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ImageSource(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ImageSource & WithS3Location(S3LocationT &&value)
Definition ImageSource.h:63
ImageSource & WithBytes(BytesT &&value)
Definition ImageSource.h:51
const Aws::Utils::ByteBuffer & GetBytes() const
Definition ImageSource.h:46
AWS_BEDROCKAGENTRUNTIME_API ImageSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetS3Location(S3LocationT &&value)
Definition ImageSource.h:61
AWS_BEDROCKAGENTRUNTIME_API ImageSource()=default
const S3Location & GetS3Location() const
Definition ImageSource.h:58
Aws::Utils::Json::JsonValue JsonValue