AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/DatasetSource.h>
9#include <aws/sagemaker/model/FileSystemDataSource.h>
10#include <aws/sagemaker/model/S3DataSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
30 public:
31 AWS_SAGEMAKER_API DataSource() = default;
32 AWS_SAGEMAKER_API DataSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const S3DataSource& GetS3DataSource() const { return m_s3DataSource; }
41 inline bool S3DataSourceHasBeenSet() const { return m_s3DataSourceHasBeenSet; }
42 template <typename S3DataSourceT = S3DataSource>
43 void SetS3DataSource(S3DataSourceT&& value) {
44 m_s3DataSourceHasBeenSet = true;
45 m_s3DataSource = std::forward<S3DataSourceT>(value);
46 }
47 template <typename S3DataSourceT = S3DataSource>
48 DataSource& WithS3DataSource(S3DataSourceT&& value) {
49 SetS3DataSource(std::forward<S3DataSourceT>(value));
50 return *this;
51 }
53
55
58 inline const FileSystemDataSource& GetFileSystemDataSource() const { return m_fileSystemDataSource; }
59 inline bool FileSystemDataSourceHasBeenSet() const { return m_fileSystemDataSourceHasBeenSet; }
60 template <typename FileSystemDataSourceT = FileSystemDataSource>
61 void SetFileSystemDataSource(FileSystemDataSourceT&& value) {
62 m_fileSystemDataSourceHasBeenSet = true;
63 m_fileSystemDataSource = std::forward<FileSystemDataSourceT>(value);
64 }
65 template <typename FileSystemDataSourceT = FileSystemDataSource>
66 DataSource& WithFileSystemDataSource(FileSystemDataSourceT&& value) {
67 SetFileSystemDataSource(std::forward<FileSystemDataSourceT>(value));
68 return *this;
69 }
71
73
76 inline const DatasetSource& GetDatasetSource() const { return m_datasetSource; }
77 inline bool DatasetSourceHasBeenSet() const { return m_datasetSourceHasBeenSet; }
78 template <typename DatasetSourceT = DatasetSource>
79 void SetDatasetSource(DatasetSourceT&& value) {
80 m_datasetSourceHasBeenSet = true;
81 m_datasetSource = std::forward<DatasetSourceT>(value);
82 }
83 template <typename DatasetSourceT = DatasetSource>
84 DataSource& WithDatasetSource(DatasetSourceT&& value) {
85 SetDatasetSource(std::forward<DatasetSourceT>(value));
86 return *this;
87 }
89 private:
90 S3DataSource m_s3DataSource;
91
92 FileSystemDataSource m_fileSystemDataSource;
93
94 DatasetSource m_datasetSource;
95 bool m_s3DataSourceHasBeenSet = false;
96 bool m_fileSystemDataSourceHasBeenSet = false;
97 bool m_datasetSourceHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SageMaker
102} // namespace Aws
void SetDatasetSource(DatasetSourceT &&value)
Definition DataSource.h:79
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const S3DataSource & GetS3DataSource() const
Definition DataSource.h:40
const FileSystemDataSource & GetFileSystemDataSource() const
Definition DataSource.h:58
void SetFileSystemDataSource(FileSystemDataSourceT &&value)
Definition DataSource.h:61
AWS_SAGEMAKER_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithDatasetSource(DatasetSourceT &&value)
Definition DataSource.h:84
DataSource & WithS3DataSource(S3DataSourceT &&value)
Definition DataSource.h:48
void SetS3DataSource(S3DataSourceT &&value)
Definition DataSource.h:43
bool FileSystemDataSourceHasBeenSet() const
Definition DataSource.h:59
DataSource & WithFileSystemDataSource(FileSystemDataSourceT &&value)
Definition DataSource.h:66
const DatasetSource & GetDatasetSource() const
Definition DataSource.h:76
AWS_SAGEMAKER_API DataSource()=default
AWS_SAGEMAKER_API DataSource(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue