AWS SDK for C++  1.9.103
AWS SDK for C++
UpdateDataSourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MachineLearning
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
41 
45  inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
46 
50  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
51 
55  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
56 
60  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
61 
65  inline UpdateDataSourceRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
66 
70  inline UpdateDataSourceRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
71 
75  inline UpdateDataSourceRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
76 
77 
82  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
83 
88  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
89 
94  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
95 
100  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
101 
106  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
107 
112  inline UpdateDataSourceRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
113 
118  inline UpdateDataSourceRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
119 
124  inline UpdateDataSourceRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
125 
126  private:
127 
128  Aws::String m_dataSourceId;
129  bool m_dataSourceIdHasBeenSet;
130 
131  Aws::String m_dataSourceName;
132  bool m_dataSourceNameHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace MachineLearning
137 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::UpdateDataSourceRequest::WithDataSourceId
UpdateDataSourceRequest & WithDataSourceId(Aws::String &&value)
Definition: UpdateDataSourceRequest.h:70
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::UpdateDataSourceRequest::WithDataSourceName
UpdateDataSourceRequest & WithDataSourceName(Aws::String &&value)
Definition: UpdateDataSourceRequest.h:118
Aws::MachineLearning::Model::UpdateDataSourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDataSourceRequest.h:30
Aws::MachineLearning::Model::UpdateDataSourceRequest::WithDataSourceName
UpdateDataSourceRequest & WithDataSourceName(const Aws::String &value)
Definition: UpdateDataSourceRequest.h:112
Aws::MachineLearning::Model::UpdateDataSourceRequest::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: UpdateDataSourceRequest.h:82
Aws::MachineLearning::Model::UpdateDataSourceRequest::DataSourceIdHasBeenSet
bool DataSourceIdHasBeenSet() const
Definition: UpdateDataSourceRequest.h:45
Aws::MachineLearning::Model::UpdateDataSourceRequest::SetDataSourceId
void SetDataSourceId(const char *value)
Definition: UpdateDataSourceRequest.h:60
Aws::MachineLearning::Model::UpdateDataSourceRequest::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: UpdateDataSourceRequest.h:100
Aws::MachineLearning::Model::UpdateDataSourceRequest::GetDataSourceId
const Aws::String & GetDataSourceId() const
Definition: UpdateDataSourceRequest.h:40
Aws::MachineLearning::Model::UpdateDataSourceRequest
Definition: UpdateDataSourceRequest.h:22
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::UpdateDataSourceRequest::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: UpdateDataSourceRequest.h:94
Aws::MachineLearning::Model::UpdateDataSourceRequest::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: UpdateDataSourceRequest.h:106
AWSString.h
Aws::MachineLearning::Model::UpdateDataSourceRequest::WithDataSourceId
UpdateDataSourceRequest & WithDataSourceId(const Aws::String &value)
Definition: UpdateDataSourceRequest.h:65
Aws::MachineLearning::Model::UpdateDataSourceRequest::SetDataSourceId
void SetDataSourceId(Aws::String &&value)
Definition: UpdateDataSourceRequest.h:55
Aws::MachineLearning::Model::UpdateDataSourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MachineLearning::Model::UpdateDataSourceRequest::SetDataSourceId
void SetDataSourceId(const Aws::String &value)
Definition: UpdateDataSourceRequest.h:50
MachineLearningRequest.h
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws::MachineLearning::Model::UpdateDataSourceRequest::WithDataSourceId
UpdateDataSourceRequest & WithDataSourceId(const char *value)
Definition: UpdateDataSourceRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::UpdateDataSourceRequest::UpdateDataSourceRequest
UpdateDataSourceRequest()
Aws::MachineLearning::Model::UpdateDataSourceRequest::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: UpdateDataSourceRequest.h:88
Aws::MachineLearning::Model::UpdateDataSourceRequest::WithDataSourceName
UpdateDataSourceRequest & WithDataSourceName(const char *value)
Definition: UpdateDataSourceRequest.h:124
Aws::MachineLearning::Model::UpdateDataSourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override