AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteFileCacheRequest.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
12#include <utility>
13
14namespace Aws {
15namespace FSx {
16namespace Model {
17
21 public:
22 AWS_FSX_API DeleteFileCacheRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteFileCache"; }
29
30 AWS_FSX_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
39 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
40 template <typename FileCacheIdT = Aws::String>
41 void SetFileCacheId(FileCacheIdT&& value) {
42 m_fileCacheIdHasBeenSet = true;
43 m_fileCacheId = std::forward<FileCacheIdT>(value);
44 }
45 template <typename FileCacheIdT = Aws::String>
46 DeleteFileCacheRequest& WithFileCacheId(FileCacheIdT&& value) {
47 SetFileCacheId(std::forward<FileCacheIdT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
55 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
56 template <typename ClientRequestTokenT = Aws::String>
57 void SetClientRequestToken(ClientRequestTokenT&& value) {
58 m_clientRequestTokenHasBeenSet = true;
59 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
60 }
61 template <typename ClientRequestTokenT = Aws::String>
62 DeleteFileCacheRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
63 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_fileCacheId;
69
70 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
71 bool m_fileCacheIdHasBeenSet = false;
72 bool m_clientRequestTokenHasBeenSet = true;
73};
74
75} // namespace Model
76} // namespace FSx
77} // namespace Aws
AWS_FSX_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_FSX_API DeleteFileCacheRequest()=default
DeleteFileCacheRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetClientRequestToken() const
DeleteFileCacheRequest & WithFileCacheId(FileCacheIdT &&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