AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSessionRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace BedrockAgentRuntime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BEDROCKAGENTRUNTIME_API UpdateSessionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSession"; }
32
33 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetSessionIdentifier() const { return m_sessionIdentifier; }
42 inline bool SessionIdentifierHasBeenSet() const { return m_sessionIdentifierHasBeenSet; }
43 template<typename SessionIdentifierT = Aws::String>
44 void SetSessionIdentifier(SessionIdentifierT&& value) { m_sessionIdentifierHasBeenSet = true; m_sessionIdentifier = std::forward<SessionIdentifierT>(value); }
45 template<typename SessionIdentifierT = Aws::String>
46 UpdateSessionRequest& WithSessionIdentifier(SessionIdentifierT&& value) { SetSessionIdentifier(std::forward<SessionIdentifierT>(value)); return *this;}
48
50
55 inline const Aws::Map<Aws::String, Aws::String>& GetSessionMetadata() const { return m_sessionMetadata; }
56 inline bool SessionMetadataHasBeenSet() const { return m_sessionMetadataHasBeenSet; }
57 template<typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
58 void SetSessionMetadata(SessionMetadataT&& value) { m_sessionMetadataHasBeenSet = true; m_sessionMetadata = std::forward<SessionMetadataT>(value); }
59 template<typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
60 UpdateSessionRequest& WithSessionMetadata(SessionMetadataT&& value) { SetSessionMetadata(std::forward<SessionMetadataT>(value)); return *this;}
61 template<typename SessionMetadataKeyT = Aws::String, typename SessionMetadataValueT = Aws::String>
62 UpdateSessionRequest& AddSessionMetadata(SessionMetadataKeyT&& key, SessionMetadataValueT&& value) {
63 m_sessionMetadataHasBeenSet = true; m_sessionMetadata.emplace(std::forward<SessionMetadataKeyT>(key), std::forward<SessionMetadataValueT>(value)); return *this;
64 }
66 private:
67
68 Aws::String m_sessionIdentifier;
69 bool m_sessionIdentifierHasBeenSet = false;
70
71 Aws::Map<Aws::String, Aws::String> m_sessionMetadata;
72 bool m_sessionMetadataHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace BedrockAgentRuntime
77} // 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::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