AWS SDK for C++  1.9.66
AWS SDK for C++
ListProjectsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeStar
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 "ListProjects"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
42 
47  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
48 
53  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
54 
59  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
60 
65  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
66 
71  inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
72 
77  inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
78 
83  inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
84 
85 
90  inline int GetMaxResults() const{ return m_maxResults; }
91 
96  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 
102  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
103 
108  inline ListProjectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
109 
110  private:
111 
112  Aws::String m_nextToken;
113  bool m_nextTokenHasBeenSet;
114 
115  int m_maxResults;
116  bool m_maxResultsHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace CodeStar
121 } // namespace Aws
Aws::CodeStar::Model::ListProjectsRequest::WithNextToken
ListProjectsRequest & WithNextToken(const char *value)
Definition: ListProjectsRequest.h:83
Aws::CodeStar::Model::ListProjectsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListProjectsRequest.h:90
Aws::CodeStar::Model::ListProjectsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListProjectsRequest.h:65
Aws::CodeStar::Model::ListProjectsRequest::WithNextToken
ListProjectsRequest & WithNextToken(Aws::String &&value)
Definition: ListProjectsRequest.h:77
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_CODESTAR_API
#define AWS_CODESTAR_API
Definition: CodeStar_EXPORTS.h:28
Aws::CodeStar::Model::ListProjectsRequest::ListProjectsRequest
ListProjectsRequest()
Aws::CodeStar::Model::ListProjectsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListProjectsRequest.h:59
Aws::CodeStar::Model::ListProjectsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeStar::Model::ListProjectsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListProjectsRequest.h:96
Aws::CodeStar::Model::ListProjectsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListProjectsRequest.h:47
Aws::CodeStar::Model::ListProjectsRequest
Definition: ListProjectsRequest.h:22
Aws::CodeStar::Model::ListProjectsRequest::WithMaxResults
ListProjectsRequest & WithMaxResults(int value)
Definition: ListProjectsRequest.h:108
Aws::CodeStar::Model::ListProjectsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeStar::CodeStarRequest
Definition: CodeStarRequest.h:17
CodeStar_EXPORTS.h
CodeStarRequest.h
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::CodeStar::Model::ListProjectsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListProjectsRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeStar::Model::ListProjectsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListProjectsRequest.h:102
Aws::CodeStar::Model::ListProjectsRequest::WithNextToken
ListProjectsRequest & WithNextToken(const Aws::String &value)
Definition: ListProjectsRequest.h:71
Aws::CodeStar::Model::ListProjectsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListProjectsRequest.h:30
Aws::CodeStar::Model::ListProjectsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListProjectsRequest.h:53