AWS SDK for C++  1.9.40
AWS SDK for C++
CreateDataSourceFromS3Request.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MachineLearning
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateDataSourceFromS3"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
43 
48  inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
49 
54  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
55 
60  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
61 
66  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
67 
72  inline CreateDataSourceFromS3Request& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
73 
78  inline CreateDataSourceFromS3Request& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
79 
84  inline CreateDataSourceFromS3Request& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
85 
86 
90  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
91 
95  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
96 
100  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
101 
105  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
106 
110  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
111 
115  inline CreateDataSourceFromS3Request& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
116 
120  inline CreateDataSourceFromS3Request& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
121 
125  inline CreateDataSourceFromS3Request& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
126 
127 
140  inline const S3DataSpec& GetDataSpec() const{ return m_dataSpec; }
141 
154  inline bool DataSpecHasBeenSet() const { return m_dataSpecHasBeenSet; }
155 
168  inline void SetDataSpec(const S3DataSpec& value) { m_dataSpecHasBeenSet = true; m_dataSpec = value; }
169 
182  inline void SetDataSpec(S3DataSpec&& value) { m_dataSpecHasBeenSet = true; m_dataSpec = std::move(value); }
183 
196  inline CreateDataSourceFromS3Request& WithDataSpec(const S3DataSpec& value) { SetDataSpec(value); return *this;}
197 
210  inline CreateDataSourceFromS3Request& WithDataSpec(S3DataSpec&& value) { SetDataSpec(std::move(value)); return *this;}
211 
212 
220  inline bool GetComputeStatistics() const{ return m_computeStatistics; }
221 
229  inline bool ComputeStatisticsHasBeenSet() const { return m_computeStatisticsHasBeenSet; }
230 
238  inline void SetComputeStatistics(bool value) { m_computeStatisticsHasBeenSet = true; m_computeStatistics = value; }
239 
247  inline CreateDataSourceFromS3Request& WithComputeStatistics(bool value) { SetComputeStatistics(value); return *this;}
248 
249  private:
250 
251  Aws::String m_dataSourceId;
252  bool m_dataSourceIdHasBeenSet;
253 
254  Aws::String m_dataSourceName;
255  bool m_dataSourceNameHasBeenSet;
256 
257  S3DataSpec m_dataSpec;
258  bool m_dataSpecHasBeenSet;
259 
260  bool m_computeStatistics;
261  bool m_computeStatisticsHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace MachineLearning
266 } // namespace Aws
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
S3DataSpec.h
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::GetComputeStatistics
bool GetComputeStatistics() const
Definition: CreateDataSourceFromS3Request.h:220
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::GetDataSpec
const S3DataSpec & GetDataSpec() const
Definition: CreateDataSourceFromS3Request.h:140
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSourceName
CreateDataSourceFromS3Request & WithDataSourceName(Aws::String &&value)
Definition: CreateDataSourceFromS3Request.h:120
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSpec
CreateDataSourceFromS3Request & WithDataSpec(S3DataSpec &&value)
Definition: CreateDataSourceFromS3Request.h:210
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSpec
void SetDataSpec(const S3DataSpec &value)
Definition: CreateDataSourceFromS3Request.h:168
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::DataSpecHasBeenSet
bool DataSpecHasBeenSet() const
Definition: CreateDataSourceFromS3Request.h:154
Aws::MachineLearning::Model::CreateDataSourceFromS3Request
Definition: CreateDataSourceFromS3Request.h:23
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: CreateDataSourceFromS3Request.h:90
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSourceId
void SetDataSourceId(const char *value)
Definition: CreateDataSourceFromS3Request.h:66
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDataSourceFromS3Request.h:31
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::CreateDataSourceFromS3Request
CreateDataSourceFromS3Request()
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSpec
CreateDataSourceFromS3Request & WithDataSpec(const S3DataSpec &value)
Definition: CreateDataSourceFromS3Request.h:196
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSourceId
CreateDataSourceFromS3Request & WithDataSourceId(const char *value)
Definition: CreateDataSourceFromS3Request.h:84
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetComputeStatistics
void SetComputeStatistics(bool value)
Definition: CreateDataSourceFromS3Request.h:238
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithComputeStatistics
CreateDataSourceFromS3Request & WithComputeStatistics(bool value)
Definition: CreateDataSourceFromS3Request.h:247
Aws::MachineLearning::Model::S3DataSpec
Definition: S3DataSpec.h:33
AWSString.h
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: CreateDataSourceFromS3Request.h:105
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::GetDataSourceId
const Aws::String & GetDataSourceId() const
Definition: CreateDataSourceFromS3Request.h:42
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: CreateDataSourceFromS3Request.h:110
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: CreateDataSourceFromS3Request.h:95
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSourceId
void SetDataSourceId(const Aws::String &value)
Definition: CreateDataSourceFromS3Request.h:54
MachineLearningRequest.h
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSourceName
CreateDataSourceFromS3Request & WithDataSourceName(const char *value)
Definition: CreateDataSourceFromS3Request.h:125
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSourceId
CreateDataSourceFromS3Request & WithDataSourceId(Aws::String &&value)
Definition: CreateDataSourceFromS3Request.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::ComputeStatisticsHasBeenSet
bool ComputeStatisticsHasBeenSet() const
Definition: CreateDataSourceFromS3Request.h:229
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSpec
void SetDataSpec(S3DataSpec &&value)
Definition: CreateDataSourceFromS3Request.h:182
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSourceId
void SetDataSourceId(Aws::String &&value)
Definition: CreateDataSourceFromS3Request.h:60
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSourceId
CreateDataSourceFromS3Request & WithDataSourceId(const Aws::String &value)
Definition: CreateDataSourceFromS3Request.h:72
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: CreateDataSourceFromS3Request.h:100
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::DataSourceIdHasBeenSet
bool DataSourceIdHasBeenSet() const
Definition: CreateDataSourceFromS3Request.h:48
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::SerializePayload
Aws::String SerializePayload() const override
Aws::MachineLearning::Model::CreateDataSourceFromS3Request::WithDataSourceName
CreateDataSourceFromS3Request & WithDataSourceName(const Aws::String &value)
Definition: CreateDataSourceFromS3Request.h:115