AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_BEDROCKAGENT_API QueryGenerationConfiguration() = default;
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetExecutionTimeoutSeconds() const { return m_executionTimeoutSeconds; }
48 inline bool ExecutionTimeoutSecondsHasBeenSet() const { return m_executionTimeoutSecondsHasBeenSet; }
49 inline void SetExecutionTimeoutSeconds(int value) { m_executionTimeoutSecondsHasBeenSet = true; m_executionTimeoutSeconds = value; }
52
54
57 inline const QueryGenerationContext& GetGenerationContext() const { return m_generationContext; }
58 inline bool GenerationContextHasBeenSet() const { return m_generationContextHasBeenSet; }
59 template<typename GenerationContextT = QueryGenerationContext>
60 void SetGenerationContext(GenerationContextT&& value) { m_generationContextHasBeenSet = true; m_generationContext = std::forward<GenerationContextT>(value); }
61 template<typename GenerationContextT = QueryGenerationContext>
62 QueryGenerationConfiguration& WithGenerationContext(GenerationContextT&& value) { SetGenerationContext(std::forward<GenerationContextT>(value)); return *this;}
64 private:
65
66 int m_executionTimeoutSeconds{0};
67 bool m_executionTimeoutSecondsHasBeenSet = false;
68
69 QueryGenerationContext m_generationContext;
70 bool m_generationContextHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace BedrockAgent
75} // 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)
Aws::Utils::Json::JsonValue JsonValue