AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
QueryGenerationConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/QueryGenerationContext.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent {
20namespace Model {
21
31 public:
32 AWS_BEDROCKAGENT_API QueryGenerationConfiguration() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetExecutionTimeoutSeconds() const { return m_executionTimeoutSeconds; }
42 inline bool ExecutionTimeoutSecondsHasBeenSet() const { return m_executionTimeoutSecondsHasBeenSet; }
43 inline void SetExecutionTimeoutSeconds(int value) {
44 m_executionTimeoutSecondsHasBeenSet = true;
45 m_executionTimeoutSeconds = value;
46 }
49 return *this;
50 }
52
54
57 inline const QueryGenerationContext& GetGenerationContext() const { return m_generationContext; }
58 inline bool GenerationContextHasBeenSet() const { return m_generationContextHasBeenSet; }
59 template <typename GenerationContextT = QueryGenerationContext>
61 m_generationContextHasBeenSet = true;
62 m_generationContext = std::forward<GenerationContextT>(value);
63 }
64 template <typename GenerationContextT = QueryGenerationContext>
66 SetGenerationContext(std::forward<GenerationContextT>(value));
67 return *this;
68 }
70 private:
71 int m_executionTimeoutSeconds{0};
72
73 QueryGenerationContext m_generationContext;
74 bool m_executionTimeoutSecondsHasBeenSet = false;
75 bool m_generationContextHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace BedrockAgent
80} // namespace Aws
AWS_BEDROCKAGENT_API QueryGenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryGenerationConfiguration & WithGenerationContext(GenerationContextT &&value)
AWS_BEDROCKAGENT_API QueryGenerationConfiguration()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
QueryGenerationConfiguration & WithExecutionTimeoutSeconds(int value)
AWS_BEDROCKAGENT_API QueryGenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue