AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/FSxRequest.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/UpdateOntapVolumeConfiguration.h>
12#include <aws/fsx/model/UpdateOpenZFSVolumeConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace FSx {
18namespace Model {
19
23 public:
24 AWS_FSX_API UpdateVolumeRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateVolume"; }
31
32 AWS_FSX_API Aws::String SerializePayload() const override;
33
35
37
38 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
39 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
40 template <typename ClientRequestTokenT = Aws::String>
41 void SetClientRequestToken(ClientRequestTokenT&& value) {
42 m_clientRequestTokenHasBeenSet = true;
43 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
44 }
45 template <typename ClientRequestTokenT = Aws::String>
46 UpdateVolumeRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
47 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
58 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
59 template <typename VolumeIdT = Aws::String>
60 void SetVolumeId(VolumeIdT&& value) {
61 m_volumeIdHasBeenSet = true;
62 m_volumeId = std::forward<VolumeIdT>(value);
63 }
64 template <typename VolumeIdT = Aws::String>
65 UpdateVolumeRequest& WithVolumeId(VolumeIdT&& value) {
66 SetVolumeId(std::forward<VolumeIdT>(value));
67 return *this;
68 }
70
72
75 inline const UpdateOntapVolumeConfiguration& GetOntapConfiguration() const { return m_ontapConfiguration; }
76 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
77 template <typename OntapConfigurationT = UpdateOntapVolumeConfiguration>
78 void SetOntapConfiguration(OntapConfigurationT&& value) {
79 m_ontapConfigurationHasBeenSet = true;
80 m_ontapConfiguration = std::forward<OntapConfigurationT>(value);
81 }
82 template <typename OntapConfigurationT = UpdateOntapVolumeConfiguration>
83 UpdateVolumeRequest& WithOntapConfiguration(OntapConfigurationT&& value) {
84 SetOntapConfiguration(std::forward<OntapConfigurationT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const UpdateOpenZFSVolumeConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
115 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
116 template <typename OpenZFSConfigurationT = UpdateOpenZFSVolumeConfiguration>
117 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) {
118 m_openZFSConfigurationHasBeenSet = true;
119 m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value);
120 }
121 template <typename OpenZFSConfigurationT = UpdateOpenZFSVolumeConfiguration>
122 UpdateVolumeRequest& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) {
123 SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
129
130 Aws::String m_volumeId;
131
132 UpdateOntapVolumeConfiguration m_ontapConfiguration;
133
134 Aws::String m_name;
135
136 UpdateOpenZFSVolumeConfiguration m_openZFSConfiguration;
137 bool m_clientRequestTokenHasBeenSet = true;
138 bool m_volumeIdHasBeenSet = false;
139 bool m_ontapConfigurationHasBeenSet = false;
140 bool m_nameHasBeenSet = false;
141 bool m_openZFSConfigurationHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace FSx
146} // namespace Aws
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetVolumeId() const
UpdateVolumeRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateVolumeRequest & WithName(NameT &&value)
UpdateVolumeRequest & WithOpenZFSConfiguration(OpenZFSConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FSX_API UpdateVolumeRequest()=default
void SetOpenZFSConfiguration(OpenZFSConfigurationT &&value)
AWS_FSX_API Aws::String SerializePayload() const override
const UpdateOntapVolumeConfiguration & GetOntapConfiguration() const
const UpdateOpenZFSVolumeConfiguration & GetOpenZFSConfiguration() const
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetName() const
void SetOntapConfiguration(OntapConfigurationT &&value)
UpdateVolumeRequest & WithOntapConfiguration(OntapConfigurationT &&value)
const Aws::String & GetClientRequestToken() const
UpdateVolumeRequest & WithVolumeId(VolumeIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String