AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
APISchema.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/S3Identifier.h>
9#include <aws/core/utils/memory/stl/AWSString.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
33class APISchema {
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API APISchema() = default;
36 AWS_BEDROCKAGENTRUNTIME_API APISchema(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetPayload() const { return m_payload; }
46 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
47 template <typename PayloadT = Aws::String>
48 void SetPayload(PayloadT&& value) {
49 m_payloadHasBeenSet = true;
50 m_payload = std::forward<PayloadT>(value);
51 }
52 template <typename PayloadT = Aws::String>
54 SetPayload(std::forward<PayloadT>(value));
55 return *this;
56 }
58
60
64 inline const S3Identifier& GetS3() const { return m_s3; }
65 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
66 template <typename S3T = S3Identifier>
67 void SetS3(S3T&& value) {
68 m_s3HasBeenSet = true;
69 m_s3 = std::forward<S3T>(value);
70 }
71 template <typename S3T = S3Identifier>
72 APISchema& WithS3(S3T&& value) {
73 SetS3(std::forward<S3T>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_payload;
79
80 S3Identifier m_s3;
81 bool m_payloadHasBeenSet = false;
82 bool m_s3HasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace BedrockAgentRuntime
87} // namespace Aws
const S3Identifier & GetS3() const
Definition APISchema.h:64
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API APISchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API APISchema(Aws::Utils::Json::JsonView jsonValue)
APISchema & WithPayload(PayloadT &&value)
Definition APISchema.h:53
AWS_BEDROCKAGENTRUNTIME_API APISchema()=default
const Aws::String & GetPayload() const
Definition APISchema.h:45
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue