AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UpdateSessionRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace BedrockAgentRuntime {
16namespace Model {
17
21 public:
22 AWS_BEDROCKAGENTRUNTIME_API UpdateSessionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateSession"; }
29
30 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetSessionIdentifier() const { return m_sessionIdentifier; }
38 inline bool SessionIdentifierHasBeenSet() const { return m_sessionIdentifierHasBeenSet; }
39 template <typename SessionIdentifierT = Aws::String>
41 m_sessionIdentifierHasBeenSet = true;
42 m_sessionIdentifier = std::forward<SessionIdentifierT>(value);
43 }
44 template <typename SessionIdentifierT = Aws::String>
46 SetSessionIdentifier(std::forward<SessionIdentifierT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::Map<Aws::String, Aws::String>& GetSessionMetadata() const { return m_sessionMetadata; }
58 inline bool SessionMetadataHasBeenSet() const { return m_sessionMetadataHasBeenSet; }
59 template <typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
61 m_sessionMetadataHasBeenSet = true;
62 m_sessionMetadata = std::forward<SessionMetadataT>(value);
63 }
64 template <typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
66 SetSessionMetadata(std::forward<SessionMetadataT>(value));
67 return *this;
68 }
69 template <typename SessionMetadataKeyT = Aws::String, typename SessionMetadataValueT = Aws::String>
71 m_sessionMetadataHasBeenSet = true;
72 m_sessionMetadata.emplace(std::forward<SessionMetadataKeyT>(key), std::forward<SessionMetadataValueT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_sessionIdentifier;
78
79 Aws::Map<Aws::String, Aws::String> m_sessionMetadata;
80 bool m_sessionIdentifierHasBeenSet = false;
81 bool m_sessionMetadataHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace BedrockAgentRuntime
86} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API UpdateSessionRequest()=default
UpdateSessionRequest & AddSessionMetadata(SessionMetadataKeyT &&key, SessionMetadataValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
UpdateSessionRequest & WithSessionMetadata(SessionMetadataT &&value)
UpdateSessionRequest & WithSessionIdentifier(SessionIdentifierT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionMetadata() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String