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

Contains information about the output location for managed spot training * checkpoint data.

See Also:

AWS * API Reference

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

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline const Aws::String& GetS3Uri() const{ return m_s3Uri; } /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; } /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; } /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); } /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); } /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline CheckpointConfig& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;} /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline CheckpointConfig& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;} /** *

Identifies the S3 path where you want SageMaker to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

*/ inline CheckpointConfig& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} /** *

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/ml/checkpoints/.

*/ inline CheckpointConfig& WithLocalPath(const char* value) { SetLocalPath(value); return *this;} private: Aws::String m_s3Uri; bool m_s3UriHasBeenSet = false; Aws::String m_localPath; bool m_localPathHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws