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

Specifies a file system data source for a channel.

See Also:

* AWS * API Reference

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

The file system id.

*/ inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } /** *

The file system id.

*/ inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } /** *

The file system id.

*/ inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } /** *

The file system id.

*/ inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } /** *

The file system id.

*/ inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } /** *

The file system id.

*/ inline FileSystemDataSource& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} /** *

The file system id.

*/ inline FileSystemDataSource& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} /** *

The file system id.

*/ inline FileSystemDataSource& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

The access mode of the mount of the directory associated with the channel. A * directory can be mounted either in ro (read-only) or * rw (read-write) mode.

*/ inline const FileSystemAccessMode& GetFileSystemAccessMode() const{ return m_fileSystemAccessMode; } /** *

The access mode of the mount of the directory associated with the channel. A * directory can be mounted either in ro (read-only) or * rw (read-write) mode.

*/ inline bool FileSystemAccessModeHasBeenSet() const { return m_fileSystemAccessModeHasBeenSet; } /** *

The access mode of the mount of the directory associated with the channel. A * directory can be mounted either in ro (read-only) or * rw (read-write) mode.

*/ inline void SetFileSystemAccessMode(const FileSystemAccessMode& value) { m_fileSystemAccessModeHasBeenSet = true; m_fileSystemAccessMode = value; } /** *

The access mode of the mount of the directory associated with the channel. A * directory can be mounted either in ro (read-only) or * rw (read-write) mode.

*/ inline void SetFileSystemAccessMode(FileSystemAccessMode&& value) { m_fileSystemAccessModeHasBeenSet = true; m_fileSystemAccessMode = std::move(value); } /** *

The access mode of the mount of the directory associated with the channel. A * directory can be mounted either in ro (read-only) or * rw (read-write) mode.

*/ inline FileSystemDataSource& WithFileSystemAccessMode(const FileSystemAccessMode& value) { SetFileSystemAccessMode(value); return *this;} /** *

The access mode of the mount of the directory associated with the channel. A * directory can be mounted either in ro (read-only) or * rw (read-write) mode.

*/ inline FileSystemDataSource& WithFileSystemAccessMode(FileSystemAccessMode&& value) { SetFileSystemAccessMode(std::move(value)); return *this;} /** *

The file system type.

*/ inline const FileSystemType& GetFileSystemType() const{ return m_fileSystemType; } /** *

The file system type.

*/ inline bool FileSystemTypeHasBeenSet() const { return m_fileSystemTypeHasBeenSet; } /** *

The file system type.

*/ inline void SetFileSystemType(const FileSystemType& value) { m_fileSystemTypeHasBeenSet = true; m_fileSystemType = value; } /** *

The file system type.

*/ inline void SetFileSystemType(FileSystemType&& value) { m_fileSystemTypeHasBeenSet = true; m_fileSystemType = std::move(value); } /** *

The file system type.

*/ inline FileSystemDataSource& WithFileSystemType(const FileSystemType& value) { SetFileSystemType(value); return *this;} /** *

The file system type.

*/ inline FileSystemDataSource& WithFileSystemType(FileSystemType&& value) { SetFileSystemType(std::move(value)); return *this;} /** *

The full path to the directory to associate with the channel.

*/ inline const Aws::String& GetDirectoryPath() const{ return m_directoryPath; } /** *

The full path to the directory to associate with the channel.

*/ inline bool DirectoryPathHasBeenSet() const { return m_directoryPathHasBeenSet; } /** *

The full path to the directory to associate with the channel.

*/ inline void SetDirectoryPath(const Aws::String& value) { m_directoryPathHasBeenSet = true; m_directoryPath = value; } /** *

The full path to the directory to associate with the channel.

*/ inline void SetDirectoryPath(Aws::String&& value) { m_directoryPathHasBeenSet = true; m_directoryPath = std::move(value); } /** *

The full path to the directory to associate with the channel.

*/ inline void SetDirectoryPath(const char* value) { m_directoryPathHasBeenSet = true; m_directoryPath.assign(value); } /** *

The full path to the directory to associate with the channel.

*/ inline FileSystemDataSource& WithDirectoryPath(const Aws::String& value) { SetDirectoryPath(value); return *this;} /** *

The full path to the directory to associate with the channel.

*/ inline FileSystemDataSource& WithDirectoryPath(Aws::String&& value) { SetDirectoryPath(std::move(value)); return *this;} /** *

The full path to the directory to associate with the channel.

*/ inline FileSystemDataSource& WithDirectoryPath(const char* value) { SetDirectoryPath(value); return *this;} private: Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; FileSystemAccessMode m_fileSystemAccessMode; bool m_fileSystemAccessModeHasBeenSet = false; FileSystemType m_fileSystemType; bool m_fileSystemTypeHasBeenSet = false; Aws::String m_directoryPath; bool m_directoryPathHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws