AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateFileCacheRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/FSxRequest.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/UpdateFileCacheLustreConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace FSx {
17namespace Model {
18
22 public:
23 AWS_FSX_API UpdateFileCacheRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateFileCache"; }
30
31 AWS_FSX_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
40 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
41 template <typename FileCacheIdT = Aws::String>
42 void SetFileCacheId(FileCacheIdT&& value) {
43 m_fileCacheIdHasBeenSet = true;
44 m_fileCacheId = std::forward<FileCacheIdT>(value);
45 }
46 template <typename FileCacheIdT = Aws::String>
47 UpdateFileCacheRequest& WithFileCacheId(FileCacheIdT&& value) {
48 SetFileCacheId(std::forward<FileCacheIdT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
56 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
57 template <typename ClientRequestTokenT = Aws::String>
58 void SetClientRequestToken(ClientRequestTokenT&& value) {
59 m_clientRequestTokenHasBeenSet = true;
60 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
61 }
62 template <typename ClientRequestTokenT = Aws::String>
63 UpdateFileCacheRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
64 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
65 return *this;
66 }
68
70
73 inline const UpdateFileCacheLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
74 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
75 template <typename LustreConfigurationT = UpdateFileCacheLustreConfiguration>
76 void SetLustreConfiguration(LustreConfigurationT&& value) {
77 m_lustreConfigurationHasBeenSet = true;
78 m_lustreConfiguration = std::forward<LustreConfigurationT>(value);
79 }
80 template <typename LustreConfigurationT = UpdateFileCacheLustreConfiguration>
81 UpdateFileCacheRequest& WithLustreConfiguration(LustreConfigurationT&& value) {
82 SetLustreConfiguration(std::forward<LustreConfigurationT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_fileCacheId;
88
89 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
90
91 UpdateFileCacheLustreConfiguration m_lustreConfiguration;
92 bool m_fileCacheIdHasBeenSet = false;
93 bool m_clientRequestTokenHasBeenSet = true;
94 bool m_lustreConfigurationHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace FSx
99} // namespace Aws
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API Aws::String SerializePayload() const override
const Aws::String & GetClientRequestToken() const
const UpdateFileCacheLustreConfiguration & GetLustreConfiguration() const
AWS_FSX_API UpdateFileCacheRequest()=default
UpdateFileCacheRequest & WithFileCacheId(FileCacheIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateFileCacheRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
void SetLustreConfiguration(LustreConfigurationT &&value)
UpdateFileCacheRequest & WithLustreConfiguration(LustreConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String