AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVolumeRequest.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/VolumeType.h>
11#include <aws/fsx/model/CreateOntapVolumeConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/fsx/model/CreateOpenZFSVolumeConfiguration.h>
14#include <aws/fsx/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace FSx
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_FSX_API CreateVolumeRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateVolume"; }
37
38 AWS_FSX_API Aws::String SerializePayload() const override;
39
41
42
44
45 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
46 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
47 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
48 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
49 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
50 inline CreateVolumeRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
51 inline CreateVolumeRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
52 inline CreateVolumeRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
54
56
60 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
61 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
62 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
63 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
64 inline CreateVolumeRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
65 inline CreateVolumeRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline CreateVolumeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline CreateVolumeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline CreateVolumeRequest& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const CreateOntapVolumeConfiguration& GetOntapConfiguration() const{ return m_ontapConfiguration; }
87 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
88 inline void SetOntapConfiguration(const CreateOntapVolumeConfiguration& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = value; }
89 inline void SetOntapConfiguration(CreateOntapVolumeConfiguration&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::move(value); }
93
95
96 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
99 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
100 inline CreateVolumeRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
101 inline CreateVolumeRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
102 inline CreateVolumeRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
103 inline CreateVolumeRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
105
107
110 inline const CreateOpenZFSVolumeConfiguration& GetOpenZFSConfiguration() const{ return m_openZFSConfiguration; }
111 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
112 inline void SetOpenZFSConfiguration(const CreateOpenZFSVolumeConfiguration& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = value; }
113 inline void SetOpenZFSConfiguration(CreateOpenZFSVolumeConfiguration&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::move(value); }
117 private:
118
119 Aws::String m_clientRequestToken;
120 bool m_clientRequestTokenHasBeenSet = false;
121
122 VolumeType m_volumeType;
123 bool m_volumeTypeHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 CreateOntapVolumeConfiguration m_ontapConfiguration;
129 bool m_ontapConfigurationHasBeenSet = false;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_tagsHasBeenSet = false;
133
134 CreateOpenZFSVolumeConfiguration m_openZFSConfiguration;
135 bool m_openZFSConfigurationHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace FSx
140} // namespace Aws
void SetOntapConfiguration(const CreateOntapVolumeConfiguration &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateVolumeRequest & WithClientRequestToken(Aws::String &&value)
void SetOpenZFSConfiguration(const CreateOpenZFSVolumeConfiguration &value)
const Aws::Vector< Tag > & GetTags() const
void SetOpenZFSConfiguration(CreateOpenZFSVolumeConfiguration &&value)
virtual const char * GetServiceRequestName() const override
void SetVolumeType(const VolumeType &value)
void SetClientRequestToken(Aws::String &&value)
CreateVolumeRequest & WithOpenZFSConfiguration(CreateOpenZFSVolumeConfiguration &&value)
const VolumeType & GetVolumeType() const
CreateVolumeRequest & WithClientRequestToken(const Aws::String &value)
CreateVolumeRequest & WithOntapConfiguration(const CreateOntapVolumeConfiguration &value)
const CreateOntapVolumeConfiguration & GetOntapConfiguration() const
const Aws::String & GetName() const
CreateVolumeRequest & WithOpenZFSConfiguration(const CreateOpenZFSVolumeConfiguration &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetOntapConfiguration(CreateOntapVolumeConfiguration &&value)
CreateVolumeRequest & AddTags(const Tag &value)
const CreateOpenZFSVolumeConfiguration & GetOpenZFSConfiguration() const
CreateVolumeRequest & WithTags(Aws::Vector< Tag > &&value)
CreateVolumeRequest & WithOntapConfiguration(CreateOntapVolumeConfiguration &&value)
CreateVolumeRequest & WithVolumeType(const VolumeType &value)
void SetClientRequestToken(const char *value)
CreateVolumeRequest & AddTags(Tag &&value)
void SetName(const Aws::String &value)
CreateVolumeRequest & WithName(Aws::String &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API Aws::String SerializePayload() const override
CreateVolumeRequest & WithName(const char *value)
const Aws::String & GetClientRequestToken() const
CreateVolumeRequest & WithTags(const Aws::Vector< Tag > &value)
CreateVolumeRequest & WithClientRequestToken(const char *value)
CreateVolumeRequest & WithName(const Aws::String &value)
CreateVolumeRequest & WithVolumeType(VolumeType &&value)
void SetClientRequestToken(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