AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
UserContext.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentRuntime {
20namespace Model {
21
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API UserContext() = default;
33 AWS_BEDROCKAGENTRUNTIME_API UserContext(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetUserId() const { return m_userId; }
42 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
43 template <typename UserIdT = Aws::String>
44 void SetUserId(UserIdT&& value) {
45 m_userIdHasBeenSet = true;
46 m_userId = std::forward<UserIdT>(value);
47 }
48 template <typename UserIdT = Aws::String>
50 SetUserId(std::forward<UserIdT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_userId;
56 bool m_userIdHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace BedrockAgentRuntime
61} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API UserContext & operator=(Aws::Utils::Json::JsonView jsonValue)
UserContext & WithUserId(UserIdT &&value)
Definition UserContext.h:49
AWS_BEDROCKAGENTRUNTIME_API UserContext(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API UserContext()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUserId() const
Definition UserContext.h:41
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