AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopySnapshotAndUpdateVolumeRequest.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/fsx/model/OpenZFSCopyStrategy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/fsx/model/UpdateOpenZFSVolumeOption.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace FSx
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CopySnapshotAndUpdateVolume"; }
35
36 AWS_FSX_API Aws::String SerializePayload() const override;
37
39
40
42
43 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
44 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
45 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
46 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
47 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
50 inline CopySnapshotAndUpdateVolumeRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
52
54
57 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
58 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
59 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
60 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
61 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
62 inline CopySnapshotAndUpdateVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
63 inline CopySnapshotAndUpdateVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
64 inline CopySnapshotAndUpdateVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
66
68
69 inline const Aws::String& GetSourceSnapshotARN() const{ return m_sourceSnapshotARN; }
70 inline bool SourceSnapshotARNHasBeenSet() const { return m_sourceSnapshotARNHasBeenSet; }
71 inline void SetSourceSnapshotARN(const Aws::String& value) { m_sourceSnapshotARNHasBeenSet = true; m_sourceSnapshotARN = value; }
72 inline void SetSourceSnapshotARN(Aws::String&& value) { m_sourceSnapshotARNHasBeenSet = true; m_sourceSnapshotARN = std::move(value); }
73 inline void SetSourceSnapshotARN(const char* value) { m_sourceSnapshotARNHasBeenSet = true; m_sourceSnapshotARN.assign(value); }
76 inline CopySnapshotAndUpdateVolumeRequest& WithSourceSnapshotARN(const char* value) { SetSourceSnapshotARN(value); return *this;}
78
80
88 inline const OpenZFSCopyStrategy& GetCopyStrategy() const{ return m_copyStrategy; }
89 inline bool CopyStrategyHasBeenSet() const { return m_copyStrategyHasBeenSet; }
90 inline void SetCopyStrategy(const OpenZFSCopyStrategy& value) { m_copyStrategyHasBeenSet = true; m_copyStrategy = value; }
91 inline void SetCopyStrategy(OpenZFSCopyStrategy&& value) { m_copyStrategyHasBeenSet = true; m_copyStrategy = std::move(value); }
95
97
111 inline const Aws::Vector<UpdateOpenZFSVolumeOption>& GetOptions() const{ return m_options; }
112 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
113 inline void SetOptions(const Aws::Vector<UpdateOpenZFSVolumeOption>& value) { m_optionsHasBeenSet = true; m_options = value; }
114 inline void SetOptions(Aws::Vector<UpdateOpenZFSVolumeOption>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
117 inline CopySnapshotAndUpdateVolumeRequest& AddOptions(const UpdateOpenZFSVolumeOption& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
118 inline CopySnapshotAndUpdateVolumeRequest& AddOptions(UpdateOpenZFSVolumeOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
120 private:
121
122 Aws::String m_clientRequestToken;
123 bool m_clientRequestTokenHasBeenSet = false;
124
125 Aws::String m_volumeId;
126 bool m_volumeIdHasBeenSet = false;
127
128 Aws::String m_sourceSnapshotARN;
129 bool m_sourceSnapshotARNHasBeenSet = false;
130
131 OpenZFSCopyStrategy m_copyStrategy;
132 bool m_copyStrategyHasBeenSet = false;
133
135 bool m_optionsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace FSx
140} // namespace Aws
CopySnapshotAndUpdateVolumeRequest & WithOptions(Aws::Vector< UpdateOpenZFSVolumeOption > &&value)
CopySnapshotAndUpdateVolumeRequest & WithCopyStrategy(OpenZFSCopyStrategy &&value)
CopySnapshotAndUpdateVolumeRequest & WithSourceSnapshotARN(Aws::String &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopySnapshotAndUpdateVolumeRequest & WithOptions(const Aws::Vector< UpdateOpenZFSVolumeOption > &value)
CopySnapshotAndUpdateVolumeRequest & WithSourceSnapshotARN(const char *value)
CopySnapshotAndUpdateVolumeRequest & WithClientRequestToken(const char *value)
CopySnapshotAndUpdateVolumeRequest & WithSourceSnapshotARN(const Aws::String &value)
CopySnapshotAndUpdateVolumeRequest & WithVolumeId(const char *value)
void SetOptions(Aws::Vector< UpdateOpenZFSVolumeOption > &&value)
CopySnapshotAndUpdateVolumeRequest & WithCopyStrategy(const OpenZFSCopyStrategy &value)
AWS_FSX_API Aws::String SerializePayload() const override
CopySnapshotAndUpdateVolumeRequest & AddOptions(const UpdateOpenZFSVolumeOption &value)
CopySnapshotAndUpdateVolumeRequest & WithClientRequestToken(Aws::String &&value)
CopySnapshotAndUpdateVolumeRequest & WithClientRequestToken(const Aws::String &value)
void SetOptions(const Aws::Vector< UpdateOpenZFSVolumeOption > &value)
CopySnapshotAndUpdateVolumeRequest & WithVolumeId(Aws::String &&value)
CopySnapshotAndUpdateVolumeRequest & AddOptions(UpdateOpenZFSVolumeOption &&value)
const Aws::Vector< UpdateOpenZFSVolumeOption > & GetOptions() const
CopySnapshotAndUpdateVolumeRequest & WithVolumeId(const 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