AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateTrainingJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateTrainingJob"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetTrainingJobName() const{ return m_trainingJobName; }
45 
50  inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; }
51 
56  inline void SetTrainingJobName(const Aws::String& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = value; }
57 
62  inline void SetTrainingJobName(Aws::String&& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = std::move(value); }
63 
68  inline void SetTrainingJobName(const char* value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName.assign(value); }
69 
74  inline UpdateTrainingJobRequest& WithTrainingJobName(const Aws::String& value) { SetTrainingJobName(value); return *this;}
75 
80  inline UpdateTrainingJobRequest& WithTrainingJobName(Aws::String&& value) { SetTrainingJobName(std::move(value)); return *this;}
81 
86  inline UpdateTrainingJobRequest& WithTrainingJobName(const char* value) { SetTrainingJobName(value); return *this;}
87 
88 
93  inline const ProfilerConfigForUpdate& GetProfilerConfig() const{ return m_profilerConfig; }
94 
99  inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
100 
105  inline void SetProfilerConfig(const ProfilerConfigForUpdate& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = value; }
106 
111  inline void SetProfilerConfig(ProfilerConfigForUpdate&& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = std::move(value); }
112 
117  inline UpdateTrainingJobRequest& WithProfilerConfig(const ProfilerConfigForUpdate& value) { SetProfilerConfig(value); return *this;}
118 
123  inline UpdateTrainingJobRequest& WithProfilerConfig(ProfilerConfigForUpdate&& value) { SetProfilerConfig(std::move(value)); return *this;}
124 
125 
130  inline const Aws::Vector<ProfilerRuleConfiguration>& GetProfilerRuleConfigurations() const{ return m_profilerRuleConfigurations; }
131 
136  inline bool ProfilerRuleConfigurationsHasBeenSet() const { return m_profilerRuleConfigurationsHasBeenSet; }
137 
142  inline void SetProfilerRuleConfigurations(const Aws::Vector<ProfilerRuleConfiguration>& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = value; }
143 
148  inline void SetProfilerRuleConfigurations(Aws::Vector<ProfilerRuleConfiguration>&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = std::move(value); }
149 
154  inline UpdateTrainingJobRequest& WithProfilerRuleConfigurations(const Aws::Vector<ProfilerRuleConfiguration>& value) { SetProfilerRuleConfigurations(value); return *this;}
155 
160  inline UpdateTrainingJobRequest& WithProfilerRuleConfigurations(Aws::Vector<ProfilerRuleConfiguration>&& value) { SetProfilerRuleConfigurations(std::move(value)); return *this;}
161 
166  inline UpdateTrainingJobRequest& AddProfilerRuleConfigurations(const ProfilerRuleConfiguration& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.push_back(value); return *this; }
167 
172  inline UpdateTrainingJobRequest& AddProfilerRuleConfigurations(ProfilerRuleConfiguration&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.push_back(std::move(value)); return *this; }
173 
174  private:
175 
176  Aws::String m_trainingJobName;
177  bool m_trainingJobNameHasBeenSet;
178 
179  ProfilerConfigForUpdate m_profilerConfig;
180  bool m_profilerConfigHasBeenSet;
181 
182  Aws::Vector<ProfilerRuleConfiguration> m_profilerRuleConfigurations;
183  bool m_profilerRuleConfigurationsHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace SageMaker
188 } // namespace Aws
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetTrainingJobName
void SetTrainingJobName(const Aws::String &value)
Definition: UpdateTrainingJobRequest.h:56
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ProfilerConfigForUpdate
Definition: ProfilerConfigForUpdate.h:35
Aws::SageMaker::Model::UpdateTrainingJobRequest::ProfilerRuleConfigurationsHasBeenSet
bool ProfilerRuleConfigurationsHasBeenSet() const
Definition: UpdateTrainingJobRequest.h:136
SageMaker_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::UpdateTrainingJobRequest::AddProfilerRuleConfigurations
UpdateTrainingJobRequest & AddProfilerRuleConfigurations(const ProfilerRuleConfiguration &value)
Definition: UpdateTrainingJobRequest.h:166
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithTrainingJobName
UpdateTrainingJobRequest & WithTrainingJobName(const char *value)
Definition: UpdateTrainingJobRequest.h:86
Aws::SageMaker::Model::UpdateTrainingJobRequest::GetProfilerConfig
const ProfilerConfigForUpdate & GetProfilerConfig() const
Definition: UpdateTrainingJobRequest.h:93
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetProfilerRuleConfigurations
void SetProfilerRuleConfigurations(Aws::Vector< ProfilerRuleConfiguration > &&value)
Definition: UpdateTrainingJobRequest.h:148
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetProfilerConfig
void SetProfilerConfig(const ProfilerConfigForUpdate &value)
Definition: UpdateTrainingJobRequest.h:105
AWSVector.h
Aws::SageMaker::Model::ProfilerRuleConfiguration
Definition: ProfilerRuleConfiguration.h:34
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithProfilerRuleConfigurations
UpdateTrainingJobRequest & WithProfilerRuleConfigurations(const Aws::Vector< ProfilerRuleConfiguration > &value)
Definition: UpdateTrainingJobRequest.h:154
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetProfilerRuleConfigurations
void SetProfilerRuleConfigurations(const Aws::Vector< ProfilerRuleConfiguration > &value)
Definition: UpdateTrainingJobRequest.h:142
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::UpdateTrainingJobRequest::GetProfilerRuleConfigurations
const Aws::Vector< ProfilerRuleConfiguration > & GetProfilerRuleConfigurations() const
Definition: UpdateTrainingJobRequest.h:130
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithTrainingJobName
UpdateTrainingJobRequest & WithTrainingJobName(Aws::String &&value)
Definition: UpdateTrainingJobRequest.h:80
Aws::SageMaker::Model::UpdateTrainingJobRequest::AddProfilerRuleConfigurations
UpdateTrainingJobRequest & AddProfilerRuleConfigurations(ProfilerRuleConfiguration &&value)
Definition: UpdateTrainingJobRequest.h:172
Aws::SageMaker::Model::UpdateTrainingJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::UpdateTrainingJobRequest::TrainingJobNameHasBeenSet
bool TrainingJobNameHasBeenSet() const
Definition: UpdateTrainingJobRequest.h:50
ProfilerConfigForUpdate.h
Aws::SageMaker::Model::UpdateTrainingJobRequest
Definition: UpdateTrainingJobRequest.h:25
ProfilerRuleConfiguration.h
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetProfilerConfig
void SetProfilerConfig(ProfilerConfigForUpdate &&value)
Definition: UpdateTrainingJobRequest.h:111
AWSString.h
Aws::SageMaker::Model::UpdateTrainingJobRequest::UpdateTrainingJobRequest
UpdateTrainingJobRequest()
Aws::SageMaker::Model::UpdateTrainingJobRequest::GetTrainingJobName
const Aws::String & GetTrainingJobName() const
Definition: UpdateTrainingJobRequest.h:44
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetTrainingJobName
void SetTrainingJobName(const char *value)
Definition: UpdateTrainingJobRequest.h:68
Aws::SageMaker::Model::UpdateTrainingJobRequest::ProfilerConfigHasBeenSet
bool ProfilerConfigHasBeenSet() const
Definition: UpdateTrainingJobRequest.h:99
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::UpdateTrainingJobRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithProfilerConfig
UpdateTrainingJobRequest & WithProfilerConfig(const ProfilerConfigForUpdate &value)
Definition: UpdateTrainingJobRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithProfilerRuleConfigurations
UpdateTrainingJobRequest & WithProfilerRuleConfigurations(Aws::Vector< ProfilerRuleConfiguration > &&value)
Definition: UpdateTrainingJobRequest.h:160
Aws::SageMaker::Model::UpdateTrainingJobRequest::SetTrainingJobName
void SetTrainingJobName(Aws::String &&value)
Definition: UpdateTrainingJobRequest.h:62
Aws::SageMaker::Model::UpdateTrainingJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTrainingJobRequest.h:33
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithTrainingJobName
UpdateTrainingJobRequest & WithTrainingJobName(const Aws::String &value)
Definition: UpdateTrainingJobRequest.h:74
Aws::SageMaker::Model::UpdateTrainingJobRequest::WithProfilerConfig
UpdateTrainingJobRequest & WithProfilerConfig(ProfilerConfigForUpdate &&value)
Definition: UpdateTrainingJobRequest.h:123