AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteVolumeRequest.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/DeleteVolumeOntapConfiguration.h>
11#include <aws/fsx/model/DeleteVolumeOpenZFSConfiguration.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 DeleteVolumeRequest() = 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 "DeleteVolume"; }
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 DeleteVolumeRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
49
51
54 inline const Aws::String& GetVolumeId() const { return m_volumeId; }
55 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
56 template<typename VolumeIdT = Aws::String>
57 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::forward<VolumeIdT>(value); }
58 template<typename VolumeIdT = Aws::String>
59 DeleteVolumeRequest& WithVolumeId(VolumeIdT&& value) { SetVolumeId(std::forward<VolumeIdT>(value)); return *this;}
61
63
68 inline const DeleteVolumeOntapConfiguration& GetOntapConfiguration() const { return m_ontapConfiguration; }
69 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
70 template<typename OntapConfigurationT = DeleteVolumeOntapConfiguration>
71 void SetOntapConfiguration(OntapConfigurationT&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::forward<OntapConfigurationT>(value); }
72 template<typename OntapConfigurationT = DeleteVolumeOntapConfiguration>
73 DeleteVolumeRequest& WithOntapConfiguration(OntapConfigurationT&& value) { SetOntapConfiguration(std::forward<OntapConfigurationT>(value)); return *this;}
75
77
81 inline const DeleteVolumeOpenZFSConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
82 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
83 template<typename OpenZFSConfigurationT = DeleteVolumeOpenZFSConfiguration>
84 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value); }
85 template<typename OpenZFSConfigurationT = DeleteVolumeOpenZFSConfiguration>
86 DeleteVolumeRequest& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) { SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value)); return *this;}
88 private:
89
90 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
91 bool m_clientRequestTokenHasBeenSet = true;
92
93 Aws::String m_volumeId;
94 bool m_volumeIdHasBeenSet = false;
95
96 DeleteVolumeOntapConfiguration m_ontapConfiguration;
97 bool m_ontapConfigurationHasBeenSet = false;
98
99 DeleteVolumeOpenZFSConfiguration m_openZFSConfiguration;
100 bool m_openZFSConfigurationHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace FSx
105} // namespace Aws
DeleteVolumeRequest & WithVolumeId(VolumeIdT &&value)
const DeleteVolumeOntapConfiguration & GetOntapConfiguration() const
AWS_FSX_API Aws::String SerializePayload() const override
void SetOpenZFSConfiguration(OpenZFSConfigurationT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_FSX_API DeleteVolumeRequest()=default
DeleteVolumeRequest & WithOpenZFSConfiguration(OpenZFSConfigurationT &&value)
DeleteVolumeRequest & WithClientRequestToken(ClientRequestTokenT &&value)
DeleteVolumeRequest & WithOntapConfiguration(OntapConfigurationT &&value)
void SetOntapConfiguration(OntapConfigurationT &&value)
const Aws::String & GetClientRequestToken() const
virtual const char * GetServiceRequestName() const override
const DeleteVolumeOpenZFSConfiguration & GetOpenZFSConfiguration() const
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetVolumeId() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String