AWS SDK for C++  1.9.16
AWS SDK for C++
DisableFastSnapshotRestoresRequest.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 "DisableFastSnapshotRestores"; }
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 DisableFastSnapshotRestoresRequest& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
64 
68  inline DisableFastSnapshotRestoresRequest& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
69 
73  inline DisableFastSnapshotRestoresRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
74 
78  inline DisableFastSnapshotRestoresRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
79 
83  inline DisableFastSnapshotRestoresRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
84 
85 
90  inline const Aws::Vector<Aws::String>& GetSourceSnapshotIds() const{ return m_sourceSnapshotIds; }
91 
96  inline bool SourceSnapshotIdsHasBeenSet() const { return m_sourceSnapshotIdsHasBeenSet; }
97 
102  inline void SetSourceSnapshotIds(const Aws::Vector<Aws::String>& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = value; }
103 
108  inline void SetSourceSnapshotIds(Aws::Vector<Aws::String>&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = std::move(value); }
109 
114  inline DisableFastSnapshotRestoresRequest& WithSourceSnapshotIds(const Aws::Vector<Aws::String>& value) { SetSourceSnapshotIds(value); return *this;}
115 
120  inline DisableFastSnapshotRestoresRequest& WithSourceSnapshotIds(Aws::Vector<Aws::String>&& value) { SetSourceSnapshotIds(std::move(value)); return *this;}
121 
126  inline DisableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const Aws::String& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
127 
132  inline DisableFastSnapshotRestoresRequest& AddSourceSnapshotIds(Aws::String&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(std::move(value)); return *this; }
133 
138  inline DisableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const char* value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
139 
140 
147  inline bool GetDryRun() const{ return m_dryRun; }
148 
155  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
156 
163  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
164 
171  inline DisableFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
172 
173  private:
174 
175  Aws::Vector<Aws::String> m_availabilityZones;
176  bool m_availabilityZonesHasBeenSet;
177 
178  Aws::Vector<Aws::String> m_sourceSnapshotIds;
179  bool m_sourceSnapshotIdsHasBeenSet;
180 
181  bool m_dryRun;
182  bool m_dryRunHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace EC2
187 } // namespace Aws
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::WithAvailabilityZones
DisableFastSnapshotRestoresRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
Definition: DisableFastSnapshotRestoresRequest.h:63
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::WithDryRun
DisableFastSnapshotRestoresRequest & WithDryRun(bool value)
Definition: DisableFastSnapshotRestoresRequest.h:171
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::WithSourceSnapshotIds
DisableFastSnapshotRestoresRequest & WithSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
Definition: DisableFastSnapshotRestoresRequest.h:114
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::WithAvailabilityZones
DisableFastSnapshotRestoresRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
Definition: DisableFastSnapshotRestoresRequest.h:68
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::GetAvailabilityZones
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
Definition: DisableFastSnapshotRestoresRequest.h:43
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SetSourceSnapshotIds
void SetSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
Definition: DisableFastSnapshotRestoresRequest.h:102
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SetAvailabilityZones
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
Definition: DisableFastSnapshotRestoresRequest.h:53
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SetAvailabilityZones
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
Definition: DisableFastSnapshotRestoresRequest.h:58
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AddAvailabilityZones
DisableFastSnapshotRestoresRequest & AddAvailabilityZones(const Aws::String &value)
Definition: DisableFastSnapshotRestoresRequest.h:73
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AddSourceSnapshotIds
DisableFastSnapshotRestoresRequest & AddSourceSnapshotIds(Aws::String &&value)
Definition: DisableFastSnapshotRestoresRequest.h:132
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DisableFastSnapshotRestoresRequest.h:155
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SourceSnapshotIdsHasBeenSet
bool SourceSnapshotIdsHasBeenSet() const
Definition: DisableFastSnapshotRestoresRequest.h:96
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::DisableFastSnapshotRestoresRequest
DisableFastSnapshotRestoresRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AvailabilityZonesHasBeenSet
bool AvailabilityZonesHasBeenSet() const
Definition: DisableFastSnapshotRestoresRequest.h:48
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SetDryRun
void SetDryRun(bool value)
Definition: DisableFastSnapshotRestoresRequest.h:163
AWSVector.h
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::WithSourceSnapshotIds
DisableFastSnapshotRestoresRequest & WithSourceSnapshotIds(Aws::Vector< Aws::String > &&value)
Definition: DisableFastSnapshotRestoresRequest.h:120
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AddSourceSnapshotIds
DisableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const Aws::String &value)
Definition: DisableFastSnapshotRestoresRequest.h:126
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DisableFastSnapshotRestoresRequest
Definition: DisableFastSnapshotRestoresRequest.h:23
EC2Request.h
AWSString.h
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AddAvailabilityZones
DisableFastSnapshotRestoresRequest & AddAvailabilityZones(Aws::String &&value)
Definition: DisableFastSnapshotRestoresRequest.h:78
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AddAvailabilityZones
DisableFastSnapshotRestoresRequest & AddAvailabilityZones(const char *value)
Definition: DisableFastSnapshotRestoresRequest.h:83
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::GetSourceSnapshotIds
const Aws::Vector< Aws::String > & GetSourceSnapshotIds() const
Definition: DisableFastSnapshotRestoresRequest.h:90
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisableFastSnapshotRestoresRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::GetDryRun
bool GetDryRun() const
Definition: DisableFastSnapshotRestoresRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::SetSourceSnapshotIds
void SetSourceSnapshotIds(Aws::Vector< Aws::String > &&value)
Definition: DisableFastSnapshotRestoresRequest.h:108
Aws::EC2::Model::DisableFastSnapshotRestoresRequest::AddSourceSnapshotIds
DisableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const char *value)
Definition: DisableFastSnapshotRestoresRequest.h:138