AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ImageSource.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/S3Location.h>
9#include <aws/core/utils/Array.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
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API ImageSource() = default;
31 AWS_BEDROCKAGENTRUNTIME_API ImageSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
41 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
42 template <typename BytesT = Aws::Utils::ByteBuffer>
43 void SetBytes(BytesT&& value) {
44 m_bytesHasBeenSet = true;
45 m_bytes = std::forward<BytesT>(value);
46 }
47 template <typename BytesT = Aws::Utils::ByteBuffer>
49 SetBytes(std::forward<BytesT>(value));
50 return *this;
51 }
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) {
62 m_s3LocationHasBeenSet = true;
63 m_s3Location = std::forward<S3LocationT>(value);
64 }
65 template <typename S3LocationT = S3Location>
67 SetS3Location(std::forward<S3LocationT>(value));
68 return *this;
69 }
71 private:
72 Aws::Utils::ByteBuffer m_bytes{};
73
74 S3Location m_s3Location;
75 bool m_bytesHasBeenSet = false;
76 bool m_s3LocationHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockAgentRuntime
81} // 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:66
ImageSource & WithBytes(BytesT &&value)
Definition ImageSource.h:48
const Aws::Utils::ByteBuffer & GetBytes() const
Definition ImageSource.h:40
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
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue