AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
APISchema.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/S3Identifier.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 BedrockAgent
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_BEDROCKAGENT_API APISchema() = default;
41 AWS_BEDROCKAGENT_API APISchema(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API APISchema& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetPayload() const { return m_payload; }
54 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
55 template<typename PayloadT = Aws::String>
56 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
57 template<typename PayloadT = Aws::String>
58 APISchema& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
60
62
68 inline const S3Identifier& GetS3() const { return m_s3; }
69 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
70 template<typename S3T = S3Identifier>
71 void SetS3(S3T&& value) { m_s3HasBeenSet = true; m_s3 = std::forward<S3T>(value); }
72 template<typename S3T = S3Identifier>
73 APISchema& WithS3(S3T&& value) { SetS3(std::forward<S3T>(value)); return *this;}
75 private:
76
77 Aws::String m_payload;
78 bool m_payloadHasBeenSet = false;
79
80 S3Identifier m_s3;
81 bool m_s3HasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace BedrockAgent
86} // namespace Aws
AWS_BEDROCKAGENT_API APISchema(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API APISchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
APISchema & WithS3(S3T &&value)
Definition APISchema.h:73
const Aws::String & GetPayload() const
Definition APISchema.h:53
void SetPayload(PayloadT &&value)
Definition APISchema.h:56
const S3Identifier & GetS3() const
Definition APISchema.h:68
APISchema & WithPayload(PayloadT &&value)
Definition APISchema.h:58
AWS_BEDROCKAGENT_API APISchema()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue