AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateTrainingJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ProfilerConfigForUpdate.h>
12#include <aws/sagemaker/model/ProfilerRuleConfiguration.h>
13#include <aws/sagemaker/model/RemoteDebugConfigForUpdate.h>
14#include <aws/sagemaker/model/ResourceConfigForUpdate.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API UpdateTrainingJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrainingJob"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetTrainingJobName() const { return m_trainingJobName; }
44 inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; }
45 template <typename TrainingJobNameT = Aws::String>
46 void SetTrainingJobName(TrainingJobNameT&& value) {
47 m_trainingJobNameHasBeenSet = true;
48 m_trainingJobName = std::forward<TrainingJobNameT>(value);
49 }
50 template <typename TrainingJobNameT = Aws::String>
51 UpdateTrainingJobRequest& WithTrainingJobName(TrainingJobNameT&& value) {
52 SetTrainingJobName(std::forward<TrainingJobNameT>(value));
53 return *this;
54 }
56
58
62 inline const ProfilerConfigForUpdate& GetProfilerConfig() const { return m_profilerConfig; }
63 inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
64 template <typename ProfilerConfigT = ProfilerConfigForUpdate>
65 void SetProfilerConfig(ProfilerConfigT&& value) {
66 m_profilerConfigHasBeenSet = true;
67 m_profilerConfig = std::forward<ProfilerConfigT>(value);
68 }
69 template <typename ProfilerConfigT = ProfilerConfigForUpdate>
70 UpdateTrainingJobRequest& WithProfilerConfig(ProfilerConfigT&& value) {
71 SetProfilerConfig(std::forward<ProfilerConfigT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<ProfilerRuleConfiguration>& GetProfilerRuleConfigurations() const { return m_profilerRuleConfigurations; }
82 inline bool ProfilerRuleConfigurationsHasBeenSet() const { return m_profilerRuleConfigurationsHasBeenSet; }
83 template <typename ProfilerRuleConfigurationsT = Aws::Vector<ProfilerRuleConfiguration>>
84 void SetProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) {
85 m_profilerRuleConfigurationsHasBeenSet = true;
86 m_profilerRuleConfigurations = std::forward<ProfilerRuleConfigurationsT>(value);
87 }
88 template <typename ProfilerRuleConfigurationsT = Aws::Vector<ProfilerRuleConfiguration>>
89 UpdateTrainingJobRequest& WithProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) {
90 SetProfilerRuleConfigurations(std::forward<ProfilerRuleConfigurationsT>(value));
91 return *this;
92 }
93 template <typename ProfilerRuleConfigurationsT = ProfilerRuleConfiguration>
94 UpdateTrainingJobRequest& AddProfilerRuleConfigurations(ProfilerRuleConfigurationsT&& value) {
95 m_profilerRuleConfigurationsHasBeenSet = true;
96 m_profilerRuleConfigurations.emplace_back(std::forward<ProfilerRuleConfigurationsT>(value));
97 return *this;
98 }
100
102
106 inline const ResourceConfigForUpdate& GetResourceConfig() const { return m_resourceConfig; }
107 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
108 template <typename ResourceConfigT = ResourceConfigForUpdate>
109 void SetResourceConfig(ResourceConfigT&& value) {
110 m_resourceConfigHasBeenSet = true;
111 m_resourceConfig = std::forward<ResourceConfigT>(value);
112 }
113 template <typename ResourceConfigT = ResourceConfigForUpdate>
115 SetResourceConfig(std::forward<ResourceConfigT>(value));
116 return *this;
117 }
119
121
130 inline const RemoteDebugConfigForUpdate& GetRemoteDebugConfig() const { return m_remoteDebugConfig; }
131 inline bool RemoteDebugConfigHasBeenSet() const { return m_remoteDebugConfigHasBeenSet; }
132 template <typename RemoteDebugConfigT = RemoteDebugConfigForUpdate>
133 void SetRemoteDebugConfig(RemoteDebugConfigT&& value) {
134 m_remoteDebugConfigHasBeenSet = true;
135 m_remoteDebugConfig = std::forward<RemoteDebugConfigT>(value);
136 }
137 template <typename RemoteDebugConfigT = RemoteDebugConfigForUpdate>
138 UpdateTrainingJobRequest& WithRemoteDebugConfig(RemoteDebugConfigT&& value) {
139 SetRemoteDebugConfig(std::forward<RemoteDebugConfigT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_trainingJobName;
145
146 ProfilerConfigForUpdate m_profilerConfig;
147
148 Aws::Vector<ProfilerRuleConfiguration> m_profilerRuleConfigurations;
149
150 ResourceConfigForUpdate m_resourceConfig;
151
152 RemoteDebugConfigForUpdate m_remoteDebugConfig;
153 bool m_trainingJobNameHasBeenSet = false;
154 bool m_profilerConfigHasBeenSet = false;
155 bool m_profilerRuleConfigurationsHasBeenSet = false;
156 bool m_resourceConfigHasBeenSet = false;
157 bool m_remoteDebugConfigHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace SageMaker
162} // 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