AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProfilerRuleConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ProcessingInstanceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
30 public:
31 AWS_SAGEMAKER_API ProfilerRuleConfiguration() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetRuleConfigurationName() const { return m_ruleConfigurationName; }
42 inline bool RuleConfigurationNameHasBeenSet() const { return m_ruleConfigurationNameHasBeenSet; }
43 template <typename RuleConfigurationNameT = Aws::String>
44 void SetRuleConfigurationName(RuleConfigurationNameT&& value) {
45 m_ruleConfigurationNameHasBeenSet = true;
46 m_ruleConfigurationName = std::forward<RuleConfigurationNameT>(value);
47 }
48 template <typename RuleConfigurationNameT = Aws::String>
49 ProfilerRuleConfiguration& WithRuleConfigurationName(RuleConfigurationNameT&& value) {
50 SetRuleConfigurationName(std::forward<RuleConfigurationNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetLocalPath() const { return m_localPath; }
61 inline bool LocalPathHasBeenSet() const { return m_localPathHasBeenSet; }
62 template <typename LocalPathT = Aws::String>
63 void SetLocalPath(LocalPathT&& value) {
64 m_localPathHasBeenSet = true;
65 m_localPath = std::forward<LocalPathT>(value);
66 }
67 template <typename LocalPathT = Aws::String>
69 SetLocalPath(std::forward<LocalPathT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetS3OutputPath() const { return m_s3OutputPath; }
79 inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; }
80 template <typename S3OutputPathT = Aws::String>
81 void SetS3OutputPath(S3OutputPathT&& value) {
82 m_s3OutputPathHasBeenSet = true;
83 m_s3OutputPath = std::forward<S3OutputPathT>(value);
84 }
85 template <typename S3OutputPathT = Aws::String>
87 SetS3OutputPath(std::forward<S3OutputPathT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetRuleEvaluatorImage() const { return m_ruleEvaluatorImage; }
98 inline bool RuleEvaluatorImageHasBeenSet() const { return m_ruleEvaluatorImageHasBeenSet; }
99 template <typename RuleEvaluatorImageT = Aws::String>
100 void SetRuleEvaluatorImage(RuleEvaluatorImageT&& value) {
101 m_ruleEvaluatorImageHasBeenSet = true;
102 m_ruleEvaluatorImage = std::forward<RuleEvaluatorImageT>(value);
103 }
104 template <typename RuleEvaluatorImageT = Aws::String>
105 ProfilerRuleConfiguration& WithRuleEvaluatorImage(RuleEvaluatorImageT&& value) {
106 SetRuleEvaluatorImage(std::forward<RuleEvaluatorImageT>(value));
107 return *this;
108 }
110
112
115 inline ProcessingInstanceType GetInstanceType() const { return m_instanceType; }
116 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
118 m_instanceTypeHasBeenSet = true;
119 m_instanceType = value;
120 }
122 SetInstanceType(value);
123 return *this;
124 }
126
128
132 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
133 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
134 inline void SetVolumeSizeInGB(int value) {
135 m_volumeSizeInGBHasBeenSet = true;
136 m_volumeSizeInGB = value;
137 }
139 SetVolumeSizeInGB(value);
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetRuleParameters() const { return m_ruleParameters; }
149 inline bool RuleParametersHasBeenSet() const { return m_ruleParametersHasBeenSet; }
150 template <typename RuleParametersT = Aws::Map<Aws::String, Aws::String>>
151 void SetRuleParameters(RuleParametersT&& value) {
152 m_ruleParametersHasBeenSet = true;
153 m_ruleParameters = std::forward<RuleParametersT>(value);
154 }
155 template <typename RuleParametersT = Aws::Map<Aws::String, Aws::String>>
157 SetRuleParameters(std::forward<RuleParametersT>(value));
158 return *this;
159 }
160 template <typename RuleParametersKeyT = Aws::String, typename RuleParametersValueT = Aws::String>
161 ProfilerRuleConfiguration& AddRuleParameters(RuleParametersKeyT&& key, RuleParametersValueT&& value) {
162 m_ruleParametersHasBeenSet = true;
163 m_ruleParameters.emplace(std::forward<RuleParametersKeyT>(key), std::forward<RuleParametersValueT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_ruleConfigurationName;
169
170 Aws::String m_localPath;
171
172 Aws::String m_s3OutputPath;
173
174 Aws::String m_ruleEvaluatorImage;
175
177
178 int m_volumeSizeInGB{0};
179
180 Aws::Map<Aws::String, Aws::String> m_ruleParameters;
181 bool m_ruleConfigurationNameHasBeenSet = false;
182 bool m_localPathHasBeenSet = false;
183 bool m_s3OutputPathHasBeenSet = false;
184 bool m_ruleEvaluatorImageHasBeenSet = false;
185 bool m_instanceTypeHasBeenSet = false;
186 bool m_volumeSizeInGBHasBeenSet = false;
187 bool m_ruleParametersHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace SageMaker
192} // namespace Aws
ProfilerRuleConfiguration & WithRuleConfigurationName(RuleConfigurationNameT &&value)
ProfilerRuleConfiguration & WithVolumeSizeInGB(int value)
void SetRuleConfigurationName(RuleConfigurationNameT &&value)
AWS_SAGEMAKER_API ProfilerRuleConfiguration(Aws::Utils::Json::JsonView jsonValue)
ProfilerRuleConfiguration & WithLocalPath(LocalPathT &&value)
ProfilerRuleConfiguration & WithRuleEvaluatorImage(RuleEvaluatorImageT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRuleParameters() const
AWS_SAGEMAKER_API ProfilerRuleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfilerRuleConfiguration & WithS3OutputPath(S3OutputPathT &&value)
ProfilerRuleConfiguration & WithInstanceType(ProcessingInstanceType value)
ProfilerRuleConfiguration & AddRuleParameters(RuleParametersKeyT &&key, RuleParametersValueT &&value)
AWS_SAGEMAKER_API ProfilerRuleConfiguration()=default
ProfilerRuleConfiguration & WithRuleParameters(RuleParametersT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue