AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateStorageProfileRequest.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 CreateStorageProfileRequest() = 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 "CreateStorageProfile"; }
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
81 inline const Aws::String& GetDisplayName() const { return m_displayName; }
82 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
83 template <typename DisplayNameT = Aws::String>
84 void SetDisplayName(DisplayNameT&& value) {
85 m_displayNameHasBeenSet = true;
86 m_displayName = std::forward<DisplayNameT>(value);
87 }
88 template <typename DisplayNameT = Aws::String>
90 SetDisplayName(std::forward<DisplayNameT>(value));
91 return *this;
92 }
94
96
99 inline StorageProfileOperatingSystemFamily GetOsFamily() const { return m_osFamily; }
100 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
102 m_osFamilyHasBeenSet = true;
103 m_osFamily = value;
104 }
106 SetOsFamily(value);
107 return *this;
108 }
110
112
115 inline const Aws::Vector<FileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
116 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
117 template <typename FileSystemLocationsT = Aws::Vector<FileSystemLocation>>
118 void SetFileSystemLocations(FileSystemLocationsT&& value) {
119 m_fileSystemLocationsHasBeenSet = true;
120 m_fileSystemLocations = std::forward<FileSystemLocationsT>(value);
121 }
122 template <typename FileSystemLocationsT = Aws::Vector<FileSystemLocation>>
124 SetFileSystemLocations(std::forward<FileSystemLocationsT>(value));
125 return *this;
126 }
127 template <typename FileSystemLocationsT = FileSystemLocation>
129 m_fileSystemLocationsHasBeenSet = true;
130 m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value));
131 return *this;
132 }
134 private:
136
137 Aws::String m_farmId;
138
139 Aws::String m_displayName;
140
142
143 Aws::Vector<FileSystemLocation> m_fileSystemLocations;
144 bool m_clientTokenHasBeenSet = true;
145 bool m_farmIdHasBeenSet = false;
146 bool m_displayNameHasBeenSet = false;
147 bool m_osFamilyHasBeenSet = false;
148 bool m_fileSystemLocationsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace deadline
153} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateStorageProfileRequest & WithOsFamily(StorageProfileOperatingSystemFamily value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
const Aws::Vector< FileSystemLocation > & GetFileSystemLocations() const
CreateStorageProfileRequest & WithFarmId(FarmIdT &&value)
AWS_DEADLINE_API CreateStorageProfileRequest()=default
CreateStorageProfileRequest & WithClientToken(ClientTokenT &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStorageProfileRequest & WithFileSystemLocations(FileSystemLocationsT &&value)
CreateStorageProfileRequest & WithDisplayName(DisplayNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetOsFamily(StorageProfileOperatingSystemFamily value)
CreateStorageProfileRequest & AddFileSystemLocations(FileSystemLocationsT &&value)
StorageProfileOperatingSystemFamily GetOsFamily() const
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