AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
PromptGenAiResource.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/PromptAgentResource.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent {
20namespace Model {
21
31 public:
32 AWS_BEDROCKAGENT_API PromptGenAiResource() = default;
33 AWS_BEDROCKAGENT_API PromptGenAiResource(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const PromptAgentResource& GetAgent() const { return m_agent; }
42 inline bool AgentHasBeenSet() const { return m_agentHasBeenSet; }
43 template <typename AgentT = PromptAgentResource>
44 void SetAgent(AgentT&& value) {
45 m_agentHasBeenSet = true;
46 m_agent = std::forward<AgentT>(value);
47 }
48 template <typename AgentT = PromptAgentResource>
49 PromptGenAiResource& WithAgent(AgentT&& value) {
50 SetAgent(std::forward<AgentT>(value));
51 return *this;
52 }
54 private:
55 PromptAgentResource m_agent;
56 bool m_agentHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace BedrockAgent
61} // namespace Aws
PromptGenAiResource & WithAgent(AgentT &&value)
AWS_BEDROCKAGENT_API PromptGenAiResource(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API PromptGenAiResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API PromptGenAiResource()=default
const PromptAgentResource & GetAgent() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue