AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RFTConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GraderConfig.h>
9#include <aws/bedrock/model/RFTHyperParameters.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
29class RFTConfig {
30 public:
31 AWS_BEDROCK_API RFTConfig() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const GraderConfig& GetGraderConfig() const { return m_graderConfig; }
42 inline bool GraderConfigHasBeenSet() const { return m_graderConfigHasBeenSet; }
43 template <typename GraderConfigT = GraderConfig>
45 m_graderConfigHasBeenSet = true;
46 m_graderConfig = std::forward<GraderConfigT>(value);
47 }
48 template <typename GraderConfigT = GraderConfig>
50 SetGraderConfig(std::forward<GraderConfigT>(value));
51 return *this;
52 }
54
56
60 inline const RFTHyperParameters& GetHyperParameters() const { return m_hyperParameters; }
61 inline bool HyperParametersHasBeenSet() const { return m_hyperParametersHasBeenSet; }
62 template <typename HyperParametersT = RFTHyperParameters>
64 m_hyperParametersHasBeenSet = true;
65 m_hyperParameters = std::forward<HyperParametersT>(value);
66 }
67 template <typename HyperParametersT = RFTHyperParameters>
69 SetHyperParameters(std::forward<HyperParametersT>(value));
70 return *this;
71 }
73 private:
74 GraderConfig m_graderConfig;
75
76 RFTHyperParameters m_hyperParameters;
77 bool m_graderConfigHasBeenSet = false;
78 bool m_hyperParametersHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Bedrock
83} // namespace Aws
void SetGraderConfig(GraderConfigT &&value)
Definition RFTConfig.h:44
bool GraderConfigHasBeenSet() const
Definition RFTConfig.h:42
AWS_BEDROCK_API RFTConfig(Aws::Utils::Json::JsonView jsonValue)
RFTConfig & WithHyperParameters(HyperParametersT &&value)
Definition RFTConfig.h:68
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API RFTConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HyperParametersHasBeenSet() const
Definition RFTConfig.h:61
RFTConfig & WithGraderConfig(GraderConfigT &&value)
Definition RFTConfig.h:49
const GraderConfig & GetGraderConfig() const
Definition RFTConfig.h:41
const RFTHyperParameters & GetHyperParameters() const
Definition RFTConfig.h:60
void SetHyperParameters(HyperParametersT &&value)
Definition RFTConfig.h:63
AWS_BEDROCK_API RFTConfig()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue