AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSessionRequest.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 CreateSessionRequest() = 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 "CreateSession"; }
32
33 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
34
35
37
44 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
45 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
46 template<typename EncryptionKeyArnT = Aws::String>
47 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
48 template<typename EncryptionKeyArnT = Aws::String>
49 CreateSessionRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
51
53
58 inline const Aws::Map<Aws::String, Aws::String>& GetSessionMetadata() const { return m_sessionMetadata; }
59 inline bool SessionMetadataHasBeenSet() const { return m_sessionMetadataHasBeenSet; }
60 template<typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
61 void SetSessionMetadata(SessionMetadataT&& value) { m_sessionMetadataHasBeenSet = true; m_sessionMetadata = std::forward<SessionMetadataT>(value); }
62 template<typename SessionMetadataT = Aws::Map<Aws::String, Aws::String>>
63 CreateSessionRequest& WithSessionMetadata(SessionMetadataT&& value) { SetSessionMetadata(std::forward<SessionMetadataT>(value)); return *this;}
64 template<typename SessionMetadataKeyT = Aws::String, typename SessionMetadataValueT = Aws::String>
65 CreateSessionRequest& AddSessionMetadata(SessionMetadataKeyT&& key, SessionMetadataValueT&& value) {
66 m_sessionMetadataHasBeenSet = true; m_sessionMetadata.emplace(std::forward<SessionMetadataKeyT>(key), std::forward<SessionMetadataValueT>(value)); return *this;
67 }
69
71
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
79 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 CreateSessionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
81 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
82 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
83 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
84 }
86 private:
87
88 Aws::String m_encryptionKeyArn;
89 bool m_encryptionKeyArnHasBeenSet = false;
90
91 Aws::Map<Aws::String, Aws::String> m_sessionMetadata;
92 bool m_sessionMetadataHasBeenSet = false;
93
95 bool m_tagsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace BedrockAgentRuntime
100} // 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::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