AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTrainingJobName(const Aws::String& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = value; }
50 inline void SetTrainingJobName(Aws::String&& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = std::move(value); }
51 inline void SetTrainingJobName(const char* value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName.assign(value); }
52 inline UpdateTrainingJobRequest& WithTrainingJobName(const Aws::String& value) { SetTrainingJobName(value); return *this;}
53 inline UpdateTrainingJobRequest& WithTrainingJobName(Aws::String&& value) { SetTrainingJobName(std::move(value)); return *this;}
54 inline UpdateTrainingJobRequest& WithTrainingJobName(const char* value) { SetTrainingJobName(value); return *this;}
56
58
62 inline const ProfilerConfigForUpdate& GetProfilerConfig() const{ return m_profilerConfig; }
63 inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; }
64 inline void SetProfilerConfig(const ProfilerConfigForUpdate& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = value; }
65 inline void SetProfilerConfig(ProfilerConfigForUpdate&& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = std::move(value); }
67 inline UpdateTrainingJobRequest& WithProfilerConfig(ProfilerConfigForUpdate&& value) { SetProfilerConfig(std::move(value)); return *this;}
69
71
75 inline const Aws::Vector<ProfilerRuleConfiguration>& GetProfilerRuleConfigurations() const{ return m_profilerRuleConfigurations; }
76 inline bool ProfilerRuleConfigurationsHasBeenSet() const { return m_profilerRuleConfigurationsHasBeenSet; }
77 inline void SetProfilerRuleConfigurations(const Aws::Vector<ProfilerRuleConfiguration>& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = value; }
78 inline void SetProfilerRuleConfigurations(Aws::Vector<ProfilerRuleConfiguration>&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = std::move(value); }
81 inline UpdateTrainingJobRequest& AddProfilerRuleConfigurations(const ProfilerRuleConfiguration& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.push_back(value); return *this; }
82 inline UpdateTrainingJobRequest& AddProfilerRuleConfigurations(ProfilerRuleConfiguration&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.push_back(std::move(value)); return *this; }
84
86
90 inline const ResourceConfigForUpdate& GetResourceConfig() const{ return m_resourceConfig; }
91 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
92 inline void SetResourceConfig(const ResourceConfigForUpdate& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; }
93 inline void SetResourceConfig(ResourceConfigForUpdate&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); }
95 inline UpdateTrainingJobRequest& WithResourceConfig(ResourceConfigForUpdate&& value) { SetResourceConfig(std::move(value)); return *this;}
97
99
108 inline const RemoteDebugConfigForUpdate& GetRemoteDebugConfig() const{ return m_remoteDebugConfig; }
109 inline bool RemoteDebugConfigHasBeenSet() const { return m_remoteDebugConfigHasBeenSet; }
110 inline void SetRemoteDebugConfig(const RemoteDebugConfigForUpdate& value) { m_remoteDebugConfigHasBeenSet = true; m_remoteDebugConfig = value; }
111 inline void SetRemoteDebugConfig(RemoteDebugConfigForUpdate&& value) { m_remoteDebugConfigHasBeenSet = true; m_remoteDebugConfig = std::move(value); }
115 private:
116
117 Aws::String m_trainingJobName;
118 bool m_trainingJobNameHasBeenSet = false;
119
120 ProfilerConfigForUpdate m_profilerConfig;
121 bool m_profilerConfigHasBeenSet = false;
122
123 Aws::Vector<ProfilerRuleConfiguration> m_profilerRuleConfigurations;
124 bool m_profilerRuleConfigurationsHasBeenSet = false;
125
126 ResourceConfigForUpdate m_resourceConfig;
127 bool m_resourceConfigHasBeenSet = false;
128
129 RemoteDebugConfigForUpdate m_remoteDebugConfig;
130 bool m_remoteDebugConfigHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SageMaker
135} // namespace Aws
UpdateTrainingJobRequest & WithProfilerRuleConfigurations(Aws::Vector< ProfilerRuleConfiguration > &&value)
UpdateTrainingJobRequest & WithResourceConfig(const ResourceConfigForUpdate &value)
UpdateTrainingJobRequest & WithRemoteDebugConfig(const RemoteDebugConfigForUpdate &value)
UpdateTrainingJobRequest & WithResourceConfig(ResourceConfigForUpdate &&value)
void SetProfilerRuleConfigurations(Aws::Vector< ProfilerRuleConfiguration > &&value)
const ResourceConfigForUpdate & GetResourceConfig() const
void SetRemoteDebugConfig(const RemoteDebugConfigForUpdate &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateTrainingJobRequest & WithTrainingJobName(const char *value)
void SetRemoteDebugConfig(RemoteDebugConfigForUpdate &&value)
UpdateTrainingJobRequest & AddProfilerRuleConfigurations(const ProfilerRuleConfiguration &value)
void SetResourceConfig(const ResourceConfigForUpdate &value)
const ProfilerConfigForUpdate & GetProfilerConfig() const
UpdateTrainingJobRequest & WithProfilerRuleConfigurations(const Aws::Vector< ProfilerRuleConfiguration > &value)
UpdateTrainingJobRequest & WithTrainingJobName(Aws::String &&value)
void SetProfilerConfig(const ProfilerConfigForUpdate &value)
UpdateTrainingJobRequest & AddProfilerRuleConfigurations(ProfilerRuleConfiguration &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetProfilerRuleConfigurations(const Aws::Vector< ProfilerRuleConfiguration > &value)
UpdateTrainingJobRequest & WithTrainingJobName(const Aws::String &value)
UpdateTrainingJobRequest & WithProfilerConfig(const ProfilerConfigForUpdate &value)
void SetResourceConfig(ResourceConfigForUpdate &&value)
const Aws::Vector< ProfilerRuleConfiguration > & GetProfilerRuleConfigurations() const
UpdateTrainingJobRequest & WithRemoteDebugConfig(RemoteDebugConfigForUpdate &&value)
const RemoteDebugConfigForUpdate & GetRemoteDebugConfig() const
void SetProfilerConfig(ProfilerConfigForUpdate &&value)
UpdateTrainingJobRequest & WithProfilerConfig(ProfilerConfigForUpdate &&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