AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClarifyShapConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ClarifyShapBaselineConfig.h>
9#include <aws/sagemaker/model/ClarifyTextConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API ClarifyShapConfig() = default;
32 AWS_SAGEMAKER_API ClarifyShapConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ClarifyShapBaselineConfig& GetShapBaselineConfig() const { return m_shapBaselineConfig; }
41 inline bool ShapBaselineConfigHasBeenSet() const { return m_shapBaselineConfigHasBeenSet; }
42 template <typename ShapBaselineConfigT = ClarifyShapBaselineConfig>
43 void SetShapBaselineConfig(ShapBaselineConfigT&& value) {
44 m_shapBaselineConfigHasBeenSet = true;
45 m_shapBaselineConfig = std::forward<ShapBaselineConfigT>(value);
46 }
47 template <typename ShapBaselineConfigT = ClarifyShapBaselineConfig>
48 ClarifyShapConfig& WithShapBaselineConfig(ShapBaselineConfigT&& value) {
49 SetShapBaselineConfig(std::forward<ShapBaselineConfigT>(value));
50 return *this;
51 }
53
55
63 inline int GetNumberOfSamples() const { return m_numberOfSamples; }
64 inline bool NumberOfSamplesHasBeenSet() const { return m_numberOfSamplesHasBeenSet; }
65 inline void SetNumberOfSamples(int value) {
66 m_numberOfSamplesHasBeenSet = true;
67 m_numberOfSamples = value;
68 }
70 SetNumberOfSamples(value);
71 return *this;
72 }
74
76
80 inline bool GetUseLogit() const { return m_useLogit; }
81 inline bool UseLogitHasBeenSet() const { return m_useLogitHasBeenSet; }
82 inline void SetUseLogit(bool value) {
83 m_useLogitHasBeenSet = true;
84 m_useLogit = value;
85 }
86 inline ClarifyShapConfig& WithUseLogit(bool value) {
87 SetUseLogit(value);
88 return *this;
89 }
91
93
98 inline int GetSeed() const { return m_seed; }
99 inline bool SeedHasBeenSet() const { return m_seedHasBeenSet; }
100 inline void SetSeed(int value) {
101 m_seedHasBeenSet = true;
102 m_seed = value;
103 }
104 inline ClarifyShapConfig& WithSeed(int value) {
105 SetSeed(value);
106 return *this;
107 }
109
111
116 inline const ClarifyTextConfig& GetTextConfig() const { return m_textConfig; }
117 inline bool TextConfigHasBeenSet() const { return m_textConfigHasBeenSet; }
118 template <typename TextConfigT = ClarifyTextConfig>
119 void SetTextConfig(TextConfigT&& value) {
120 m_textConfigHasBeenSet = true;
121 m_textConfig = std::forward<TextConfigT>(value);
122 }
123 template <typename TextConfigT = ClarifyTextConfig>
124 ClarifyShapConfig& WithTextConfig(TextConfigT&& value) {
125 SetTextConfig(std::forward<TextConfigT>(value));
126 return *this;
127 }
129 private:
130 ClarifyShapBaselineConfig m_shapBaselineConfig;
131
132 int m_numberOfSamples{0};
133
134 bool m_useLogit{false};
135
136 int m_seed{0};
137
138 ClarifyTextConfig m_textConfig;
139 bool m_shapBaselineConfigHasBeenSet = false;
140 bool m_numberOfSamplesHasBeenSet = false;
141 bool m_useLogitHasBeenSet = false;
142 bool m_seedHasBeenSet = false;
143 bool m_textConfigHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace SageMaker
148} // namespace Aws
const ClarifyShapBaselineConfig & GetShapBaselineConfig() const
AWS_SAGEMAKER_API ClarifyShapConfig()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ClarifyShapConfig(Aws::Utils::Json::JsonView jsonValue)
void SetShapBaselineConfig(ShapBaselineConfigT &&value)
ClarifyShapConfig & WithShapBaselineConfig(ShapBaselineConfigT &&value)
ClarifyShapConfig & WithNumberOfSamples(int value)
AWS_SAGEMAKER_API ClarifyShapConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const ClarifyTextConfig & GetTextConfig() const
ClarifyShapConfig & WithSeed(int value)
ClarifyShapConfig & WithUseLogit(bool value)
ClarifyShapConfig & WithTextConfig(TextConfigT &&value)
Aws::Utils::Json::JsonValue JsonValue