AWS SDK for C++  1.9.65
AWS SDK for C++
EnableFastSnapshotRestoresRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "EnableFastSnapshotRestores"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
44 
48  inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
49 
53  inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
54 
58  inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
59 
63  inline EnableFastSnapshotRestoresRequest& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
64 
68  inline EnableFastSnapshotRestoresRequest& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
69 
73  inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
74 
78  inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
79 
83  inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
84 
85 
91  inline const Aws::Vector<Aws::String>& GetSourceSnapshotIds() const{ return m_sourceSnapshotIds; }
92 
98  inline bool SourceSnapshotIdsHasBeenSet() const { return m_sourceSnapshotIdsHasBeenSet; }
99 
105  inline void SetSourceSnapshotIds(const Aws::Vector<Aws::String>& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = value; }
106 
112  inline void SetSourceSnapshotIds(Aws::Vector<Aws::String>&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = std::move(value); }
113 
119  inline EnableFastSnapshotRestoresRequest& WithSourceSnapshotIds(const Aws::Vector<Aws::String>& value) { SetSourceSnapshotIds(value); return *this;}
120 
126  inline EnableFastSnapshotRestoresRequest& WithSourceSnapshotIds(Aws::Vector<Aws::String>&& value) { SetSourceSnapshotIds(std::move(value)); return *this;}
127 
133  inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const Aws::String& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
134 
140  inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(Aws::String&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(std::move(value)); return *this; }
141 
147  inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const char* value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
148 
149 
156  inline bool GetDryRun() const{ return m_dryRun; }
157 
164  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
165 
172  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
173 
180  inline EnableFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
181 
182  private:
183 
184  Aws::Vector<Aws::String> m_availabilityZones;
185  bool m_availabilityZonesHasBeenSet;
186 
187  Aws::Vector<Aws::String> m_sourceSnapshotIds;
188  bool m_sourceSnapshotIdsHasBeenSet;
189 
190  bool m_dryRun;
191  bool m_dryRunHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace EC2
196 } // namespace Aws
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SetSourceSnapshotIds
void SetSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
Definition: EnableFastSnapshotRestoresRequest.h:105
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::WithSourceSnapshotIds
EnableFastSnapshotRestoresRequest & WithSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
Definition: EnableFastSnapshotRestoresRequest.h:119
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AvailabilityZonesHasBeenSet
bool AvailabilityZonesHasBeenSet() const
Definition: EnableFastSnapshotRestoresRequest.h:48
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SetDryRun
void SetDryRun(bool value)
Definition: EnableFastSnapshotRestoresRequest.h:172
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AddSourceSnapshotIds
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(Aws::String &&value)
Definition: EnableFastSnapshotRestoresRequest.h:140
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SetAvailabilityZones
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
Definition: EnableFastSnapshotRestoresRequest.h:53
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::GetAvailabilityZones
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
Definition: EnableFastSnapshotRestoresRequest.h:43
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::WithAvailabilityZones
EnableFastSnapshotRestoresRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
Definition: EnableFastSnapshotRestoresRequest.h:68
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableFastSnapshotRestoresRequest.h:31
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: EnableFastSnapshotRestoresRequest.h:164
Aws::EC2::Model::EnableFastSnapshotRestoresRequest
Definition: EnableFastSnapshotRestoresRequest.h:23
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SetAvailabilityZones
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
Definition: EnableFastSnapshotRestoresRequest.h:58
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::GetSourceSnapshotIds
const Aws::Vector< Aws::String > & GetSourceSnapshotIds() const
Definition: EnableFastSnapshotRestoresRequest.h:91
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AddAvailabilityZones
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(const Aws::String &value)
Definition: EnableFastSnapshotRestoresRequest.h:73
AWSVector.h
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SetSourceSnapshotIds
void SetSourceSnapshotIds(Aws::Vector< Aws::String > &&value)
Definition: EnableFastSnapshotRestoresRequest.h:112
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AddSourceSnapshotIds
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const Aws::String &value)
Definition: EnableFastSnapshotRestoresRequest.h:133
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::WithDryRun
EnableFastSnapshotRestoresRequest & WithDryRun(bool value)
Definition: EnableFastSnapshotRestoresRequest.h:180
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AddAvailabilityZones
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(Aws::String &&value)
Definition: EnableFastSnapshotRestoresRequest.h:78
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::GetDryRun
bool GetDryRun() const
Definition: EnableFastSnapshotRestoresRequest.h:156
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::WithAvailabilityZones
EnableFastSnapshotRestoresRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
Definition: EnableFastSnapshotRestoresRequest.h:63
EC2Request.h
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::EnableFastSnapshotRestoresRequest
EnableFastSnapshotRestoresRequest()
AWSString.h
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::WithSourceSnapshotIds
EnableFastSnapshotRestoresRequest & WithSourceSnapshotIds(Aws::Vector< Aws::String > &&value)
Definition: EnableFastSnapshotRestoresRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::SourceSnapshotIdsHasBeenSet
bool SourceSnapshotIdsHasBeenSet() const
Definition: EnableFastSnapshotRestoresRequest.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AddAvailabilityZones
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(const char *value)
Definition: EnableFastSnapshotRestoresRequest.h:83
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::EnableFastSnapshotRestoresRequest::AddSourceSnapshotIds
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const char *value)
Definition: EnableFastSnapshotRestoresRequest.h:147