AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
30 public:
31 AWS_BEDROCK_API EvaluationModelConfig() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const EvaluationBedrockModel& GetBedrockModel() const { return m_bedrockModel; }
42 inline bool BedrockModelHasBeenSet() const { return m_bedrockModelHasBeenSet; }
43 template <typename BedrockModelT = EvaluationBedrockModel>
45 m_bedrockModelHasBeenSet = true;
46 m_bedrockModel = std::forward<BedrockModelT>(value);
47 }
48 template <typename BedrockModelT = EvaluationBedrockModel>
50 SetBedrockModel(std::forward<BedrockModelT>(value));
51 return *this;
52 }
54
56
60 inline const EvaluationPrecomputedInferenceSource& GetPrecomputedInferenceSource() const { return m_precomputedInferenceSource; }
61 inline bool PrecomputedInferenceSourceHasBeenSet() const { return m_precomputedInferenceSourceHasBeenSet; }
62 template <typename PrecomputedInferenceSourceT = EvaluationPrecomputedInferenceSource>
64 m_precomputedInferenceSourceHasBeenSet = true;
65 m_precomputedInferenceSource = std::forward<PrecomputedInferenceSourceT>(value);
66 }
67 template <typename PrecomputedInferenceSourceT = EvaluationPrecomputedInferenceSource>
69 SetPrecomputedInferenceSource(std::forward<PrecomputedInferenceSourceT>(value));
70 return *this;
71 }
73 private:
74 EvaluationBedrockModel m_bedrockModel;
75
76 EvaluationPrecomputedInferenceSource m_precomputedInferenceSource;
77 bool m_bedrockModelHasBeenSet = false;
78 bool m_precomputedInferenceSourceHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Bedrock
83} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue