AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateStorageProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/DeadlineRequest.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/FileSystemLocation.h>
13#include <aws/deadline/model/StorageProfileOperatingSystemFamily.h>
14
15#include <utility>
16
17namespace Aws {
18namespace deadline {
19namespace Model {
20
24 public:
25 AWS_DEADLINE_API UpdateStorageProfileRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateStorageProfile"; }
32
33 AWS_DEADLINE_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFarmId() const { return m_farmId; }
61 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
62 template <typename FarmIdT = Aws::String>
63 void SetFarmId(FarmIdT&& value) {
64 m_farmIdHasBeenSet = true;
65 m_farmId = std::forward<FarmIdT>(value);
66 }
67 template <typename FarmIdT = Aws::String>
69 SetFarmId(std::forward<FarmIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStorageProfileId() const { return m_storageProfileId; }
79 inline bool StorageProfileIdHasBeenSet() const { return m_storageProfileIdHasBeenSet; }
80 template <typename StorageProfileIdT = Aws::String>
81 void SetStorageProfileId(StorageProfileIdT&& value) {
82 m_storageProfileIdHasBeenSet = true;
83 m_storageProfileId = std::forward<StorageProfileIdT>(value);
84 }
85 template <typename StorageProfileIdT = Aws::String>
87 SetStorageProfileId(std::forward<StorageProfileIdT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::String& GetDisplayName() const { return m_displayName; }
100 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
101 template <typename DisplayNameT = Aws::String>
102 void SetDisplayName(DisplayNameT&& value) {
103 m_displayNameHasBeenSet = true;
104 m_displayName = std::forward<DisplayNameT>(value);
105 }
106 template <typename DisplayNameT = Aws::String>
108 SetDisplayName(std::forward<DisplayNameT>(value));
109 return *this;
110 }
112
114
117 inline StorageProfileOperatingSystemFamily GetOsFamily() const { return m_osFamily; }
118 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
120 m_osFamilyHasBeenSet = true;
121 m_osFamily = value;
122 }
124 SetOsFamily(value);
125 return *this;
126 }
128
130
133 inline const Aws::Vector<FileSystemLocation>& GetFileSystemLocationsToAdd() const { return m_fileSystemLocationsToAdd; }
134 inline bool FileSystemLocationsToAddHasBeenSet() const { return m_fileSystemLocationsToAddHasBeenSet; }
135 template <typename FileSystemLocationsToAddT = Aws::Vector<FileSystemLocation>>
136 void SetFileSystemLocationsToAdd(FileSystemLocationsToAddT&& value) {
137 m_fileSystemLocationsToAddHasBeenSet = true;
138 m_fileSystemLocationsToAdd = std::forward<FileSystemLocationsToAddT>(value);
139 }
140 template <typename FileSystemLocationsToAddT = Aws::Vector<FileSystemLocation>>
141 UpdateStorageProfileRequest& WithFileSystemLocationsToAdd(FileSystemLocationsToAddT&& value) {
142 SetFileSystemLocationsToAdd(std::forward<FileSystemLocationsToAddT>(value));
143 return *this;
144 }
145 template <typename FileSystemLocationsToAddT = FileSystemLocation>
146 UpdateStorageProfileRequest& AddFileSystemLocationsToAdd(FileSystemLocationsToAddT&& value) {
147 m_fileSystemLocationsToAddHasBeenSet = true;
148 m_fileSystemLocationsToAdd.emplace_back(std::forward<FileSystemLocationsToAddT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Vector<FileSystemLocation>& GetFileSystemLocationsToRemove() const { return m_fileSystemLocationsToRemove; }
158 inline bool FileSystemLocationsToRemoveHasBeenSet() const { return m_fileSystemLocationsToRemoveHasBeenSet; }
159 template <typename FileSystemLocationsToRemoveT = Aws::Vector<FileSystemLocation>>
160 void SetFileSystemLocationsToRemove(FileSystemLocationsToRemoveT&& value) {
161 m_fileSystemLocationsToRemoveHasBeenSet = true;
162 m_fileSystemLocationsToRemove = std::forward<FileSystemLocationsToRemoveT>(value);
163 }
164 template <typename FileSystemLocationsToRemoveT = Aws::Vector<FileSystemLocation>>
165 UpdateStorageProfileRequest& WithFileSystemLocationsToRemove(FileSystemLocationsToRemoveT&& value) {
166 SetFileSystemLocationsToRemove(std::forward<FileSystemLocationsToRemoveT>(value));
167 return *this;
168 }
169 template <typename FileSystemLocationsToRemoveT = FileSystemLocation>
170 UpdateStorageProfileRequest& AddFileSystemLocationsToRemove(FileSystemLocationsToRemoveT&& value) {
171 m_fileSystemLocationsToRemoveHasBeenSet = true;
172 m_fileSystemLocationsToRemove.emplace_back(std::forward<FileSystemLocationsToRemoveT>(value));
173 return *this;
174 }
176 private:
178
179 Aws::String m_farmId;
180
181 Aws::String m_storageProfileId;
182
183 Aws::String m_displayName;
184
186
187 Aws::Vector<FileSystemLocation> m_fileSystemLocationsToAdd;
188
189 Aws::Vector<FileSystemLocation> m_fileSystemLocationsToRemove;
190 bool m_clientTokenHasBeenSet = true;
191 bool m_farmIdHasBeenSet = false;
192 bool m_storageProfileIdHasBeenSet = false;
193 bool m_displayNameHasBeenSet = false;
194 bool m_osFamilyHasBeenSet = false;
195 bool m_fileSystemLocationsToAddHasBeenSet = false;
196 bool m_fileSystemLocationsToRemoveHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace deadline
201} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateStorageProfileRequest & WithFileSystemLocationsToRemove(FileSystemLocationsToRemoveT &&value)
virtual const char * GetServiceRequestName() const override
UpdateStorageProfileRequest & WithStorageProfileId(StorageProfileIdT &&value)
void SetFileSystemLocationsToRemove(FileSystemLocationsToRemoveT &&value)
void SetOsFamily(StorageProfileOperatingSystemFamily value)
StorageProfileOperatingSystemFamily GetOsFamily() const
const Aws::Vector< FileSystemLocation > & GetFileSystemLocationsToRemove() const
const Aws::Vector< FileSystemLocation > & GetFileSystemLocationsToAdd() const
UpdateStorageProfileRequest & AddFileSystemLocationsToAdd(FileSystemLocationsToAddT &&value)
UpdateStorageProfileRequest & AddFileSystemLocationsToRemove(FileSystemLocationsToRemoveT &&value)
UpdateStorageProfileRequest & WithClientToken(ClientTokenT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateStorageProfileRequest & WithFileSystemLocationsToAdd(FileSystemLocationsToAddT &&value)
AWS_DEADLINE_API UpdateStorageProfileRequest()=default
UpdateStorageProfileRequest & WithDisplayName(DisplayNameT &&value)
UpdateStorageProfileRequest & WithFarmId(FarmIdT &&value)
void SetFileSystemLocationsToAdd(FileSystemLocationsToAddT &&value)
UpdateStorageProfileRequest & WithOsFamily(StorageProfileOperatingSystemFamily value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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