AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableFastSnapshotRestoresRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
45 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
46 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
47 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
50 inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
51 inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
52 inline EnableFastSnapshotRestoresRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
54
56
61 inline const Aws::Vector<Aws::String>& GetSourceSnapshotIds() const{ return m_sourceSnapshotIds; }
62 inline bool SourceSnapshotIdsHasBeenSet() const { return m_sourceSnapshotIdsHasBeenSet; }
63 inline void SetSourceSnapshotIds(const Aws::Vector<Aws::String>& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = value; }
64 inline void SetSourceSnapshotIds(Aws::Vector<Aws::String>&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = std::move(value); }
67 inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const Aws::String& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
68 inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(Aws::String&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(std::move(value)); return *this; }
69 inline EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const char* value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
71
73
79 inline bool GetDryRun() const{ return m_dryRun; }
80 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
81 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
82 inline EnableFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
84 private:
85
86 Aws::Vector<Aws::String> m_availabilityZones;
87 bool m_availabilityZonesHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_sourceSnapshotIds;
90 bool m_sourceSnapshotIdsHasBeenSet = false;
91
92 bool m_dryRun;
93 bool m_dryRunHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // namespace Aws
EnableFastSnapshotRestoresRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(Aws::String &&value)
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(const char *value)
EnableFastSnapshotRestoresRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetSourceSnapshotIds() const
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
EnableFastSnapshotRestoresRequest & WithSourceSnapshotIds(Aws::Vector< Aws::String > &&value)
EnableFastSnapshotRestoresRequest & WithSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
EnableFastSnapshotRestoresRequest & WithDryRun(bool value)
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const Aws::String &value)
void SetSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const char *value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector