AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ImageSource.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/bedrock-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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API ImageSource() = default;
36 AWS_BEDROCKRUNTIME_API ImageSource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API ImageSource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_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
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) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
65 template<typename S3LocationT = S3Location>
66 ImageSource& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
68 private:
69
70 Aws::Utils::ByteBuffer m_bytes{};
71 bool m_bytesHasBeenSet = false;
72
73 S3Location m_s3Location;
74 bool m_s3LocationHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace BedrockRuntime
79} // 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:66
ImageSource & WithBytes(BytesT &&value)
Definition ImageSource.h:51
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:46
Aws::Utils::Json::JsonValue JsonValue