AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
UpdateRetrievalInstructionRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/RetrievalInstructionContent.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace BedrockAgent {
16namespace Model {
17
21 public:
22 AWS_BEDROCKAGENT_API UpdateRetrievalInstructionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateRetrievalInstruction"; }
29
30 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetRetrievalInstructionId() const { return m_retrievalInstructionId; }
37 inline bool RetrievalInstructionIdHasBeenSet() const { return m_retrievalInstructionIdHasBeenSet; }
38 template <typename RetrievalInstructionIdT = Aws::String>
39 void SetRetrievalInstructionId(RetrievalInstructionIdT&& value) {
40 m_retrievalInstructionIdHasBeenSet = true;
41 m_retrievalInstructionId = std::forward<RetrievalInstructionIdT>(value);
42 }
43 template <typename RetrievalInstructionIdT = Aws::String>
45 SetRetrievalInstructionId(std::forward<RetrievalInstructionIdT>(value));
46 return *this;
47 }
49
51
56 inline const RetrievalInstructionContent& GetInstruction() const { return m_instruction; }
57 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
58 template <typename InstructionT = RetrievalInstructionContent>
59 void SetInstruction(InstructionT&& value) {
60 m_instructionHasBeenSet = true;
61 m_instruction = std::forward<InstructionT>(value);
62 }
63 template <typename InstructionT = RetrievalInstructionContent>
65 SetInstruction(std::forward<InstructionT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_retrievalInstructionId;
90
91 RetrievalInstructionContent m_instruction;
92
93 Aws::String m_description;
94 bool m_retrievalInstructionIdHasBeenSet = false;
95 bool m_instructionHasBeenSet = false;
96 bool m_descriptionHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockAgent
101} // namespace Aws
AWS_BEDROCKAGENT_API UpdateRetrievalInstructionRequest()=default
UpdateRetrievalInstructionRequest & WithInstruction(InstructionT &&value)
UpdateRetrievalInstructionRequest & WithRetrievalInstructionId(RetrievalInstructionIdT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateRetrievalInstructionRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String