AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateSessionRequest.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 CreateSessionRequest() = 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 "CreateSession"; }
29
30 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
41 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
42 template <typename EncryptionKeyArnT = Aws::String>
44 m_encryptionKeyArnHasBeenSet = true;
45 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
46 }
47 template <typename EncryptionKeyArnT = Aws::String>
49 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::Map<Aws::String, Aws::String>& GetSessionMetadata() const { return m_sessionMetadata; }
61 inline bool SessionMetadataHasBeenSet() const { return m_sessionMetadataHasBeenSet; }
62 template <typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
64 m_sessionMetadataHasBeenSet = true;
65 m_sessionMetadata = std::forward<SessionMetadataT>(value);
66 }
67 template <typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
69 SetSessionMetadata(std::forward<SessionMetadataT>(value));
70 return *this;
71 }
72 template <typename SessionMetadataKeyT = Aws::String, typename SessionMetadataValueT = Aws::String>
74 m_sessionMetadataHasBeenSet = true;
75 m_sessionMetadata.emplace(std::forward<SessionMetadataKeyT>(key), std::forward<SessionMetadataValueT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 m_tagsHasBeenSet = true;
100 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_encryptionKeyArn;
106
107 Aws::Map<Aws::String, Aws::String> m_sessionMetadata;
108
110 bool m_encryptionKeyArnHasBeenSet = false;
111 bool m_sessionMetadataHasBeenSet = false;
112 bool m_tagsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace BedrockAgentRuntime
117} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
CreateSessionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSessionRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSessionRequest & WithSessionMetadata(SessionMetadataT &&value)
CreateSessionRequest & AddSessionMetadata(SessionMetadataKeyT &&key, SessionMetadataValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetSessionMetadata() const
AWS_BEDROCKAGENTRUNTIME_API CreateSessionRequest()=default
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