AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ProviderTypesT = Aws::Vector<ProviderType>>
54 void SetProviderTypes(ProviderTypesT&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::forward<ProviderTypesT>(value); }
55 template<typename ProviderTypesT = Aws::Vector<ProviderType>>
56 ListCodeReviewsRequest& WithProviderTypes(ProviderTypesT&& value) { SetProviderTypes(std::forward<ProviderTypesT>(value)); return *this;}
57 inline ListCodeReviewsRequest& AddProviderTypes(ProviderType value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; }
59
61
71 inline const Aws::Vector<JobState>& GetStates() const { return m_states; }
72 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
73 template<typename StatesT = Aws::Vector<JobState>>
74 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
75 template<typename StatesT = Aws::Vector<JobState>>
76 ListCodeReviewsRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
77 inline ListCodeReviewsRequest& AddStates(JobState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
79
81
85 inline const Aws::Vector<Aws::String>& GetRepositoryNames() const { return m_repositoryNames; }
86 inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
87 template<typename RepositoryNamesT = Aws::Vector<Aws::String>>
88 void SetRepositoryNames(RepositoryNamesT&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::forward<RepositoryNamesT>(value); }
89 template<typename RepositoryNamesT = Aws::Vector<Aws::String>>
90 ListCodeReviewsRequest& WithRepositoryNames(RepositoryNamesT&& value) { SetRepositoryNames(std::forward<RepositoryNamesT>(value)); return *this;}
91 template<typename RepositoryNamesT = Aws::String>
92 ListCodeReviewsRequest& AddRepositoryNames(RepositoryNamesT&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.emplace_back(std::forward<RepositoryNamesT>(value)); return *this; }
94
96
99 inline Type GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
102 inline ListCodeReviewsRequest& WithType(Type value) { SetType(value); return *this;}
104
106
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
112 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
113 inline ListCodeReviewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115
117
123 inline const Aws::String& GetNextToken() const { return m_nextToken; }
124 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
125 template<typename NextTokenT = Aws::String>
126 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
127 template<typename NextTokenT = Aws::String>
128 ListCodeReviewsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
130 private:
131
132 Aws::Vector<ProviderType> m_providerTypes;
133 bool m_providerTypesHasBeenSet = false;
134
135 Aws::Vector<JobState> m_states;
136 bool m_statesHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_repositoryNames;
139 bool m_repositoryNamesHasBeenSet = false;
140
141 Type m_type{Type::NOT_SET};
142 bool m_typeHasBeenSet = false;
143
144 int m_maxResults{0};
145 bool m_maxResultsHasBeenSet = false;
146
147 Aws::String m_nextToken;
148 bool m_nextTokenHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace CodeGuruReviewer
153} // namespace Aws
ListCodeReviewsRequest & AddProviderTypes(ProviderType value)
AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListCodeReviewsRequest & WithStates(StatesT &&value)
ListCodeReviewsRequest & WithProviderTypes(ProviderTypesT &&value)
ListCodeReviewsRequest & AddRepositoryNames(RepositoryNamesT &&value)
virtual const char * GetServiceRequestName() const override
ListCodeReviewsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetRepositoryNames() const
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
ListCodeReviewsRequest & AddStates(JobState value)
AWS_CODEGURUREVIEWER_API ListCodeReviewsRequest()=default
const Aws::Vector< JobState > & GetStates() const
ListCodeReviewsRequest & WithRepositoryNames(RepositoryNamesT &&value)
const Aws::Vector< ProviderType > & GetProviderTypes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector