/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class UpdateTrainingJobRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateTrainingJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateTrainingJob"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline const Aws::String& GetTrainingJobName() const{ return m_trainingJobName; } /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline bool TrainingJobNameHasBeenSet() const { return m_trainingJobNameHasBeenSet; } /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline void SetTrainingJobName(const Aws::String& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = value; } /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline void SetTrainingJobName(Aws::String&& value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName = std::move(value); } /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline void SetTrainingJobName(const char* value) { m_trainingJobNameHasBeenSet = true; m_trainingJobName.assign(value); } /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline UpdateTrainingJobRequest& WithTrainingJobName(const Aws::String& value) { SetTrainingJobName(value); return *this;} /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline UpdateTrainingJobRequest& WithTrainingJobName(Aws::String&& value) { SetTrainingJobName(std::move(value)); return *this;} /** *

The name of a training job to update the Debugger profiling * configuration.

*/ inline UpdateTrainingJobRequest& WithTrainingJobName(const char* value) { SetTrainingJobName(value); return *this;} /** *

Configuration information for Amazon SageMaker Debugger system monitoring, * framework profiling, and storage paths.

*/ inline const ProfilerConfigForUpdate& GetProfilerConfig() const{ return m_profilerConfig; } /** *

Configuration information for Amazon SageMaker Debugger system monitoring, * framework profiling, and storage paths.

*/ inline bool ProfilerConfigHasBeenSet() const { return m_profilerConfigHasBeenSet; } /** *

Configuration information for Amazon SageMaker Debugger system monitoring, * framework profiling, and storage paths.

*/ inline void SetProfilerConfig(const ProfilerConfigForUpdate& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = value; } /** *

Configuration information for Amazon SageMaker Debugger system monitoring, * framework profiling, and storage paths.

*/ inline void SetProfilerConfig(ProfilerConfigForUpdate&& value) { m_profilerConfigHasBeenSet = true; m_profilerConfig = std::move(value); } /** *

Configuration information for Amazon SageMaker Debugger system monitoring, * framework profiling, and storage paths.

*/ inline UpdateTrainingJobRequest& WithProfilerConfig(const ProfilerConfigForUpdate& value) { SetProfilerConfig(value); return *this;} /** *

Configuration information for Amazon SageMaker Debugger system monitoring, * framework profiling, and storage paths.

*/ inline UpdateTrainingJobRequest& WithProfilerConfig(ProfilerConfigForUpdate&& value) { SetProfilerConfig(std::move(value)); return *this;} /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline const Aws::Vector& GetProfilerRuleConfigurations() const{ return m_profilerRuleConfigurations; } /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline bool ProfilerRuleConfigurationsHasBeenSet() const { return m_profilerRuleConfigurationsHasBeenSet; } /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline void SetProfilerRuleConfigurations(const Aws::Vector& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = value; } /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline void SetProfilerRuleConfigurations(Aws::Vector&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations = std::move(value); } /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline UpdateTrainingJobRequest& WithProfilerRuleConfigurations(const Aws::Vector& value) { SetProfilerRuleConfigurations(value); return *this;} /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline UpdateTrainingJobRequest& WithProfilerRuleConfigurations(Aws::Vector&& value) { SetProfilerRuleConfigurations(std::move(value)); return *this;} /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline UpdateTrainingJobRequest& AddProfilerRuleConfigurations(const ProfilerRuleConfiguration& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.push_back(value); return *this; } /** *

Configuration information for Amazon SageMaker Debugger rules for profiling * system and framework metrics.

*/ inline UpdateTrainingJobRequest& AddProfilerRuleConfigurations(ProfilerRuleConfiguration&& value) { m_profilerRuleConfigurationsHasBeenSet = true; m_profilerRuleConfigurations.push_back(std::move(value)); return *this; } /** *

The training job ResourceConfig to update warm pool retention * length.

*/ inline const ResourceConfigForUpdate& GetResourceConfig() const{ return m_resourceConfig; } /** *

The training job ResourceConfig to update warm pool retention * length.

*/ inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; } /** *

The training job ResourceConfig to update warm pool retention * length.

*/ inline void SetResourceConfig(const ResourceConfigForUpdate& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = value; } /** *

The training job ResourceConfig to update warm pool retention * length.

*/ inline void SetResourceConfig(ResourceConfigForUpdate&& value) { m_resourceConfigHasBeenSet = true; m_resourceConfig = std::move(value); } /** *

The training job ResourceConfig to update warm pool retention * length.

*/ inline UpdateTrainingJobRequest& WithResourceConfig(const ResourceConfigForUpdate& value) { SetResourceConfig(value); return *this;} /** *

The training job ResourceConfig to update warm pool retention * length.

*/ inline UpdateTrainingJobRequest& WithResourceConfig(ResourceConfigForUpdate&& value) { SetResourceConfig(std::move(value)); return *this;} private: Aws::String m_trainingJobName; bool m_trainingJobNameHasBeenSet = false; ProfilerConfigForUpdate m_profilerConfig; bool m_profilerConfigHasBeenSet = false; Aws::Vector m_profilerRuleConfigurations; bool m_profilerRuleConfigurationsHasBeenSet = false; ResourceConfigForUpdate m_resourceConfig; bool m_resourceConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws