AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InvocationSummary.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
33 public:
34 AWS_BEDROCKAGENTRUNTIME_API InvocationSummary() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
44 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
45 template <typename CreatedAtT = Aws::Utils::DateTime>
46 void SetCreatedAt(CreatedAtT&& value) {
47 m_createdAtHasBeenSet = true;
48 m_createdAt = std::forward<CreatedAtT>(value);
49 }
50 template <typename CreatedAtT = Aws::Utils::DateTime>
52 SetCreatedAt(std::forward<CreatedAtT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetInvocationId() const { return m_invocationId; }
62 inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; }
63 template <typename InvocationIdT = Aws::String>
65 m_invocationIdHasBeenSet = true;
66 m_invocationId = std::forward<InvocationIdT>(value);
67 }
68 template <typename InvocationIdT = Aws::String>
70 SetInvocationId(std::forward<InvocationIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSessionId() const { return m_sessionId; }
80 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
81 template <typename SessionIdT = Aws::String>
82 void SetSessionId(SessionIdT&& value) {
83 m_sessionIdHasBeenSet = true;
84 m_sessionId = std::forward<SessionIdT>(value);
85 }
86 template <typename SessionIdT = Aws::String>
88 SetSessionId(std::forward<SessionIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::Utils::DateTime m_createdAt{};
94
95 Aws::String m_invocationId;
96
97 Aws::String m_sessionId;
98 bool m_createdAtHasBeenSet = false;
99 bool m_invocationIdHasBeenSet = false;
100 bool m_sessionIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace BedrockAgentRuntime
105} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API InvocationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API InvocationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API InvocationSummary()=default
InvocationSummary & WithSessionId(SessionIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
InvocationSummary & WithInvocationId(InvocationIdT &&value)
InvocationSummary & WithCreatedAt(CreatedAtT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue