AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PayloadPart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Attribution.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
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API PayloadPart() = default;
32 AWS_BEDROCKAGENTRUNTIME_API PayloadPart(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Attribution& GetAttribution() const { return m_attribution; }
41 inline bool AttributionHasBeenSet() const { return m_attributionHasBeenSet; }
42 template <typename AttributionT = Attribution>
44 m_attributionHasBeenSet = true;
45 m_attribution = std::forward<AttributionT>(value);
46 }
47 template <typename AttributionT = Attribution>
49 SetAttribution(std::forward<AttributionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::CryptoBuffer& GetBytes() const { return m_bytes; }
59 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
60 template <typename BytesT = Aws::Utils::CryptoBuffer>
61 void SetBytes(BytesT&& value) {
62 m_bytesHasBeenSet = true;
63 m_bytes = std::forward<BytesT>(value);
64 }
65 template <typename BytesT = Aws::Utils::CryptoBuffer>
67 SetBytes(std::forward<BytesT>(value));
68 return *this;
69 }
71 private:
72 Attribution m_attribution;
73
75 bool m_attributionHasBeenSet = false;
76 bool m_bytesHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockAgentRuntime
81} // namespace Aws
PayloadPart & WithAttribution(AttributionT &&value)
Definition PayloadPart.h:48
AWS_BEDROCKAGENTRUNTIME_API PayloadPart & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Attribution & GetAttribution() const
Definition PayloadPart.h:40
AWS_BEDROCKAGENTRUNTIME_API PayloadPart()=default
const Aws::Utils::CryptoBuffer & GetBytes() const
Definition PayloadPart.h:58
void SetAttribution(AttributionT &&value)
Definition PayloadPart.h:43
PayloadPart & WithBytes(BytesT &&value)
Definition PayloadPart.h:66
AWS_BEDROCKAGENTRUNTIME_API PayloadPart(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue