AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateVolumeRequest.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/UpdateOntapVolumeConfiguration.h>
11#include <aws/fsx/model/UpdateOpenZFSVolumeConfiguration.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:
27 AWS_FSX_API UpdateVolumeRequest() = default;
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 "UpdateVolume"; }
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 template<typename ClientRequestTokenT = Aws::String>
45 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
46 template<typename ClientRequestTokenT = Aws::String>
47 UpdateVolumeRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
49
51
55 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
56 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
57 template<typename VolumeIdT = Aws::String>
58 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
59 template<typename VolumeIdT = Aws::String>
60 UpdateVolumeRequest& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
62
64
67 inline const UpdateOntapVolumeConfiguration& GetOntapConfiguration() const { return m_ontapConfiguration; }
68 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
69 template<typename OntapConfigurationT = UpdateOntapVolumeConfiguration>
70 void SetOntapConfiguration(OntapConfigurationT&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::forward<OntapConfigurationT>(value); }
71 template<typename OntapConfigurationT = UpdateOntapVolumeConfiguration>
72 UpdateVolumeRequest& WithOntapConfiguration(OntapConfigurationT&& value) { SetOntapConfiguration(std::forward<OntapConfigurationT>(value)); return *this;}
74
76
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template<typename NameT = Aws::String>
85 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 UpdateVolumeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
94 inline const UpdateOpenZFSVolumeConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
95 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
96 template<typename OpenZFSConfigurationT = UpdateOpenZFSVolumeConfiguration>
97 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value); }
98 template<typename OpenZFSConfigurationT = UpdateOpenZFSVolumeConfiguration>
99 UpdateVolumeRequest& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) { SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value)); return *this;}
101 private:
102
103 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
104 bool m_clientRequestTokenHasBeenSet = true;
105
106 Aws::String m_volumeId;
107 bool m_volumeIdHasBeenSet = false;
108
109 UpdateOntapVolumeConfiguration m_ontapConfiguration;
110 bool m_ontapConfigurationHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 UpdateOpenZFSVolumeConfiguration m_openZFSConfiguration;
116 bool m_openZFSConfigurationHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace FSx
121} // 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