7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent-runtime/model/Metadata.h>
22namespace BedrockAgentRuntime
48 inline void SetFailureCode(
int value) { m_failureCodeHasBeenSet =
true; m_failureCode = value; }
58 template<
typename FailureReasonT = Aws::String>
59 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet =
true; m_failureReason = std::forward<FailureReasonT>(value); }
60 template<
typename FailureReasonT = Aws::String>
70 template<
typename MetadataT = Metadata>
71 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet =
true; m_metadata = std::forward<MetadataT>(value); }
72 template<
typename MetadataT = Metadata>
82 template<
typename TraceIdT = Aws::String>
83 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet =
true; m_traceId = std::forward<TraceIdT>(value); }
84 template<
typename TraceIdT = Aws::String>
90 bool m_failureCodeHasBeenSet =
false;
93 bool m_failureReasonHasBeenSet =
false;
96 bool m_metadataHasBeenSet =
false;
99 bool m_traceIdHasBeenSet =
false;
AWS_BEDROCKAGENTRUNTIME_API FailureTrace & operator=(Aws::Utils::Json::JsonView jsonValue)
FailureTrace & WithFailureCode(int value)
FailureTrace & WithMetadata(MetadataT &&value)
AWS_BEDROCKAGENTRUNTIME_API FailureTrace()=default
AWS_BEDROCKAGENTRUNTIME_API FailureTrace(Aws::Utils::Json::JsonView jsonValue)
void SetTraceId(TraceIdT &&value)
const Metadata & GetMetadata() const
const Aws::String & GetFailureReason() const
bool TraceIdHasBeenSet() const
void SetFailureCode(int value)
bool MetadataHasBeenSet() const
void SetFailureReason(FailureReasonT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool FailureReasonHasBeenSet() const
int GetFailureCode() const
void SetMetadata(MetadataT &&value)
bool FailureCodeHasBeenSet() const
FailureTrace & WithFailureReason(FailureReasonT &&value)
FailureTrace & WithTraceId(TraceIdT &&value)
const Aws::String & GetTraceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue