AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_EC2_API EnableFastSnapshotRestoresRequest() = default;
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 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
47 void SetAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::forward<AvailabilityZonesT>(value); }
48 template<typename AvailabilityZonesT = Aws::Vector<Aws::String>>
49 EnableFastSnapshotRestoresRequest& WithAvailabilityZones(AvailabilityZonesT&& value) { SetAvailabilityZones(std::forward<AvailabilityZonesT>(value)); return *this;}
50 template<typename AvailabilityZonesT = Aws::String>
51 EnableFastSnapshotRestoresRequest& AddAvailabilityZones(AvailabilityZonesT&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value)); return *this; }
53
55
60 inline const Aws::Vector<Aws::String>& GetSourceSnapshotIds() const { return m_sourceSnapshotIds; }
61 inline bool SourceSnapshotIdsHasBeenSet() const { return m_sourceSnapshotIdsHasBeenSet; }
62 template<typename SourceSnapshotIdsT = Aws::Vector<Aws::String>>
63 void SetSourceSnapshotIds(SourceSnapshotIdsT&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = std::forward<SourceSnapshotIdsT>(value); }
64 template<typename SourceSnapshotIdsT = Aws::Vector<Aws::String>>
65 EnableFastSnapshotRestoresRequest& WithSourceSnapshotIds(SourceSnapshotIdsT&& value) { SetSourceSnapshotIds(std::forward<SourceSnapshotIdsT>(value)); return *this;}
66 template<typename SourceSnapshotIdsT = Aws::String>
67 EnableFastSnapshotRestoresRequest& AddSourceSnapshotIds(SourceSnapshotIdsT&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.emplace_back(std::forward<SourceSnapshotIdsT>(value)); return *this; }
69
71
77 inline bool GetDryRun() const { return m_dryRun; }
78 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
79 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
80 inline EnableFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
82 private:
83
84 Aws::Vector<Aws::String> m_availabilityZones;
85 bool m_availabilityZonesHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_sourceSnapshotIds;
88 bool m_sourceSnapshotIdsHasBeenSet = false;
89
90 bool m_dryRun{false};
91 bool m_dryRunHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
EnableFastSnapshotRestoresRequest & WithSourceSnapshotIds(SourceSnapshotIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
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 & WithDryRun(bool value)
EnableFastSnapshotRestoresRequest & AddAvailabilityZones(AvailabilityZonesT &&value)
EnableFastSnapshotRestoresRequest & AddSourceSnapshotIds(SourceSnapshotIdsT &&value)
EnableFastSnapshotRestoresRequest & WithAvailabilityZones(AvailabilityZonesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector