AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStorageProfileRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/StorageProfileOperatingSystemFamily.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/deadline/model/FileSystemLocation.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace deadline
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DEADLINE_API CreateStorageProfileRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateStorageProfile"; }
35
36 AWS_DEADLINE_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template<typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
50 template<typename ClientTokenT = Aws::String>
51 CreateStorageProfileRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetFarmId() const { return m_farmId; }
59 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
60 template<typename FarmIdT = Aws::String>
61 void SetFarmId(FarmIdT&& value) { m_farmIdHasBeenSet = true; m_farmId = std::forward<FarmIdT>(value); }
62 template<typename FarmIdT = Aws::String>
63 CreateStorageProfileRequest& WithFarmId(FarmIdT&& value) { SetFarmId(std::forward<FarmIdT>(value)); return *this;}
65
67
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 template<typename DisplayNameT = Aws::String>
76 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
77 template<typename DisplayNameT = Aws::String>
78 CreateStorageProfileRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
80
82
85 inline StorageProfileOperatingSystemFamily GetOsFamily() const { return m_osFamily; }
86 inline bool OsFamilyHasBeenSet() const { return m_osFamilyHasBeenSet; }
87 inline void SetOsFamily(StorageProfileOperatingSystemFamily value) { m_osFamilyHasBeenSet = true; m_osFamily = value; }
90
92
95 inline const Aws::Vector<FileSystemLocation>& GetFileSystemLocations() const { return m_fileSystemLocations; }
96 inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; }
97 template<typename FileSystemLocationsT = Aws::Vector<FileSystemLocation>>
98 void SetFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = std::forward<FileSystemLocationsT>(value); }
99 template<typename FileSystemLocationsT = Aws::Vector<FileSystemLocation>>
100 CreateStorageProfileRequest& WithFileSystemLocations(FileSystemLocationsT&& value) { SetFileSystemLocations(std::forward<FileSystemLocationsT>(value)); return *this;}
101 template<typename FileSystemLocationsT = FileSystemLocation>
102 CreateStorageProfileRequest& AddFileSystemLocations(FileSystemLocationsT&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.emplace_back(std::forward<FileSystemLocationsT>(value)); return *this; }
104 private:
105
107 bool m_clientTokenHasBeenSet = true;
108
109 Aws::String m_farmId;
110 bool m_farmIdHasBeenSet = false;
111
112 Aws::String m_displayName;
113 bool m_displayNameHasBeenSet = false;
114
116 bool m_osFamilyHasBeenSet = false;
117
118 Aws::Vector<FileSystemLocation> m_fileSystemLocations;
119 bool m_fileSystemLocationsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace deadline
124} // 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