AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateTrainingJobRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ProfilerConfigForUpdate.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/ResourceConfigForUpdate.h>
13#include <aws/sagemaker/model/RemoteDebugConfigForUpdate.h>
14#include <aws/sagemaker/model/ProfilerRuleConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API UpdateTrainingJobRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrainingJob"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetTrainingJobName() const { return m_trainingJobName; }
48 inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; }
49 template<typename TrainingJobNameT = Aws::String>
50 void SetTrainingJobName(TrainingJobNameT&& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = std::forward<TrainingJobNameT>(value); }
51 template<typename TrainingJobNameT = Aws::String>
52 UpdateTrainingJobRequest& WithTrainingJobName(TrainingJobNameT&& value) { SetTrainingJobName(std::forward<TrainingJobNameT>(value)); return *this;}
54
56
60 inline const ProfilerConfigForUpdate& GetProfilerConfig() const { return m_profilerConfig; }
61 inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
62 template<typename ProfilerConfigT = ProfilerConfigForUpdate>
63 void SetProfilerConfig(ProfilerConfigT&& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = std::forward<ProfilerConfigT>(value); }
64 template<typename ProfilerConfigT = ProfilerConfigForUpdate>
65 UpdateTrainingJobRequest& WithProfilerConfig(ProfilerConfigT&& value) { SetProfilerConfig(std::forward<ProfilerConfigT>(value)); return *this;}
67
69
73 inline const Aws::Vector<ProfilerRuleConfiguration>& GetProfilerRuleConfigurations() const { return m_profilerRuleConfigurations; }
74 inline bool ProfilerRuleConfigurationsHasBeenSet() const { return m_profilerRuleConfigurationsHasBeenSet; }
75 template<typename ProfilerRuleConfigurationsT = Aws::Vector<ProfilerRuleConfiguration>>
76 void SetProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = std::forward<ProfilerRuleConfigurationsT>(value); }
77 template<typename ProfilerRuleConfigurationsT = Aws::Vector<ProfilerRuleConfiguration>>
78 UpdateTrainingJobRequest& WithProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) { SetProfilerRuleConfigurations(std::forward<ProfilerRuleConfigurationsT>(value)); return *this;}
79 template<typename ProfilerRuleConfigurationsT = ProfilerRuleConfiguration>
80 UpdateTrainingJobRequest& AddProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.emplace_back(std::forward<ProfilerRuleConfigurationsT>(value)); return *this; }
82
84
88 inline const ResourceConfigForUpdate& GetResourceConfig() const { return m_resourceConfig; }
89 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
90 template<typename ResourceConfigT = ResourceConfigForUpdate>
91 void SetResourceConfig(ResourceConfigT&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::forward<ResourceConfigT>(value); }
92 template<typename ResourceConfigT = ResourceConfigForUpdate>
93 UpdateTrainingJobRequest& WithResourceConfig(ResourceConfigT&& value) { SetResourceConfig(std::forward<ResourceConfigT>(value)); return *this;}
95
97
106 inline const RemoteDebugConfigForUpdate& GetRemoteDebugConfig() const { return m_remoteDebugConfig; }
107 inline bool RemoteDebugConfigHasBeenSet() const { return m_remoteDebugConfigHasBeenSet; }
108 template<typename RemoteDebugConfigT = RemoteDebugConfigForUpdate>
109 void SetRemoteDebugConfig(RemoteDebugConfigT&& value) { m_remoteDebugConfigHasBeenSet = true; m_remoteDebugConfig = std::forward<RemoteDebugConfigT>(value); }
110 template<typename RemoteDebugConfigT = RemoteDebugConfigForUpdate>
111 UpdateTrainingJobRequest& WithRemoteDebugConfig(RemoteDebugConfigT&& value) { SetRemoteDebugConfig(std::forward<RemoteDebugConfigT>(value)); return *this;}
113 private:
114
115 Aws::String m_trainingJobName;
116 bool m_trainingJobNameHasBeenSet = false;
117
118 ProfilerConfigForUpdate m_profilerConfig;
119 bool m_profilerConfigHasBeenSet = false;
120
121 Aws::Vector<ProfilerRuleConfiguration> m_profilerRuleConfigurations;
122 bool m_profilerRuleConfigurationsHasBeenSet = false;
123
124 ResourceConfigForUpdate m_resourceConfig;
125 bool m_resourceConfigHasBeenSet = false;
126
127 RemoteDebugConfigForUpdate m_remoteDebugConfig;
128 bool m_remoteDebugConfigHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace SageMaker
133} // namespace Aws
UpdateTrainingJobRequest & WithResourceConfig(ResourceConfigT &&value)
const ResourceConfigForUpdate & GetResourceConfig() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const ProfilerConfigForUpdate & GetProfilerConfig() const
UpdateTrainingJobRequest & AddProfilerRuleConfigurations(ProfilerRuleConfigurationsT &&value)
UpdateTrainingJobRequest & WithRemoteDebugConfig(RemoteDebugConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API UpdateTrainingJobRequest()=default
UpdateTrainingJobRequest & WithProfilerConfig(ProfilerConfigT &&value)
const Aws::Vector< ProfilerRuleConfiguration > & GetProfilerRuleConfigurations() const
const RemoteDebugConfigForUpdate & GetRemoteDebugConfig() const
UpdateTrainingJobRequest & WithTrainingJobName(TrainingJobNameT &&value)
UpdateTrainingJobRequest & WithProfilerRuleConfigurations(ProfilerRuleConfigurationsT &&value)
void SetProfilerRuleConfigurations(ProfilerRuleConfigurationsT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector