AWS SDK for C++  1.9.157
AWS SDK for C++
ListAccessPreviewsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace AccessAnalyzer
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListAccessPreviews"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
46  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
47 
53  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
54 
60  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
61 
67  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
68 
74  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
75 
81  inline ListAccessPreviewsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
82 
88  inline ListAccessPreviewsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
89 
95  inline ListAccessPreviewsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
96 
97 
101  inline int GetMaxResults() const{ return m_maxResults; }
102 
106  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 
111  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 
116  inline ListAccessPreviewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 
118 
122  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
123 
127  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 
132  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 
137  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
138 
142  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
143 
147  inline ListAccessPreviewsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
148 
152  inline ListAccessPreviewsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
153 
157  inline ListAccessPreviewsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
158 
159  private:
160 
161  Aws::String m_analyzerArn;
162  bool m_analyzerArnHasBeenSet;
163 
164  int m_maxResults;
165  bool m_maxResultsHasBeenSet;
166 
167  Aws::String m_nextToken;
168  bool m_nextTokenHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace AccessAnalyzer
173 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAccessPreviewsRequest.h:132
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithAnalyzerArn
ListAccessPreviewsRequest & WithAnalyzerArn(Aws::String &&value)
Definition: ListAccessPreviewsRequest.h:88
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithNextToken
ListAccessPreviewsRequest & WithNextToken(const Aws::String &value)
Definition: ListAccessPreviewsRequest.h:147
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListAccessPreviewsRequest.h:111
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithMaxResults
ListAccessPreviewsRequest & WithMaxResults(int value)
Definition: ListAccessPreviewsRequest.h:116
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: ListAccessPreviewsRequest.h:67
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: ListAccessPreviewsRequest.h:46
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAccessPreviewsRequest.h:122
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListAccessPreviewsRequest.h:142
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListAccessPreviewsRequest.h:127
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithAnalyzerArn
ListAccessPreviewsRequest & WithAnalyzerArn(const Aws::String &value)
Definition: ListAccessPreviewsRequest.h:81
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: ListAccessPreviewsRequest.h:53
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithNextToken
ListAccessPreviewsRequest & WithNextToken(Aws::String &&value)
Definition: ListAccessPreviewsRequest.h:152
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListAccessPreviewsRequest.h:101
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: ListAccessPreviewsRequest.h:60
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithAnalyzerArn
ListAccessPreviewsRequest & WithAnalyzerArn(const char *value)
Definition: ListAccessPreviewsRequest.h:95
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAccessPreviewsRequest.h:137
AWSString.h
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListAccessPreviewsRequest.h:34
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: ListAccessPreviewsRequest.h:74
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListAccessPreviewsRequest.h:106
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::ListAccessPreviewsRequest
ListAccessPreviewsRequest()
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::WithNextToken
ListAccessPreviewsRequest & WithNextToken(const char *value)
Definition: ListAccessPreviewsRequest.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest
Definition: ListAccessPreviewsRequest.h:26
Aws::AccessAnalyzer::Model::ListAccessPreviewsRequest::SerializePayload
Aws::String SerializePayload() const override