AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API PayloadPart();
37 AWS_BEDROCKAGENTRUNTIME_API PayloadPart(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API PayloadPart& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Attribution& GetAttribution() const{ return m_attribution; }
47 inline bool AttributionHasBeenSet() const { return m_attributionHasBeenSet; }
48 inline void SetAttribution(const Attribution& value) { m_attributionHasBeenSet = true; m_attribution = value; }
49 inline void SetAttribution(Attribution&& value) { m_attributionHasBeenSet = true; m_attribution = std::move(value); }
50 inline PayloadPart& WithAttribution(const Attribution& value) { SetAttribution(value); return *this;}
51 inline PayloadPart& WithAttribution(Attribution&& value) { SetAttribution(std::move(value)); return *this;}
53
55
58 inline const Aws::Utils::CryptoBuffer& GetBytes() const{ return m_bytes; }
59 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
60 inline void SetBytes(const Aws::Utils::CryptoBuffer& value) { m_bytesHasBeenSet = true; m_bytes = value; }
61 inline void SetBytes(Aws::Utils::CryptoBuffer&& value) { m_bytesHasBeenSet = true; m_bytes = std::move(value); }
62 inline PayloadPart& WithBytes(const Aws::Utils::CryptoBuffer& value) { SetBytes(value); return *this;}
63 inline PayloadPart& WithBytes(Aws::Utils::CryptoBuffer&& value) { SetBytes(std::move(value)); return *this;}
65 private:
66
67 Attribution m_attribution;
68 bool m_attributionHasBeenSet = false;
69
71 bool m_bytesHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace BedrockAgentRuntime
76} // namespace Aws
void SetBytes(Aws::Utils::CryptoBuffer &&value)
Definition PayloadPart.h:61
void SetAttribution(const Attribution &value)
Definition PayloadPart.h:48
AWS_BEDROCKAGENTRUNTIME_API PayloadPart & operator=(Aws::Utils::Json::JsonView jsonValue)
PayloadPart & WithBytes(const Aws::Utils::CryptoBuffer &value)
Definition PayloadPart.h:62
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Attribution & GetAttribution() const
Definition PayloadPart.h:46
void SetBytes(const Aws::Utils::CryptoBuffer &value)
Definition PayloadPart.h:60
PayloadPart & WithBytes(Aws::Utils::CryptoBuffer &&value)
Definition PayloadPart.h:63
const Aws::Utils::CryptoBuffer & GetBytes() const
Definition PayloadPart.h:58
PayloadPart & WithAttribution(const Attribution &value)
Definition PayloadPart.h:50
PayloadPart & WithAttribution(Attribution &&value)
Definition PayloadPart.h:51
AWS_BEDROCKAGENTRUNTIME_API PayloadPart()
AWS_BEDROCKAGENTRUNTIME_API PayloadPart(Aws::Utils::Json::JsonView jsonValue)
void SetAttribution(Attribution &&value)
Definition PayloadPart.h:49
Aws::Utils::Json::JsonValue JsonValue