AWS SDK for C++

AWS SDK for C++ Version 1.11.920

Loading...
Searching...
No Matches
LoraConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
26 public:
27 AWS_SAGEMAKER_API LoraConfig() = default;
28 AWS_SAGEMAKER_API LoraConfig(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SAGEMAKER_API LoraConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetRank() const { return m_rank; }
37 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
38 inline void SetRank(int value) {
39 m_rankHasBeenSet = true;
40 m_rank = value;
41 }
42 inline LoraConfig& WithRank(int value) {
43 SetRank(value);
44 return *this;
45 }
47
49
52 inline int GetAlpha() const { return m_alpha; }
53 inline bool AlphaHasBeenSet() const { return m_alphaHasBeenSet; }
54 inline void SetAlpha(int value) {
55 m_alphaHasBeenSet = true;
56 m_alpha = value;
57 }
58 inline LoraConfig& WithAlpha(int value) {
59 SetAlpha(value);
60 return *this;
61 }
63 private:
64 int m_rank{0};
65
66 int m_alpha{0};
67 bool m_rankHasBeenSet = false;
68 bool m_alphaHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace SageMaker
73} // namespace Aws
LoraConfig & WithRank(int value)
Definition LoraConfig.h:42
AWS_SAGEMAKER_API LoraConfig()=default
AWS_SAGEMAKER_API LoraConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API LoraConfig(Aws::Utils::Json::JsonView jsonValue)
LoraConfig & WithAlpha(int value)
Definition LoraConfig.h:58
Aws::Utils::Json::JsonValue JsonValue