AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateInvocationResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
26 public:
27 AWS_BEDROCKAGENTRUNTIME_API CreateInvocationResult() = default;
30
32
35 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
36 template <typename CreatedAtT = Aws::Utils::DateTime>
37 void SetCreatedAt(CreatedAtT&& value) {
38 m_createdAtHasBeenSet = true;
39 m_createdAt = std::forward<CreatedAtT>(value);
40 }
41 template <typename CreatedAtT = Aws::Utils::DateTime>
43 SetCreatedAt(std::forward<CreatedAtT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetInvocationId() const { return m_invocationId; }
53 template <typename InvocationIdT = Aws::String>
55 m_invocationIdHasBeenSet = true;
56 m_invocationId = std::forward<InvocationIdT>(value);
57 }
58 template <typename InvocationIdT = Aws::String>
60 SetInvocationId(std::forward<InvocationIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetSessionId() const { return m_sessionId; }
70 template <typename SessionIdT = Aws::String>
71 void SetSessionId(SessionIdT&& value) {
72 m_sessionIdHasBeenSet = true;
73 m_sessionId = std::forward<SessionIdT>(value);
74 }
75 template <typename SessionIdT = Aws::String>
77 SetSessionId(std::forward<SessionIdT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::Utils::DateTime m_createdAt{};
100
101 Aws::String m_invocationId;
102
103 Aws::String m_sessionId;
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_createdAtHasBeenSet = false;
108 bool m_invocationIdHasBeenSet = false;
109 bool m_sessionIdHasBeenSet = false;
110 bool m_requestIdHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace BedrockAgentRuntime
115} // namespace Aws
CreateInvocationResult & WithRequestId(RequestIdT &&value)
CreateInvocationResult & WithCreatedAt(CreatedAtT &&value)
AWS_BEDROCKAGENTRUNTIME_API CreateInvocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateInvocationResult & WithSessionId(SessionIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API CreateInvocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BEDROCKAGENTRUNTIME_API CreateInvocationResult()=default
CreateInvocationResult & WithInvocationId(InvocationIdT &&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