AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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); }
47 inline UpdateVolumeRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
48 inline UpdateVolumeRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
49 inline UpdateVolumeRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
51
53
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 UpdateVolumeRequest& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
63 inline UpdateVolumeRequest& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
64 inline UpdateVolumeRequest& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
66
68
71 inline const UpdateOntapVolumeConfiguration& GetOntapConfiguration() const{ return m_ontapConfiguration; }
72 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
73 inline void SetOntapConfiguration(const UpdateOntapVolumeConfiguration& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = value; }
74 inline void SetOntapConfiguration(UpdateOntapVolumeConfiguration&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::move(value); }
78
80
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline UpdateVolumeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline UpdateVolumeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline UpdateVolumeRequest& WithName(const char* value) { SetName(value); return *this;}
95
97
100 inline const UpdateOpenZFSVolumeConfiguration& GetOpenZFSConfiguration() const{ return m_openZFSConfiguration; }
101 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
102 inline void SetOpenZFSConfiguration(const UpdateOpenZFSVolumeConfiguration& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = value; }
103 inline void SetOpenZFSConfiguration(UpdateOpenZFSVolumeConfiguration&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::move(value); }
107 private:
108
109 Aws::String m_clientRequestToken;
110 bool m_clientRequestTokenHasBeenSet = false;
111
112 Aws::String m_volumeId;
113 bool m_volumeIdHasBeenSet = false;
114
115 UpdateOntapVolumeConfiguration m_ontapConfiguration;
116 bool m_ontapConfigurationHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 UpdateOpenZFSVolumeConfiguration m_openZFSConfiguration;
122 bool m_openZFSConfigurationHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace FSx
127} // namespace Aws
void SetClientRequestToken(const char *value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVolumeRequest & WithOpenZFSConfiguration(UpdateOpenZFSVolumeConfiguration &&value)
UpdateVolumeRequest & WithName(const Aws::String &value)
const Aws::String & GetVolumeId() const
UpdateVolumeRequest & WithClientRequestToken(Aws::String &&value)
UpdateVolumeRequest & WithVolumeId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetOntapConfiguration(UpdateOntapVolumeConfiguration &&value)
AWS_FSX_API Aws::String SerializePayload() const override
void SetOpenZFSConfiguration(UpdateOpenZFSVolumeConfiguration &&value)
const UpdateOntapVolumeConfiguration & GetOntapConfiguration() const
UpdateVolumeRequest & WithClientRequestToken(const Aws::String &value)
UpdateVolumeRequest & WithOntapConfiguration(const UpdateOntapVolumeConfiguration &value)
UpdateVolumeRequest & WithName(Aws::String &&value)
const UpdateOpenZFSVolumeConfiguration & GetOpenZFSConfiguration() const
UpdateVolumeRequest & WithVolumeId(const char *value)
void SetVolumeId(const Aws::String &value)
void SetName(const Aws::String &value)
UpdateVolumeRequest & WithVolumeId(Aws::String &&value)
void SetOntapConfiguration(const UpdateOntapVolumeConfiguration &value)
const Aws::String & GetName() const
UpdateVolumeRequest & WithOntapConfiguration(UpdateOntapVolumeConfiguration &&value)
UpdateVolumeRequest & WithOpenZFSConfiguration(const UpdateOpenZFSVolumeConfiguration &value)
void SetOpenZFSConfiguration(const UpdateOpenZFSVolumeConfiguration &value)
UpdateVolumeRequest & WithClientRequestToken(const char *value)
void SetClientRequestToken(const Aws::String &value)
const Aws::String & GetClientRequestToken() const
void SetClientRequestToken(Aws::String &&value)
UpdateVolumeRequest & WithName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String