/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Configuration information for the Amazon SageMaker Debugger hook parameters, * metric and tensor collections, and storage paths. To learn more about how to * configure the DebugHookConfig parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

See Also:

AWS * API Reference

*/ class DebugHookConfig { public: AWS_SAGEMAKER_API DebugHookConfig(); AWS_SAGEMAKER_API DebugHookConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API DebugHookConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline const Aws::String& GetLocalPath() const{ return m_localPath; } /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline bool LocalPathHasBeenSet() const { return m_localPathHasBeenSet; } /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline void SetLocalPath(const Aws::String& value) { m_localPathHasBeenSet = true; m_localPath = value; } /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline void SetLocalPath(Aws::String&& value) { m_localPathHasBeenSet = true; m_localPath = std::move(value); } /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline void SetLocalPath(const char* value) { m_localPathHasBeenSet = true; m_localPath.assign(value); } /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline DebugHookConfig& WithLocalPath(const Aws::String& value) { SetLocalPath(value); return *this;} /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline DebugHookConfig& WithLocalPath(Aws::String&& value) { SetLocalPath(std::move(value)); return *this;} /** *

Path to local storage location for metrics and tensors. Defaults to * /opt/ml/output/tensors/.

*/ inline DebugHookConfig& WithLocalPath(const char* value) { SetLocalPath(value); return *this;} /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline const Aws::String& GetS3OutputPath() const{ return m_s3OutputPath; } /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; } /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline void SetS3OutputPath(const Aws::String& value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath = value; } /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline void SetS3OutputPath(Aws::String&& value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath = std::move(value); } /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline void SetS3OutputPath(const char* value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath.assign(value); } /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline DebugHookConfig& WithS3OutputPath(const Aws::String& value) { SetS3OutputPath(value); return *this;} /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline DebugHookConfig& WithS3OutputPath(Aws::String&& value) { SetS3OutputPath(std::move(value)); return *this;} /** *

Path to Amazon S3 storage location for metrics and tensors.

*/ inline DebugHookConfig& WithS3OutputPath(const char* value) { SetS3OutputPath(value); return *this;} /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline const Aws::Map& GetHookParameters() const{ return m_hookParameters; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline bool HookParametersHasBeenSet() const { return m_hookParametersHasBeenSet; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline void SetHookParameters(const Aws::Map& value) { m_hookParametersHasBeenSet = true; m_hookParameters = value; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline void SetHookParameters(Aws::Map&& value) { m_hookParametersHasBeenSet = true; m_hookParameters = std::move(value); } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& WithHookParameters(const Aws::Map& value) { SetHookParameters(value); return *this;} /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& WithHookParameters(Aws::Map&& value) { SetHookParameters(std::move(value)); return *this;} /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(const Aws::String& key, const Aws::String& value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(key, value); return *this; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(Aws::String&& key, const Aws::String& value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(std::move(key), value); return *this; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(const Aws::String& key, Aws::String&& value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(key, std::move(value)); return *this; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(Aws::String&& key, Aws::String&& value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(const char* key, Aws::String&& value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(key, std::move(value)); return *this; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(Aws::String&& key, const char* value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(std::move(key), value); return *this; } /** *

Configuration information for the Amazon SageMaker Debugger hook * parameters.

*/ inline DebugHookConfig& AddHookParameters(const char* key, const char* value) { m_hookParametersHasBeenSet = true; m_hookParameters.emplace(key, value); return *this; } /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline const Aws::Vector& GetCollectionConfigurations() const{ return m_collectionConfigurations; } /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline bool CollectionConfigurationsHasBeenSet() const { return m_collectionConfigurationsHasBeenSet; } /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline void SetCollectionConfigurations(const Aws::Vector& value) { m_collectionConfigurationsHasBeenSet = true; m_collectionConfigurations = value; } /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline void SetCollectionConfigurations(Aws::Vector&& value) { m_collectionConfigurationsHasBeenSet = true; m_collectionConfigurations = std::move(value); } /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline DebugHookConfig& WithCollectionConfigurations(const Aws::Vector& value) { SetCollectionConfigurations(value); return *this;} /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline DebugHookConfig& WithCollectionConfigurations(Aws::Vector&& value) { SetCollectionConfigurations(std::move(value)); return *this;} /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline DebugHookConfig& AddCollectionConfigurations(const CollectionConfiguration& value) { m_collectionConfigurationsHasBeenSet = true; m_collectionConfigurations.push_back(value); return *this; } /** *

Configuration information for Amazon SageMaker Debugger tensor collections. * To learn more about how to configure the CollectionConfiguration * parameter, see Use * the SageMaker and Debugger Configuration API Operations to Create, Update, and * Debug Your Training Job.

*/ inline DebugHookConfig& AddCollectionConfigurations(CollectionConfiguration&& value) { m_collectionConfigurationsHasBeenSet = true; m_collectionConfigurations.push_back(std::move(value)); return *this; } private: Aws::String m_localPath; bool m_localPathHasBeenSet = false; Aws::String m_s3OutputPath; bool m_s3OutputPathHasBeenSet = false; Aws::Map m_hookParameters; bool m_hookParametersHasBeenSet = false; Aws::Vector m_collectionConfigurations; bool m_collectionConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws