AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreVolumeFromSnapshotRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fsx/model/RestoreOpenZFSVolumeOption.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace FSx
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "RestoreVolumeFromSnapshot"; }
34
35 AWS_FSX_API Aws::String SerializePayload() const override;
36
38
39
41
42 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
43 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
44 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
45 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
46 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
49 inline RestoreVolumeFromSnapshotRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
51
53
56 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
57 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
58 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
59 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
60 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
61 inline RestoreVolumeFromSnapshotRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
62 inline RestoreVolumeFromSnapshotRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
63 inline RestoreVolumeFromSnapshotRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
65
67
71 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
72 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
73 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
74 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
75 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
76 inline RestoreVolumeFromSnapshotRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
77 inline RestoreVolumeFromSnapshotRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
78 inline RestoreVolumeFromSnapshotRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
80
82
92 inline const Aws::Vector<RestoreOpenZFSVolumeOption>& GetOptions() const{ return m_options; }
93 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
94 inline void SetOptions(const Aws::Vector<RestoreOpenZFSVolumeOption>& value) { m_optionsHasBeenSet = true; m_options = value; }
95 inline void SetOptions(Aws::Vector<RestoreOpenZFSVolumeOption>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
98 inline RestoreVolumeFromSnapshotRequest& AddOptions(const RestoreOpenZFSVolumeOption& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
99 inline RestoreVolumeFromSnapshotRequest& AddOptions(RestoreOpenZFSVolumeOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_clientRequestToken;
104 bool m_clientRequestTokenHasBeenSet = false;
105
106 Aws::String m_volumeId;
107 bool m_volumeIdHasBeenSet = false;
108
109 Aws::String m_snapshotId;
110 bool m_snapshotIdHasBeenSet = false;
111
113 bool m_optionsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace FSx
118} // namespace Aws
const Aws::Vector< RestoreOpenZFSVolumeOption > & GetOptions() const
RestoreVolumeFromSnapshotRequest & AddOptions(const RestoreOpenZFSVolumeOption &value)
RestoreVolumeFromSnapshotRequest & WithVolumeId(const char *value)
RestoreVolumeFromSnapshotRequest & WithOptions(const Aws::Vector< RestoreOpenZFSVolumeOption > &value)
void SetOptions(Aws::Vector< RestoreOpenZFSVolumeOption > &&value)
RestoreVolumeFromSnapshotRequest & WithSnapshotId(const char *value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreVolumeFromSnapshotRequest & WithClientRequestToken(Aws::String &&value)
AWS_FSX_API Aws::String SerializePayload() const override
RestoreVolumeFromSnapshotRequest & AddOptions(RestoreOpenZFSVolumeOption &&value)
RestoreVolumeFromSnapshotRequest & WithSnapshotId(const Aws::String &value)
RestoreVolumeFromSnapshotRequest & WithClientRequestToken(const Aws::String &value)
void SetOptions(const Aws::Vector< RestoreOpenZFSVolumeOption > &value)
RestoreVolumeFromSnapshotRequest & WithClientRequestToken(const char *value)
RestoreVolumeFromSnapshotRequest & WithVolumeId(const Aws::String &value)
RestoreVolumeFromSnapshotRequest & WithOptions(Aws::Vector< RestoreOpenZFSVolumeOption > &&value)
RestoreVolumeFromSnapshotRequest & WithVolumeId(Aws::String &&value)
RestoreVolumeFromSnapshotRequest & WithSnapshotId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector