AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ImageSource.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-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 BedrockRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKRUNTIME_API ImageSource() = default;
33 AWS_BEDROCKRUNTIME_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
61 inline const S3Location& GetS3Location() const { return m_s3Location; }
62 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
63 template <typename S3LocationT = S3Location>
64 void SetS3Location(S3LocationT&& value) {
65 m_s3LocationHasBeenSet = true;
66 m_s3Location = std::forward<S3LocationT>(value);
67 }
68 template <typename S3LocationT = S3Location>
70 SetS3Location(std::forward<S3LocationT>(value));
71 return *this;
72 }
74 private:
75 Aws::Utils::ByteBuffer m_bytes{};
76
77 S3Location m_s3Location;
78 bool m_bytesHasBeenSet = false;
79 bool m_s3LocationHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace BedrockRuntime
84} // namespace Aws
const S3Location & GetS3Location() const
Definition ImageSource.h:61
AWS_BEDROCKRUNTIME_API ImageSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageSource & WithS3Location(S3LocationT &&value)
Definition ImageSource.h:69
ImageSource & WithBytes(BytesT &&value)
Definition ImageSource.h:48
AWS_BEDROCKRUNTIME_API ImageSource()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetS3Location(S3LocationT &&value)
Definition ImageSource.h:64
AWS_BEDROCKRUNTIME_API ImageSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetBytes() const
Definition ImageSource.h:40
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue