AWS SDK for C++  1.9.158
AWS SDK for C++
DescribeProjectsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Rekognition
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 "DescribeProjects"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
52  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
53 
60  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 
68  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
69 
76  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
77 
84  inline DescribeProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 
92  inline DescribeProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 
100  inline DescribeProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101 
102 
108  inline int GetMaxResults() const{ return m_maxResults; }
109 
115  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 
122  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
123 
129  inline DescribeProjectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
130 
131 
137  inline const Aws::Vector<Aws::String>& GetProjectNames() const{ return m_projectNames; }
138 
144  inline bool ProjectNamesHasBeenSet() const { return m_projectNamesHasBeenSet; }
145 
151  inline void SetProjectNames(const Aws::Vector<Aws::String>& value) { m_projectNamesHasBeenSet = true; m_projectNames = value; }
152 
158  inline void SetProjectNames(Aws::Vector<Aws::String>&& value) { m_projectNamesHasBeenSet = true; m_projectNames = std::move(value); }
159 
165  inline DescribeProjectsRequest& WithProjectNames(const Aws::Vector<Aws::String>& value) { SetProjectNames(value); return *this;}
166 
172  inline DescribeProjectsRequest& WithProjectNames(Aws::Vector<Aws::String>&& value) { SetProjectNames(std::move(value)); return *this;}
173 
179  inline DescribeProjectsRequest& AddProjectNames(const Aws::String& value) { m_projectNamesHasBeenSet = true; m_projectNames.push_back(value); return *this; }
180 
186  inline DescribeProjectsRequest& AddProjectNames(Aws::String&& value) { m_projectNamesHasBeenSet = true; m_projectNames.push_back(std::move(value)); return *this; }
187 
193  inline DescribeProjectsRequest& AddProjectNames(const char* value) { m_projectNamesHasBeenSet = true; m_projectNames.push_back(value); return *this; }
194 
195  private:
196 
197  Aws::String m_nextToken;
198  bool m_nextTokenHasBeenSet;
199 
200  int m_maxResults;
201  bool m_maxResultsHasBeenSet;
202 
203  Aws::Vector<Aws::String> m_projectNames;
204  bool m_projectNamesHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace Rekognition
209 } // namespace Aws
Aws::Rekognition::Model::DescribeProjectsRequest::AddProjectNames
DescribeProjectsRequest & AddProjectNames(Aws::String &&value)
Definition: DescribeProjectsRequest.h:186
Aws::Rekognition::Model::DescribeProjectsRequest::SetProjectNames
void SetProjectNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeProjectsRequest.h:151
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::DescribeProjectsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeProjectsRequest.h:60
Aws::Rekognition::Model::DescribeProjectsRequest::WithNextToken
DescribeProjectsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeProjectsRequest.h:84
Aws::Rekognition::Model::DescribeProjectsRequest::DescribeProjectsRequest
DescribeProjectsRequest()
Aws::Rekognition::Model::DescribeProjectsRequest::WithProjectNames
DescribeProjectsRequest & WithProjectNames(const Aws::Vector< Aws::String > &value)
Definition: DescribeProjectsRequest.h:165
Aws::Rekognition::Model::DescribeProjectsRequest::AddProjectNames
DescribeProjectsRequest & AddProjectNames(const Aws::String &value)
Definition: DescribeProjectsRequest.h:179
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Rekognition::Model::DescribeProjectsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeProjectsRequest.h:115
Aws::Rekognition::Model::DescribeProjectsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeProjectsRequest.h:108
Aws::Rekognition::Model::DescribeProjectsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeProjectsRequest.h:52
AWSVector.h
Aws::Rekognition::Model::DescribeProjectsRequest
Definition: DescribeProjectsRequest.h:23
Aws::Rekognition::Model::DescribeProjectsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Rekognition::Model::DescribeProjectsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeProjectsRequest.h:76
Aws::Rekognition::Model::DescribeProjectsRequest::AddProjectNames
DescribeProjectsRequest & AddProjectNames(const char *value)
Definition: DescribeProjectsRequest.h:193
Aws::Rekognition::Model::DescribeProjectsRequest::GetProjectNames
const Aws::Vector< Aws::String > & GetProjectNames() const
Definition: DescribeProjectsRequest.h:137
Aws::Rekognition::Model::DescribeProjectsRequest::ProjectNamesHasBeenSet
bool ProjectNamesHasBeenSet() const
Definition: DescribeProjectsRequest.h:144
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::DescribeProjectsRequest::SetProjectNames
void SetProjectNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeProjectsRequest.h:158
Aws::Rekognition::Model::DescribeProjectsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Rekognition::Model::DescribeProjectsRequest::WithProjectNames
DescribeProjectsRequest & WithProjectNames(Aws::Vector< Aws::String > &&value)
Definition: DescribeProjectsRequest.h:172
Aws::Rekognition::Model::DescribeProjectsRequest::WithMaxResults
DescribeProjectsRequest & WithMaxResults(int value)
Definition: DescribeProjectsRequest.h:129
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::DescribeProjectsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeProjectsRequest.h:68
Rekognition_EXPORTS.h
Aws::Rekognition::Model::DescribeProjectsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeProjectsRequest.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::DescribeProjectsRequest::WithNextToken
DescribeProjectsRequest & WithNextToken(const char *value)
Definition: DescribeProjectsRequest.h:100
Aws::Rekognition::Model::DescribeProjectsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeProjectsRequest.h:31
Aws::Rekognition::Model::DescribeProjectsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeProjectsRequest.h:122
Aws::Rekognition::Model::DescribeProjectsRequest::WithNextToken
DescribeProjectsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeProjectsRequest.h:92
RekognitionRequest.h