/** * 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 { /** *

The Amazon Elastic File System (EFS) storage configuration for a SageMaker * image.

See Also:

AWS * API Reference

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

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline const Aws::String& GetMountPath() const{ return m_mountPath; } /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline bool MountPathHasBeenSet() const { return m_mountPathHasBeenSet; } /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline void SetMountPath(const Aws::String& value) { m_mountPathHasBeenSet = true; m_mountPath = value; } /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline void SetMountPath(Aws::String&& value) { m_mountPathHasBeenSet = true; m_mountPath = std::move(value); } /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline void SetMountPath(const char* value) { m_mountPathHasBeenSet = true; m_mountPath.assign(value); } /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline FileSystemConfig& WithMountPath(const Aws::String& value) { SetMountPath(value); return *this;} /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline FileSystemConfig& WithMountPath(Aws::String&& value) { SetMountPath(std::move(value)); return *this;} /** *

The path within the image to mount the user's EFS home directory. The * directory should be empty. If not specified, defaults to * /home/sagemaker-user.

*/ inline FileSystemConfig& WithMountPath(const char* value) { SetMountPath(value); return *this;} /** *

The default POSIX user ID (UID). If not specified, defaults to * 1000.

*/ inline int GetDefaultUid() const{ return m_defaultUid; } /** *

The default POSIX user ID (UID). If not specified, defaults to * 1000.

*/ inline bool DefaultUidHasBeenSet() const { return m_defaultUidHasBeenSet; } /** *

The default POSIX user ID (UID). If not specified, defaults to * 1000.

*/ inline void SetDefaultUid(int value) { m_defaultUidHasBeenSet = true; m_defaultUid = value; } /** *

The default POSIX user ID (UID). If not specified, defaults to * 1000.

*/ inline FileSystemConfig& WithDefaultUid(int value) { SetDefaultUid(value); return *this;} /** *

The default POSIX group ID (GID). If not specified, defaults to * 100.

*/ inline int GetDefaultGid() const{ return m_defaultGid; } /** *

The default POSIX group ID (GID). If not specified, defaults to * 100.

*/ inline bool DefaultGidHasBeenSet() const { return m_defaultGidHasBeenSet; } /** *

The default POSIX group ID (GID). If not specified, defaults to * 100.

*/ inline void SetDefaultGid(int value) { m_defaultGidHasBeenSet = true; m_defaultGid = value; } /** *

The default POSIX group ID (GID). If not specified, defaults to * 100.

*/ inline FileSystemConfig& WithDefaultGid(int value) { SetDefaultGid(value); return *this;} private: Aws::String m_mountPath; bool m_mountPathHasBeenSet = false; int m_defaultUid; bool m_defaultUidHasBeenSet = false; int m_defaultGid; bool m_defaultGidHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws