AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailureTrace.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API FailureTrace();
36 AWS_BEDROCKAGENTRUNTIME_API FailureTrace(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTRUNTIME_API FailureTrace& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
46 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
47 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
48 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
49 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
50 inline FailureTrace& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
51 inline FailureTrace& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
52 inline FailureTrace& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
54
56
59 inline const Aws::String& GetTraceId() const{ return m_traceId; }
60 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
61 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
62 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
63 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
64 inline FailureTrace& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
65 inline FailureTrace& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
66 inline FailureTrace& WithTraceId(const char* value) { SetTraceId(value); return *this;}
68 private:
69
70 Aws::String m_failureReason;
71 bool m_failureReasonHasBeenSet = false;
72
73 Aws::String m_traceId;
74 bool m_traceIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API FailureTrace & operator=(Aws::Utils::Json::JsonView jsonValue)
FailureTrace & WithFailureReason(const char *value)
void SetFailureReason(const Aws::String &value)
void SetTraceId(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API FailureTrace(Aws::Utils::Json::JsonView jsonValue)
FailureTrace & WithTraceId(const char *value)
const Aws::String & GetFailureReason() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FailureTrace & WithFailureReason(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API FailureTrace()
FailureTrace & WithFailureReason(Aws::String &&value)
FailureTrace & WithTraceId(Aws::String &&value)
FailureTrace & WithTraceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue