AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
RetrievalInstructionFailureReason.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/RetrievalInstructionFailureReasonCode.h>
9#include <aws/bedrock-agent/model/RetrievalInstructionFieldName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENT_API RetrievalInstructionFailureReason() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline RetrievalInstructionFieldName GetFieldName() const { return m_fieldName; }
45 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
47 m_fieldNameHasBeenSet = true;
48 m_fieldName = value;
49 }
55
57
68 inline RetrievalInstructionFailureReasonCode GetCode() const { return m_code; }
69 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
71 m_codeHasBeenSet = true;
72 m_code = value;
73 }
79
81
85 inline const Aws::String& GetMessage() const { return m_message; }
86 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
87 template <typename MessageT = Aws::String>
88 void SetMessage(MessageT&& value) {
89 m_messageHasBeenSet = true;
90 m_message = std::forward<MessageT>(value);
91 }
92 template <typename MessageT = Aws::String>
94 SetMessage(std::forward<MessageT>(value));
95 return *this;
96 }
98 private:
100
102
103 Aws::String m_message;
104 bool m_fieldNameHasBeenSet = false;
105 bool m_codeHasBeenSet = false;
106 bool m_messageHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace BedrockAgent
111} // namespace Aws
RetrievalInstructionFailureReason & WithMessage(MessageT &&value)
AWS_BEDROCKAGENT_API RetrievalInstructionFailureReason & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrievalInstructionFailureReason & WithCode(RetrievalInstructionFailureReasonCode value)
RetrievalInstructionFailureReason & WithFieldName(RetrievalInstructionFieldName value)
AWS_BEDROCKAGENT_API RetrievalInstructionFailureReason()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API RetrievalInstructionFailureReason(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue