AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListCodeReviewsRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguru-reviewer/model/Type.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/codeguru-reviewer/model/ProviderType.h>
13#include <aws/codeguru-reviewer/model/JobState.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace CodeGuruReviewer
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_CODEGURUREVIEWER_API ListCodeReviewsRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListCodeReviews"; }
39
40 AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
41
42 AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
51 inline const Aws::Vector<ProviderType>& GetProviderTypes() const{ return m_providerTypes; }
52 inline bool ProviderTypesHasBeenSet() const { return m_providerTypesHasBeenSet; }
53 inline void SetProviderTypes(const Aws::Vector<ProviderType>& value) { m_providerTypesHasBeenSet = true; m_providerTypes = value; }
54 inline void SetProviderTypes(Aws::Vector<ProviderType>&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::move(value); }
56 inline ListCodeReviewsRequest& WithProviderTypes(Aws::Vector<ProviderType>&& value) { SetProviderTypes(std::move(value)); return *this;}
57 inline ListCodeReviewsRequest& AddProviderTypes(const ProviderType& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; }
58 inline ListCodeReviewsRequest& AddProviderTypes(ProviderType&& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(std::move(value)); return *this; }
60
62
72 inline const Aws::Vector<JobState>& GetStates() const{ return m_states; }
73 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
74 inline void SetStates(const Aws::Vector<JobState>& value) { m_statesHasBeenSet = true; m_states = value; }
75 inline void SetStates(Aws::Vector<JobState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
76 inline ListCodeReviewsRequest& WithStates(const Aws::Vector<JobState>& value) { SetStates(value); return *this;}
77 inline ListCodeReviewsRequest& WithStates(Aws::Vector<JobState>&& value) { SetStates(std::move(value)); return *this;}
78 inline ListCodeReviewsRequest& AddStates(const JobState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
79 inline ListCodeReviewsRequest& AddStates(JobState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
81
83
87 inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
88 inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
89 inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
90 inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
93 inline ListCodeReviewsRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
94 inline ListCodeReviewsRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
95 inline ListCodeReviewsRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
97
99
102 inline const Type& GetType() const{ return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
105 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
106 inline ListCodeReviewsRequest& WithType(const Type& value) { SetType(value); return *this;}
107 inline ListCodeReviewsRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
109
111
115 inline int GetMaxResults() const{ return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 inline ListCodeReviewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120
122
128 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
129 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
130 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
131 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
132 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
133 inline ListCodeReviewsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
134 inline ListCodeReviewsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
135 inline ListCodeReviewsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
137 private:
138
139 Aws::Vector<ProviderType> m_providerTypes;
140 bool m_providerTypesHasBeenSet = false;
141
142 Aws::Vector<JobState> m_states;
143 bool m_statesHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_repositoryNames;
146 bool m_repositoryNamesHasBeenSet = false;
147
148 Type m_type;
149 bool m_typeHasBeenSet = false;
150
151 int m_maxResults;
152 bool m_maxResultsHasBeenSet = false;
153
154 Aws::String m_nextToken;
155 bool m_nextTokenHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace CodeGuruReviewer
160} // namespace Aws
ListCodeReviewsRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
void SetProviderTypes(const Aws::Vector< ProviderType > &value)
AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListCodeReviewsRequest & AddProviderTypes(const ProviderType &value)
void SetProviderTypes(Aws::Vector< ProviderType > &&value)
void SetStates(const Aws::Vector< JobState > &value)
ListCodeReviewsRequest & AddRepositoryNames(const Aws::String &value)
ListCodeReviewsRequest & AddStates(JobState &&value)
virtual const char * GetServiceRequestName() const override
ListCodeReviewsRequest & WithProviderTypes(Aws::Vector< ProviderType > &&value)
ListCodeReviewsRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRepositoryNames() const
ListCodeReviewsRequest & WithNextToken(const Aws::String &value)
ListCodeReviewsRequest & AddProviderTypes(ProviderType &&value)
ListCodeReviewsRequest & AddRepositoryNames(Aws::String &&value)
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
ListCodeReviewsRequest & WithNextToken(Aws::String &&value)
const Aws::Vector< JobState > & GetStates() const
ListCodeReviewsRequest & WithType(const Type &value)
ListCodeReviewsRequest & AddStates(const JobState &value)
ListCodeReviewsRequest & WithStates(const Aws::Vector< JobState > &value)
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ProviderType > & GetProviderTypes() const
ListCodeReviewsRequest & WithProviderTypes(const Aws::Vector< ProviderType > &value)
ListCodeReviewsRequest & AddRepositoryNames(const char *value)
ListCodeReviewsRequest & WithNextToken(const char *value)
ListCodeReviewsRequest & WithStates(Aws::Vector< JobState > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector