AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisableFastSnapshotRestoresRequest.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 "DisableFastSnapshotRestores"; }
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 DisableFastSnapshotRestoresRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
51 inline DisableFastSnapshotRestoresRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
52 inline DisableFastSnapshotRestoresRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
54
56
60 inline const Aws::Vector<Aws::String>& GetSourceSnapshotIds() const{ return m_sourceSnapshotIds; }
61 inline bool SourceSnapshotIdsHasBeenSet() const { return m_sourceSnapshotIdsHasBeenSet; }
62 inline void SetSourceSnapshotIds(const Aws::Vector<Aws::String>& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = value; }
63 inline void SetSourceSnapshotIds(Aws::Vector<Aws::String>&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds = std::move(value); }
66 inline DisableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const Aws::String& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
67 inline DisableFastSnapshotRestoresRequest& AddSourceSnapshotIds(Aws::String&& value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(std::move(value)); return *this; }
68 inline DisableFastSnapshotRestoresRequest& AddSourceSnapshotIds(const char* value) { m_sourceSnapshotIdsHasBeenSet = true; m_sourceSnapshotIds.push_back(value); return *this; }
70
72
78 inline bool GetDryRun() const{ return m_dryRun; }
79 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
80 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
81 inline DisableFastSnapshotRestoresRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
83 private:
84
85 Aws::Vector<Aws::String> m_availabilityZones;
86 bool m_availabilityZonesHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_sourceSnapshotIds;
89 bool m_sourceSnapshotIdsHasBeenSet = false;
90
91 bool m_dryRun;
92 bool m_dryRunHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
DisableFastSnapshotRestoresRequest & AddSourceSnapshotIds(Aws::String &&value)
DisableFastSnapshotRestoresRequest & AddAvailabilityZones(Aws::String &&value)
DisableFastSnapshotRestoresRequest & AddAvailabilityZones(const Aws::String &value)
DisableFastSnapshotRestoresRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
DisableFastSnapshotRestoresRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DisableFastSnapshotRestoresRequest & AddAvailabilityZones(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DisableFastSnapshotRestoresRequest & WithDryRun(bool value)
void SetSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
DisableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const char *value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
DisableFastSnapshotRestoresRequest & AddSourceSnapshotIds(const Aws::String &value)
DisableFastSnapshotRestoresRequest & WithSourceSnapshotIds(Aws::Vector< Aws::String > &&value)
DisableFastSnapshotRestoresRequest & WithSourceSnapshotIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector