AWS SDK for C++  1.9.108
AWS SDK for C++
DeleteModelRequest.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 "DeleteModel"; }
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 DeleteModelRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
67 
71  inline DeleteModelRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
72 
76  inline DeleteModelRequest& 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 DeleteModelRequest& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
108 
112  inline DeleteModelRequest& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
113 
117  inline DeleteModelRequest& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
118 
119 
131  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
132 
144  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
145 
157  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
158 
170  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
171 
183  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
184 
196  inline DeleteModelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
197 
209  inline DeleteModelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
210 
222  inline DeleteModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
223 
224  private:
225 
226  Aws::String m_projectName;
227  bool m_projectNameHasBeenSet;
228 
229  Aws::String m_modelVersion;
230  bool m_modelVersionHasBeenSet;
231 
232  Aws::String m_clientToken;
233  bool m_clientTokenHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace LookoutforVision
238 } // namespace Aws
Aws::LookoutforVision::Model::DeleteModelRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: DeleteModelRequest.h:170
Aws::LookoutforVision::Model::DeleteModelRequest::WithClientToken
DeleteModelRequest & WithClientToken(const char *value)
Definition: DeleteModelRequest.h:222
Aws::LookoutforVision::Model::DeleteModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteModelRequest.h:31
Aws::LookoutforVision::Model::DeleteModelRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: DeleteModelRequest.h:56
LookoutforVisionRequest.h
Aws::LookoutforVision::Model::DeleteModelRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: DeleteModelRequest.h:144
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LookoutforVision::Model::DeleteModelRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: DeleteModelRequest.h:51
Aws::LookoutforVision::Model::DeleteModelRequest::WithClientToken
DeleteModelRequest & WithClientToken(const Aws::String &value)
Definition: DeleteModelRequest.h:196
Aws::LookoutforVision::Model::DeleteModelRequest::WithModelVersion
DeleteModelRequest & WithModelVersion(const Aws::String &value)
Definition: DeleteModelRequest.h:107
Aws::LookoutforVision::Model::DeleteModelRequest::SetModelVersion
void SetModelVersion(const Aws::String &value)
Definition: DeleteModelRequest.h:92
Aws::LookoutforVision::Model::DeleteModelRequest::WithProjectName
DeleteModelRequest & WithProjectName(Aws::String &&value)
Definition: DeleteModelRequest.h:71
Aws::LookoutforVision::Model::DeleteModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LookoutforVision::Model::DeleteModelRequest::GetModelVersion
const Aws::String & GetModelVersion() const
Definition: DeleteModelRequest.h:82
Aws::LookoutforVision::Model::DeleteModelRequest::DeleteModelRequest
DeleteModelRequest()
Aws::LookoutforVision::Model::DeleteModelRequest::SetClientToken
void SetClientToken(const char *value)
Definition: DeleteModelRequest.h:183
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::LookoutforVisionRequest
Definition: LookoutforVisionRequest.h:18
Aws::LookoutforVision::Model::DeleteModelRequest::WithProjectName
DeleteModelRequest & WithProjectName(const char *value)
Definition: DeleteModelRequest.h:76
AWSString.h
Aws::LookoutforVision::Model::DeleteModelRequest::WithModelVersion
DeleteModelRequest & WithModelVersion(Aws::String &&value)
Definition: DeleteModelRequest.h:112
Aws::LookoutforVision::Model::DeleteModelRequest::ModelVersionHasBeenSet
bool ModelVersionHasBeenSet() const
Definition: DeleteModelRequest.h:87
Aws::LookoutforVision::Model::DeleteModelRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: DeleteModelRequest.h:46
Aws::LookoutforVision::Model::DeleteModelRequest::SetModelVersion
void SetModelVersion(Aws::String &&value)
Definition: DeleteModelRequest.h:97
Aws::LookoutforVision::Model::DeleteModelRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: DeleteModelRequest.h:41
Aws::LookoutforVision::Model::DeleteModelRequest::WithModelVersion
DeleteModelRequest & WithModelVersion(const char *value)
Definition: DeleteModelRequest.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::DeleteModelRequest::SetProjectName
void SetProjectName(const char *value)
Definition: DeleteModelRequest.h:61
Aws::LookoutforVision::Model::DeleteModelRequest::SetModelVersion
void SetModelVersion(const char *value)
Definition: DeleteModelRequest.h:102
Aws::LookoutforVision::Model::DeleteModelRequest::WithClientToken
DeleteModelRequest & WithClientToken(Aws::String &&value)
Definition: DeleteModelRequest.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LookoutforVision::Model::DeleteModelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::DeleteModelRequest
Definition: DeleteModelRequest.h:23
Aws::LookoutforVision::Model::DeleteModelRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: DeleteModelRequest.h:157
UUID.h
Aws::LookoutforVision::Model::DeleteModelRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: DeleteModelRequest.h:131
Aws::LookoutforVision::Model::DeleteModelRequest::WithProjectName
DeleteModelRequest & WithProjectName(const Aws::String &value)
Definition: DeleteModelRequest.h:66