AWS SDK for C++  1.9.40
AWS SDK for C++
ListReceivedGrantsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace LicenseManager
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListReceivedGrants"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::Vector<Aws::String>& GetGrantArns() const{ return m_grantArns; }
43 
47  inline bool GrantArnsHasBeenSet() const { return m_grantArnsHasBeenSet; }
48 
52  inline void SetGrantArns(const Aws::Vector<Aws::String>& value) { m_grantArnsHasBeenSet = true; m_grantArns = value; }
53 
57  inline void SetGrantArns(Aws::Vector<Aws::String>&& value) { m_grantArnsHasBeenSet = true; m_grantArns = std::move(value); }
58 
62  inline ListReceivedGrantsRequest& WithGrantArns(const Aws::Vector<Aws::String>& value) { SetGrantArns(value); return *this;}
63 
67  inline ListReceivedGrantsRequest& WithGrantArns(Aws::Vector<Aws::String>&& value) { SetGrantArns(std::move(value)); return *this;}
68 
72  inline ListReceivedGrantsRequest& AddGrantArns(const Aws::String& value) { m_grantArnsHasBeenSet = true; m_grantArns.push_back(value); return *this; }
73 
77  inline ListReceivedGrantsRequest& AddGrantArns(Aws::String&& value) { m_grantArnsHasBeenSet = true; m_grantArns.push_back(std::move(value)); return *this; }
78 
82  inline ListReceivedGrantsRequest& AddGrantArns(const char* value) { m_grantArnsHasBeenSet = true; m_grantArns.push_back(value); return *this; }
83 
84 
92  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
93 
101  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
102 
110  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
111 
119  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
120 
128  inline ListReceivedGrantsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
129 
137  inline ListReceivedGrantsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
138 
146  inline ListReceivedGrantsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
147 
155  inline ListReceivedGrantsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
156 
157 
161  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
162 
166  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
167 
171  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
172 
176  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
177 
181  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
182 
186  inline ListReceivedGrantsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
187 
191  inline ListReceivedGrantsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
192 
196  inline ListReceivedGrantsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
197 
198 
202  inline int GetMaxResults() const{ return m_maxResults; }
203 
207  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
208 
212  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
213 
217  inline ListReceivedGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
218 
219  private:
220 
221  Aws::Vector<Aws::String> m_grantArns;
222  bool m_grantArnsHasBeenSet;
223 
224  Aws::Vector<Filter> m_filters;
225  bool m_filtersHasBeenSet;
226 
227  Aws::String m_nextToken;
228  bool m_nextTokenHasBeenSet;
229 
230  int m_maxResults;
231  bool m_maxResultsHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace LicenseManager
236 } // namespace Aws
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithNextToken
ListReceivedGrantsRequest & WithNextToken(const Aws::String &value)
Definition: ListReceivedGrantsRequest.h:186
Filter.h
Aws::LicenseManager::Model::ListReceivedGrantsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListReceivedGrantsRequest.h:101
Aws::LicenseManager::Model::ListReceivedGrantsRequest::AddFilters
ListReceivedGrantsRequest & AddFilters(const Filter &value)
Definition: ListReceivedGrantsRequest.h:146
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LicenseManager::Model::ListReceivedGrantsRequest::AddGrantArns
ListReceivedGrantsRequest & AddGrantArns(const Aws::String &value)
Definition: ListReceivedGrantsRequest.h:72
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListReceivedGrantsRequest.h:119
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListReceivedGrantsRequest.h:110
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListReceivedGrantsRequest.h:32
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithGrantArns
ListReceivedGrantsRequest & WithGrantArns(const Aws::Vector< Aws::String > &value)
Definition: ListReceivedGrantsRequest.h:62
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListReceivedGrantsRequest.h:171
Aws::LicenseManager::Model::ListReceivedGrantsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListReceivedGrantsRequest.h:207
Aws::LicenseManager::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
LicenseManagerRequest.h
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListReceivedGrantsRequest.h:161
AWSVector.h
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GetGrantArns
const Aws::Vector< Aws::String > & GetGrantArns() const
Definition: ListReceivedGrantsRequest.h:42
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithNextToken
ListReceivedGrantsRequest & WithNextToken(const char *value)
Definition: ListReceivedGrantsRequest.h:196
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithGrantArns
ListReceivedGrantsRequest & WithGrantArns(Aws::Vector< Aws::String > &&value)
Definition: ListReceivedGrantsRequest.h:67
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GrantArnsHasBeenSet
bool GrantArnsHasBeenSet() const
Definition: ListReceivedGrantsRequest.h:47
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithFilters
ListReceivedGrantsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListReceivedGrantsRequest.h:128
Aws::LicenseManager::Model::ListReceivedGrantsRequest
Definition: ListReceivedGrantsRequest.h:24
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetGrantArns
void SetGrantArns(const Aws::Vector< Aws::String > &value)
Definition: ListReceivedGrantsRequest.h:52
AWS_LICENSEMANAGER_API
#define AWS_LICENSEMANAGER_API
Definition: LicenseManager_EXPORTS.h:28
AWSString.h
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListReceivedGrantsRequest.h:92
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListReceivedGrantsRequest.h:181
Aws::LicenseManager::Model::ListReceivedGrantsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListReceivedGrantsRequest.h:202
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListReceivedGrantsRequest.h:176
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithNextToken
ListReceivedGrantsRequest & WithNextToken(Aws::String &&value)
Definition: ListReceivedGrantsRequest.h:191
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithFilters
ListReceivedGrantsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListReceivedGrantsRequest.h:137
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetGrantArns
void SetGrantArns(Aws::Vector< Aws::String > &&value)
Definition: ListReceivedGrantsRequest.h:57
Aws::LicenseManager::Model::ListReceivedGrantsRequest::WithMaxResults
ListReceivedGrantsRequest & WithMaxResults(int value)
Definition: ListReceivedGrantsRequest.h:217
LicenseManager_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::LicenseManager::Model::ListReceivedGrantsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListReceivedGrantsRequest.h:166
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LicenseManager::Model::ListReceivedGrantsRequest::AddFilters
ListReceivedGrantsRequest & AddFilters(Filter &&value)
Definition: ListReceivedGrantsRequest.h:155
Aws::LicenseManager::Model::ListReceivedGrantsRequest::AddGrantArns
ListReceivedGrantsRequest & AddGrantArns(const char *value)
Definition: ListReceivedGrantsRequest.h:82
Aws::LicenseManager::Model::ListReceivedGrantsRequest::AddGrantArns
ListReceivedGrantsRequest & AddGrantArns(Aws::String &&value)
Definition: ListReceivedGrantsRequest.h:77
Aws::LicenseManager::Model::ListReceivedGrantsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListReceivedGrantsRequest.h:212
Aws::LicenseManager::Model::ListReceivedGrantsRequest::ListReceivedGrantsRequest
ListReceivedGrantsRequest()
Aws::LicenseManager::LicenseManagerRequest
Definition: LicenseManagerRequest.h:17