AWS SDK for C++  1.9.106
AWS SDK for C++
StartModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace LookoutforVision
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 "StartModel"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetProjectName() const{ return m_projectName; }
42 
46  inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
47 
51  inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
52 
56  inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
57 
61  inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
62 
66  inline StartModelRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
67 
71  inline StartModelRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
72 
76  inline StartModelRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
77 
78 
82  inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
83 
87  inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
88 
92  inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
93 
97  inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
98 
102  inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); }
103 
107  inline StartModelRequest& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
108 
112  inline StartModelRequest& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
113 
117  inline StartModelRequest& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
118 
119 
126  inline int GetMinInferenceUnits() const{ return m_minInferenceUnits; }
127 
134  inline bool MinInferenceUnitsHasBeenSet() const { return m_minInferenceUnitsHasBeenSet; }
135 
142  inline void SetMinInferenceUnits(int value) { m_minInferenceUnitsHasBeenSet = true; m_minInferenceUnits = value; }
143 
150  inline StartModelRequest& WithMinInferenceUnits(int value) { SetMinInferenceUnits(value); return *this;}
151 
152 
164  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
165 
177  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
178 
190  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
191 
203  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
204 
216  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
217 
229  inline StartModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
230 
242  inline StartModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
243 
255  inline StartModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
256 
257  private:
258 
259  Aws::String m_projectName;
260  bool m_projectNameHasBeenSet;
261 
262  Aws::String m_modelVersion;
263  bool m_modelVersionHasBeenSet;
264 
265  int m_minInferenceUnits;
266  bool m_minInferenceUnitsHasBeenSet;
267 
268  Aws::String m_clientToken;
269  bool m_clientTokenHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace LookoutforVision
274 } // namespace Aws
Aws::LookoutforVision::Model::StartModelRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: StartModelRequest.h:164
Aws::LookoutforVision::Model::StartModelRequest::SetClientToken
void SetClientToken(const char *value)
Definition: StartModelRequest.h:216
LookoutforVisionRequest.h
Aws::LookoutforVision::Model::StartModelRequest::GetModelVersion
const Aws::String & GetModelVersion() const
Definition: StartModelRequest.h:82
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LookoutforVision::Model::StartModelRequest::WithMinInferenceUnits
StartModelRequest & WithMinInferenceUnits(int value)
Definition: StartModelRequest.h:150
Aws::LookoutforVision::Model::StartModelRequest::SetModelVersion
void SetModelVersion(Aws::String &&value)
Definition: StartModelRequest.h:97
Aws::LookoutforVision::Model::StartModelRequest::WithProjectName
StartModelRequest & WithProjectName(const Aws::String &value)
Definition: StartModelRequest.h:66
Aws::LookoutforVision::Model::StartModelRequest::WithModelVersion
StartModelRequest & WithModelVersion(const char *value)
Definition: StartModelRequest.h:117
Aws::LookoutforVision::Model::StartModelRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: StartModelRequest.h:203
Aws::LookoutforVision::Model::StartModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartModelRequest.h:31
Aws::LookoutforVision::Model::StartModelRequest::WithClientToken
StartModelRequest & WithClientToken(const Aws::String &value)
Definition: StartModelRequest.h:229
Aws::LookoutforVision::Model::StartModelRequest::WithProjectName
StartModelRequest & WithProjectName(const char *value)
Definition: StartModelRequest.h:76
Aws::LookoutforVision::Model::StartModelRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: StartModelRequest.h:56
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::StartModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::LookoutforVision::Model::StartModelRequest::SetModelVersion
void SetModelVersion(const char *value)
Definition: StartModelRequest.h:102
Aws::LookoutforVision::Model::StartModelRequest::GetMinInferenceUnits
int GetMinInferenceUnits() const
Definition: StartModelRequest.h:126
Aws::LookoutforVision::Model::StartModelRequest::WithModelVersion
StartModelRequest & WithModelVersion(Aws::String &&value)
Definition: StartModelRequest.h:112
Aws::LookoutforVision::Model::StartModelRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: StartModelRequest.h:190
Aws::LookoutforVision::LookoutforVisionRequest
Definition: LookoutforVisionRequest.h:18
Aws::LookoutforVision::Model::StartModelRequest::SetMinInferenceUnits
void SetMinInferenceUnits(int value)
Definition: StartModelRequest.h:142
Aws::LookoutforVision::Model::StartModelRequest::SetProjectName
void SetProjectName(const char *value)
Definition: StartModelRequest.h:61
Aws::LookoutforVision::Model::StartModelRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: StartModelRequest.h:177
Aws::LookoutforVision::Model::StartModelRequest::SetModelVersion
void SetModelVersion(const Aws::String &value)
Definition: StartModelRequest.h:92
AWSString.h
Aws::LookoutforVision::Model::StartModelRequest::WithProjectName
StartModelRequest & WithProjectName(Aws::String &&value)
Definition: StartModelRequest.h:71
Aws::LookoutforVision::Model::StartModelRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: StartModelRequest.h:46
Aws::LookoutforVision::Model::StartModelRequest::StartModelRequest
StartModelRequest()
Aws::LookoutforVision::Model::StartModelRequest::WithModelVersion
StartModelRequest & WithModelVersion(const Aws::String &value)
Definition: StartModelRequest.h:107
Aws::LookoutforVision::Model::StartModelRequest::WithClientToken
StartModelRequest & WithClientToken(const char *value)
Definition: StartModelRequest.h:255
Aws::LookoutforVision::Model::StartModelRequest::WithClientToken
StartModelRequest & WithClientToken(Aws::String &&value)
Definition: StartModelRequest.h:242
Aws::LookoutforVision::Model::StartModelRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: StartModelRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::StartModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LookoutforVision::Model::StartModelRequest::ModelVersionHasBeenSet
bool ModelVersionHasBeenSet() const
Definition: StartModelRequest.h:87
Aws::LookoutforVision::Model::StartModelRequest
Definition: StartModelRequest.h:23
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::StartModelRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: StartModelRequest.h:41
UUID.h
Aws::LookoutforVision::Model::StartModelRequest::MinInferenceUnitsHasBeenSet
bool MinInferenceUnitsHasBeenSet() const
Definition: StartModelRequest.h:134