AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateInvocationRequest.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/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace BedrockAgentRuntime {
15namespace Model {
16
20 public:
21 AWS_BEDROCKAGENTRUNTIME_API CreateInvocationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateInvocation"; }
28
29 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetDescription() const { return m_description; }
37 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
38 template <typename DescriptionT = Aws::String>
40 m_descriptionHasBeenSet = true;
41 m_description = std::forward<DescriptionT>(value);
42 }
43 template <typename DescriptionT = Aws::String>
45 SetDescription(std::forward<DescriptionT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetInvocationId() const { return m_invocationId; }
55 inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; }
56 template <typename InvocationIdT = Aws::String>
58 m_invocationIdHasBeenSet = true;
59 m_invocationId = std::forward<InvocationIdT>(value);
60 }
61 template <typename InvocationIdT = Aws::String>
63 SetInvocationId(std::forward<InvocationIdT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::String& GetSessionIdentifier() const { return m_sessionIdentifier; }
75 inline bool SessionIdentifierHasBeenSet() const { return m_sessionIdentifierHasBeenSet; }
76 template <typename SessionIdentifierT = Aws::String>
78 m_sessionIdentifierHasBeenSet = true;
79 m_sessionIdentifier = std::forward<SessionIdentifierT>(value);
80 }
81 template <typename SessionIdentifierT = Aws::String>
83 SetSessionIdentifier(std::forward<SessionIdentifierT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_description;
89
90 Aws::String m_invocationId;
91
92 Aws::String m_sessionIdentifier;
93 bool m_descriptionHasBeenSet = false;
94 bool m_invocationIdHasBeenSet = false;
95 bool m_sessionIdentifierHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace BedrockAgentRuntime
100} // namespace Aws
CreateInvocationRequest & WithSessionIdentifier(SessionIdentifierT &&value)
AWS_BEDROCKAGENTRUNTIME_API CreateInvocationRequest()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
CreateInvocationRequest & WithDescription(DescriptionT &&value)
CreateInvocationRequest & WithInvocationId(InvocationIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String