AWS SDK for C++  1.9.108
AWS SDK for C++
CreateProjectRequest.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 "CreateProject"; }
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 CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
67 
71  inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
72 
76  inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
77 
78 
90  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
91 
103  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 
116  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
117 
129  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
130 
142  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
143 
155  inline CreateProjectRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
156 
168  inline CreateProjectRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
169 
181  inline CreateProjectRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
182 
183  private:
184 
185  Aws::String m_projectName;
186  bool m_projectNameHasBeenSet;
187 
188  Aws::String m_clientToken;
189  bool m_clientTokenHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace LookoutforVision
194 } // namespace Aws
Aws::LookoutforVision::Model::CreateProjectRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateProjectRequest.h:103
Aws::LookoutforVision::Model::CreateProjectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProjectRequest.h:31
LookoutforVisionRequest.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LookoutforVision::Model::CreateProjectRequest::WithProjectName
CreateProjectRequest & WithProjectName(const Aws::String &value)
Definition: CreateProjectRequest.h:66
Aws::LookoutforVision::Model::CreateProjectRequest::WithProjectName
CreateProjectRequest & WithProjectName(Aws::String &&value)
Definition: CreateProjectRequest.h:71
Aws::LookoutforVision::Model::CreateProjectRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: CreateProjectRequest.h:46
Aws::LookoutforVision::Model::CreateProjectRequest::WithClientToken
CreateProjectRequest & WithClientToken(const char *value)
Definition: CreateProjectRequest.h:181
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::CreateProjectRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: CreateProjectRequest.h:51
Aws::LookoutforVision::Model::CreateProjectRequest::WithClientToken
CreateProjectRequest & WithClientToken(Aws::String &&value)
Definition: CreateProjectRequest.h:168
Aws::LookoutforVision::Model::CreateProjectRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LookoutforVision::Model::CreateProjectRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateProjectRequest.h:116
Aws::LookoutforVision::Model::CreateProjectRequest::WithProjectName
CreateProjectRequest & WithProjectName(const char *value)
Definition: CreateProjectRequest.h:76
Aws::LookoutforVision::LookoutforVisionRequest
Definition: LookoutforVisionRequest.h:18
Aws::LookoutforVision::Model::CreateProjectRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: CreateProjectRequest.h:41
Aws::LookoutforVision::Model::CreateProjectRequest::CreateProjectRequest
CreateProjectRequest()
Aws::LookoutforVision::Model::CreateProjectRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: CreateProjectRequest.h:56
AWSString.h
Aws::LookoutforVision::Model::CreateProjectRequest::WithClientToken
CreateProjectRequest & WithClientToken(const Aws::String &value)
Definition: CreateProjectRequest.h:155
Aws::LookoutforVision::Model::CreateProjectRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateProjectRequest.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::CreateProjectRequest
Definition: CreateProjectRequest.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::CreateProjectRequest::SetProjectName
void SetProjectName(const char *value)
Definition: CreateProjectRequest.h:61
Aws::LookoutforVision::Model::CreateProjectRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateProjectRequest.h:90
UUID.h
Aws::LookoutforVision::Model::CreateProjectRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateProjectRequest.h:129
Aws::LookoutforVision::Model::CreateProjectRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override