AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFileCacheRequest.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/UpdateFileCacheLustreConfiguration.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace FSx
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_FSX_API UpdateFileCacheRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFileCache"; }
33
34 AWS_FSX_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
44 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
45 template<typename FileCacheIdT = Aws::String>
46 void SetFileCacheId(FileCacheIdT&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::forward<FileCacheIdT>(value); }
47 template<typename FileCacheIdT = Aws::String>
48 UpdateFileCacheRequest& WithFileCacheId(FileCacheIdT&& value) { SetFileCacheId(std::forward<FileCacheIdT>(value)); return *this;}
50
52
53 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
54 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
55 template<typename ClientRequestTokenT = Aws::String>
56 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
57 template<typename ClientRequestTokenT = Aws::String>
58 UpdateFileCacheRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
60
62
65 inline const UpdateFileCacheLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
66 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
67 template<typename LustreConfigurationT = UpdateFileCacheLustreConfiguration>
68 void SetLustreConfiguration(LustreConfigurationT&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::forward<LustreConfigurationT>(value); }
69 template<typename LustreConfigurationT = UpdateFileCacheLustreConfiguration>
70 UpdateFileCacheRequest& WithLustreConfiguration(LustreConfigurationT&& value) { SetLustreConfiguration(std::forward<LustreConfigurationT>(value)); return *this;}
72 private:
73
74 Aws::String m_fileCacheId;
75 bool m_fileCacheIdHasBeenSet = false;
76
77 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
78 bool m_clientRequestTokenHasBeenSet = true;
79
80 UpdateFileCacheLustreConfiguration m_lustreConfiguration;
81 bool m_lustreConfigurationHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace FSx
86} // 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