AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
EvaluationModelConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/EvaluationBedrockModel.h>
9#include <aws/bedrock/model/EvaluationPrecomputedInferenceSource.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCK_API EvaluationModelConfig() = default;
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const EvaluationBedrockModel& GetBedrockModel() const { return m_bedrockModel; }
48 inline bool BedrockModelHasBeenSet() const { return m_bedrockModelHasBeenSet; }
49 template<typename BedrockModelT = EvaluationBedrockModel>
50 void SetBedrockModel(BedrockModelT&& value) { m_bedrockModelHasBeenSet = true; m_bedrockModel = std::forward<BedrockModelT>(value); }
51 template<typename BedrockModelT = EvaluationBedrockModel>
52 EvaluationModelConfig& WithBedrockModel(BedrockModelT&& value) { SetBedrockModel(std::forward<BedrockModelT>(value)); return *this;}
54
56
60 inline const EvaluationPrecomputedInferenceSource& GetPrecomputedInferenceSource() const { return m_precomputedInferenceSource; }
61 inline bool PrecomputedInferenceSourceHasBeenSet() const { return m_precomputedInferenceSourceHasBeenSet; }
62 template<typename PrecomputedInferenceSourceT = EvaluationPrecomputedInferenceSource>
63 void SetPrecomputedInferenceSource(PrecomputedInferenceSourceT&& value) { m_precomputedInferenceSourceHasBeenSet = true; m_precomputedInferenceSource = std::forward<PrecomputedInferenceSourceT>(value); }
64 template<typename PrecomputedInferenceSourceT = EvaluationPrecomputedInferenceSource>
65 EvaluationModelConfig& WithPrecomputedInferenceSource(PrecomputedInferenceSourceT&& value) { SetPrecomputedInferenceSource(std::forward<PrecomputedInferenceSourceT>(value)); return *this;}
67 private:
68
69 EvaluationBedrockModel m_bedrockModel;
70 bool m_bedrockModelHasBeenSet = false;
71
72 EvaluationPrecomputedInferenceSource m_precomputedInferenceSource;
73 bool m_precomputedInferenceSourceHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Bedrock
78} // namespace Aws
AWS_BEDROCK_API EvaluationModelConfig()=default
EvaluationModelConfig & WithBedrockModel(BedrockModelT &&value)
AWS_BEDROCK_API EvaluationModelConfig(Aws::Utils::Json::JsonView jsonValue)
EvaluationModelConfig & WithPrecomputedInferenceSource(PrecomputedInferenceSourceT &&value)
const EvaluationBedrockModel & GetBedrockModel() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const EvaluationPrecomputedInferenceSource & GetPrecomputedInferenceSource() const
void SetPrecomputedInferenceSource(PrecomputedInferenceSourceT &&value)
AWS_BEDROCK_API EvaluationModelConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue