/** * 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 Braket { namespace Model { /** *

Contains information about the output locations for job checkpoint * data.

See Also:

AWS * API Reference

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

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

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

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

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

(Optional) The local directory where checkpoints are written. The default * directory is /opt/braket/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/braket/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/braket/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/braket/checkpoints/.

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

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

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

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

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

Identifies the S3 path where you want Amazon Braket 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 Amazon Braket 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 Amazon Braket 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 Amazon Braket 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 Amazon Braket 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 Amazon Braket to store checkpoints. For * example, s3://bucket-name/key-name-prefix.

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

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

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

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

*/ inline JobCheckpointConfig& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} private: Aws::String m_localPath; bool m_localPathHasBeenSet = false; Aws::String m_s3Uri; bool m_s3UriHasBeenSet = false; }; } // namespace Model } // namespace Braket } // namespace Aws