AWS SDK for C++  1.9.129
AWS SDK for C++
GetManagedPrefixListEntriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetManagedPrefixListEntries"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline GetManagedPrefixListEntriesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
75  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
76 
80  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
81 
85  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
86 
90  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
91 
95  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
96 
100  inline GetManagedPrefixListEntriesRequest& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
101 
105  inline GetManagedPrefixListEntriesRequest& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
106 
110  inline GetManagedPrefixListEntriesRequest& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
111 
112 
117  inline long long GetTargetVersion() const{ return m_targetVersion; }
118 
123  inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
124 
129  inline void SetTargetVersion(long long value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
130 
135  inline GetManagedPrefixListEntriesRequest& WithTargetVersion(long long value) { SetTargetVersion(value); return *this;}
136 
137 
143  inline int GetMaxResults() const{ return m_maxResults; }
144 
150  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
151 
157  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
158 
164  inline GetManagedPrefixListEntriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
165 
166 
170  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
171 
175  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
176 
180  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
181 
185  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
186 
190  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
191 
195  inline GetManagedPrefixListEntriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
196 
200  inline GetManagedPrefixListEntriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
201 
205  inline GetManagedPrefixListEntriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
206 
207  private:
208 
209  bool m_dryRun;
210  bool m_dryRunHasBeenSet;
211 
212  Aws::String m_prefixListId;
213  bool m_prefixListIdHasBeenSet;
214 
215  long long m_targetVersion;
216  bool m_targetVersionHasBeenSet;
217 
218  int m_maxResults;
219  bool m_maxResultsHasBeenSet;
220 
221  Aws::String m_nextToken;
222  bool m_nextTokenHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace EC2
227 } // namespace Aws
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: GetManagedPrefixListEntriesRequest.h:80
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetManagedPrefixListEntriesRequest.h:61
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetManagedPrefixListEntriesRequest.h:190
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetManagedPrefixListEntriesRequest.h:180
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithTargetVersion
GetManagedPrefixListEntriesRequest & WithTargetVersion(long long value)
Definition: GetManagedPrefixListEntriesRequest.h:135
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithNextToken
GetManagedPrefixListEntriesRequest & WithNextToken(Aws::String &&value)
Definition: GetManagedPrefixListEntriesRequest.h:200
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetManagedPrefixListEntriesRequest.h:157
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::TargetVersionHasBeenSet
bool TargetVersionHasBeenSet() const
Definition: GetManagedPrefixListEntriesRequest.h:123
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: GetManagedPrefixListEntriesRequest.h:75
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetDryRun
bool GetDryRun() const
Definition: GetManagedPrefixListEntriesRequest.h:45
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithMaxResults
GetManagedPrefixListEntriesRequest & WithMaxResults(int value)
Definition: GetManagedPrefixListEntriesRequest.h:164
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithPrefixListId
GetManagedPrefixListEntriesRequest & WithPrefixListId(const Aws::String &value)
Definition: GetManagedPrefixListEntriesRequest.h:100
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: GetManagedPrefixListEntriesRequest.h:95
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithNextToken
GetManagedPrefixListEntriesRequest & WithNextToken(const Aws::String &value)
Definition: GetManagedPrefixListEntriesRequest.h:195
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithDryRun
GetManagedPrefixListEntriesRequest & WithDryRun(bool value)
Definition: GetManagedPrefixListEntriesRequest.h:69
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetManagedPrefixListEntriesRequest
GetManagedPrefixListEntriesRequest()
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetManagedPrefixListEntriesRequest.h:175
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetManagedPrefixListEntriesRequest.h:30
EC2Request.h
AWSString.h
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetManagedPrefixListEntriesRequest.h:53
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithPrefixListId
GetManagedPrefixListEntriesRequest & WithPrefixListId(const char *value)
Definition: GetManagedPrefixListEntriesRequest.h:110
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithNextToken
GetManagedPrefixListEntriesRequest & WithNextToken(const char *value)
Definition: GetManagedPrefixListEntriesRequest.h:205
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: GetManagedPrefixListEntriesRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetManagedPrefixListEntriesRequest
Definition: GetManagedPrefixListEntriesRequest.h:22
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::WithPrefixListId
GetManagedPrefixListEntriesRequest & WithPrefixListId(Aws::String &&value)
Definition: GetManagedPrefixListEntriesRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetManagedPrefixListEntriesRequest.h:170
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetTargetVersion
void SetTargetVersion(long long value)
Definition: GetManagedPrefixListEntriesRequest.h:129
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetManagedPrefixListEntriesRequest.h:150
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetManagedPrefixListEntriesRequest.h:185
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetTargetVersion
long long GetTargetVersion() const
Definition: GetManagedPrefixListEntriesRequest.h:117
EC2_EXPORTS.h
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetManagedPrefixListEntriesRequest.h:143
Aws::EC2::Model::GetManagedPrefixListEntriesRequest::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: GetManagedPrefixListEntriesRequest.h:90