AWS SDK for C++  1.9.130
AWS SDK for C++
RestoreManagedPrefixListVersionRequest.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 "RestoreManagedPrefixListVersion"; }
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 RestoreManagedPrefixListVersionRequest& 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 RestoreManagedPrefixListVersionRequest& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
101 
105  inline RestoreManagedPrefixListVersionRequest& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
106 
110  inline RestoreManagedPrefixListVersionRequest& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
111 
112 
116  inline long long GetPreviousVersion() const{ return m_previousVersion; }
117 
121  inline bool PreviousVersionHasBeenSet() const { return m_previousVersionHasBeenSet; }
122 
126  inline void SetPreviousVersion(long long value) { m_previousVersionHasBeenSet = true; m_previousVersion = value; }
127 
131  inline RestoreManagedPrefixListVersionRequest& WithPreviousVersion(long long value) { SetPreviousVersion(value); return *this;}
132 
133 
137  inline long long GetCurrentVersion() const{ return m_currentVersion; }
138 
142  inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
143 
147  inline void SetCurrentVersion(long long value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
148 
152  inline RestoreManagedPrefixListVersionRequest& WithCurrentVersion(long long value) { SetCurrentVersion(value); return *this;}
153 
154  private:
155 
156  bool m_dryRun;
157  bool m_dryRunHasBeenSet;
158 
159  Aws::String m_prefixListId;
160  bool m_prefixListIdHasBeenSet;
161 
162  long long m_previousVersion;
163  bool m_previousVersionHasBeenSet;
164 
165  long long m_currentVersion;
166  bool m_currentVersionHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace EC2
171 } // namespace Aws
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::WithPrefixListId
RestoreManagedPrefixListVersionRequest & WithPrefixListId(const char *value)
Definition: RestoreManagedPrefixListVersionRequest.h:110
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::PreviousVersionHasBeenSet
bool PreviousVersionHasBeenSet() const
Definition: RestoreManagedPrefixListVersionRequest.h:121
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SetCurrentVersion
void SetCurrentVersion(long long value)
Definition: RestoreManagedPrefixListVersionRequest.h:147
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::CurrentVersionHasBeenSet
bool CurrentVersionHasBeenSet() const
Definition: RestoreManagedPrefixListVersionRequest.h:142
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::WithDryRun
RestoreManagedPrefixListVersionRequest & WithDryRun(bool value)
Definition: RestoreManagedPrefixListVersionRequest.h:69
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: RestoreManagedPrefixListVersionRequest.h:90
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::GetPreviousVersion
long long GetPreviousVersion() const
Definition: RestoreManagedPrefixListVersionRequest.h:116
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: RestoreManagedPrefixListVersionRequest.h:95
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::WithPreviousVersion
RestoreManagedPrefixListVersionRequest & WithPreviousVersion(long long value)
Definition: RestoreManagedPrefixListVersionRequest.h:131
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: RestoreManagedPrefixListVersionRequest.h:53
EC2Request.h
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::WithPrefixListId
RestoreManagedPrefixListVersionRequest & WithPrefixListId(const Aws::String &value)
Definition: RestoreManagedPrefixListVersionRequest.h:100
AWSString.h
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SetDryRun
void SetDryRun(bool value)
Definition: RestoreManagedPrefixListVersionRequest.h:61
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::GetCurrentVersion
long long GetCurrentVersion() const
Definition: RestoreManagedPrefixListVersionRequest.h:137
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest
Definition: RestoreManagedPrefixListVersionRequest.h:22
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: RestoreManagedPrefixListVersionRequest.h:85
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::WithPrefixListId
RestoreManagedPrefixListVersionRequest & WithPrefixListId(Aws::String &&value)
Definition: RestoreManagedPrefixListVersionRequest.h:105
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::WithCurrentVersion
RestoreManagedPrefixListVersionRequest & WithCurrentVersion(long long value)
Definition: RestoreManagedPrefixListVersionRequest.h:152
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::SetPreviousVersion
void SetPreviousVersion(long long value)
Definition: RestoreManagedPrefixListVersionRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: RestoreManagedPrefixListVersionRequest.h:80
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::GetDryRun
bool GetDryRun() const
Definition: RestoreManagedPrefixListVersionRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RestoreManagedPrefixListVersionRequest.h:30
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::RestoreManagedPrefixListVersionRequest
RestoreManagedPrefixListVersionRequest()
Aws::EC2::Model::RestoreManagedPrefixListVersionRequest::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: RestoreManagedPrefixListVersionRequest.h:75