AWS SDK for C++  1.9.1
AWS SDK for C++
ListArchiveRulesRequest.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 
30  {
31  public:
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 "ListArchiveRules"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetAnalyzerName() const{ return m_analyzerName; }
49 
53  inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
54 
58  inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
59 
63  inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
64 
68  inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
69 
73  inline ListArchiveRulesRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
74 
78  inline ListArchiveRulesRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
79 
83  inline ListArchiveRulesRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
84 
85 
89  inline int GetMaxResults() const{ return m_maxResults; }
90 
94  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 
99  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 
104  inline ListArchiveRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 
106 
110  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
111 
115  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
116 
120  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
121 
125  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
126 
130  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
131 
135  inline ListArchiveRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
136 
140  inline ListArchiveRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
141 
145  inline ListArchiveRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
146 
147  private:
148 
149  Aws::String m_analyzerName;
150  bool m_analyzerNameHasBeenSet;
151 
152  int m_maxResults;
153  bool m_maxResultsHasBeenSet;
154 
155  Aws::String m_nextToken;
156  bool m_nextTokenHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace AccessAnalyzer
161 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::AnalyzerNameHasBeenSet
bool AnalyzerNameHasBeenSet() const
Definition: ListArchiveRulesRequest.h:53
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListArchiveRulesRequest.h:38
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithMaxResults
ListArchiveRulesRequest & WithMaxResults(int value)
Definition: ListArchiveRulesRequest.h:104
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithNextToken
ListArchiveRulesRequest & WithNextToken(const Aws::String &value)
Definition: ListArchiveRulesRequest.h:135
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetAnalyzerName
void SetAnalyzerName(Aws::String &&value)
Definition: ListArchiveRulesRequest.h:63
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListArchiveRulesRequest.h:130
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithNextToken
ListArchiveRulesRequest & WithNextToken(Aws::String &&value)
Definition: ListArchiveRulesRequest.h:140
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListArchiveRulesRequest.h:94
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithNextToken
ListArchiveRulesRequest & WithNextToken(const char *value)
Definition: ListArchiveRulesRequest.h:145
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListArchiveRulesRequest.h:110
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::ListArchiveRulesRequest
ListArchiveRulesRequest()
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetAnalyzerName
void SetAnalyzerName(const char *value)
Definition: ListArchiveRulesRequest.h:68
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::GetAnalyzerName
const Aws::String & GetAnalyzerName() const
Definition: ListArchiveRulesRequest.h:48
AWSString.h
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListArchiveRulesRequest.h:120
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithAnalyzerName
ListArchiveRulesRequest & WithAnalyzerName(const char *value)
Definition: ListArchiveRulesRequest.h:83
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListArchiveRulesRequest.h:115
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetAnalyzerName
void SetAnalyzerName(const Aws::String &value)
Definition: ListArchiveRulesRequest.h:58
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListArchiveRulesRequest.h:89
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListArchiveRulesRequest.h:99
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListArchiveRulesRequest.h:125
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest
Definition: ListArchiveRulesRequest.h:30
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithAnalyzerName
ListArchiveRulesRequest & WithAnalyzerName(const Aws::String &value)
Definition: ListArchiveRulesRequest.h:73
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::ListArchiveRulesRequest::WithAnalyzerName
ListArchiveRulesRequest & WithAnalyzerName(Aws::String &&value)
Definition: ListArchiveRulesRequest.h:78