AWS SDK for C++  1.9.106
AWS SDK for C++
RefreshCacheRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace StorageGateway
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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 "RefreshCache"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetFileShareARN() const{ return m_fileShareARN; }
45 
49  inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; }
50 
54  inline void SetFileShareARN(const Aws::String& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = value; }
55 
59  inline void SetFileShareARN(Aws::String&& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = std::move(value); }
60 
64  inline void SetFileShareARN(const char* value) { m_fileShareARNHasBeenSet = true; m_fileShareARN.assign(value); }
65 
69  inline RefreshCacheRequest& WithFileShareARN(const Aws::String& value) { SetFileShareARN(value); return *this;}
70 
74  inline RefreshCacheRequest& WithFileShareARN(Aws::String&& value) { SetFileShareARN(std::move(value)); return *this;}
75 
79  inline RefreshCacheRequest& WithFileShareARN(const char* value) { SetFileShareARN(value); return *this;}
80 
81 
89  inline const Aws::Vector<Aws::String>& GetFolderList() const{ return m_folderList; }
90 
98  inline bool FolderListHasBeenSet() const { return m_folderListHasBeenSet; }
99 
107  inline void SetFolderList(const Aws::Vector<Aws::String>& value) { m_folderListHasBeenSet = true; m_folderList = value; }
108 
116  inline void SetFolderList(Aws::Vector<Aws::String>&& value) { m_folderListHasBeenSet = true; m_folderList = std::move(value); }
117 
125  inline RefreshCacheRequest& WithFolderList(const Aws::Vector<Aws::String>& value) { SetFolderList(value); return *this;}
126 
134  inline RefreshCacheRequest& WithFolderList(Aws::Vector<Aws::String>&& value) { SetFolderList(std::move(value)); return *this;}
135 
143  inline RefreshCacheRequest& AddFolderList(const Aws::String& value) { m_folderListHasBeenSet = true; m_folderList.push_back(value); return *this; }
144 
152  inline RefreshCacheRequest& AddFolderList(Aws::String&& value) { m_folderListHasBeenSet = true; m_folderList.push_back(std::move(value)); return *this; }
153 
161  inline RefreshCacheRequest& AddFolderList(const char* value) { m_folderListHasBeenSet = true; m_folderList.push_back(value); return *this; }
162 
163 
174  inline bool GetRecursive() const{ return m_recursive; }
175 
186  inline bool RecursiveHasBeenSet() const { return m_recursiveHasBeenSet; }
187 
198  inline void SetRecursive(bool value) { m_recursiveHasBeenSet = true; m_recursive = value; }
199 
210  inline RefreshCacheRequest& WithRecursive(bool value) { SetRecursive(value); return *this;}
211 
212  private:
213 
214  Aws::String m_fileShareARN;
215  bool m_fileShareARNHasBeenSet;
216 
217  Aws::Vector<Aws::String> m_folderList;
218  bool m_folderListHasBeenSet;
219 
220  bool m_recursive;
221  bool m_recursiveHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace StorageGateway
226 } // namespace Aws
Aws::StorageGateway::Model::RefreshCacheRequest::WithFileShareARN
RefreshCacheRequest & WithFileShareARN(Aws::String &&value)
Definition: RefreshCacheRequest.h:74
Aws::StorageGateway::Model::RefreshCacheRequest::WithFileShareARN
RefreshCacheRequest & WithFileShareARN(const Aws::String &value)
Definition: RefreshCacheRequest.h:69
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::RefreshCacheRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::RefreshCacheRequest::GetFolderList
const Aws::Vector< Aws::String > & GetFolderList() const
Definition: RefreshCacheRequest.h:89
Aws::StorageGateway::Model::RefreshCacheRequest::RefreshCacheRequest
RefreshCacheRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::RefreshCacheRequest::SetFolderList
void SetFolderList(const Aws::Vector< Aws::String > &value)
Definition: RefreshCacheRequest.h:107
Aws::StorageGateway::Model::RefreshCacheRequest::WithFileShareARN
RefreshCacheRequest & WithFileShareARN(const char *value)
Definition: RefreshCacheRequest.h:79
Aws::StorageGateway::Model::RefreshCacheRequest::SetFolderList
void SetFolderList(Aws::Vector< Aws::String > &&value)
Definition: RefreshCacheRequest.h:116
Aws::StorageGateway::Model::RefreshCacheRequest::AddFolderList
RefreshCacheRequest & AddFolderList(const char *value)
Definition: RefreshCacheRequest.h:161
AWSVector.h
Aws::StorageGateway::Model::RefreshCacheRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RefreshCacheRequest.h:34
Aws::StorageGateway::Model::RefreshCacheRequest::FolderListHasBeenSet
bool FolderListHasBeenSet() const
Definition: RefreshCacheRequest.h:98
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::RefreshCacheRequest::AddFolderList
RefreshCacheRequest & AddFolderList(const Aws::String &value)
Definition: RefreshCacheRequest.h:143
Aws::StorageGateway::Model::RefreshCacheRequest::SetFileShareARN
void SetFileShareARN(Aws::String &&value)
Definition: RefreshCacheRequest.h:59
Aws::StorageGateway::Model::RefreshCacheRequest::WithFolderList
RefreshCacheRequest & WithFolderList(Aws::Vector< Aws::String > &&value)
Definition: RefreshCacheRequest.h:134
Aws::StorageGateway::Model::RefreshCacheRequest::AddFolderList
RefreshCacheRequest & AddFolderList(Aws::String &&value)
Definition: RefreshCacheRequest.h:152
Aws::StorageGateway::Model::RefreshCacheRequest::SetFileShareARN
void SetFileShareARN(const char *value)
Definition: RefreshCacheRequest.h:64
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::RefreshCacheRequest::WithFolderList
RefreshCacheRequest & WithFolderList(const Aws::Vector< Aws::String > &value)
Definition: RefreshCacheRequest.h:125
Aws::StorageGateway::Model::RefreshCacheRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StorageGatewayRequest.h
Aws::StorageGateway::Model::RefreshCacheRequest
Definition: RefreshCacheRequest.h:26
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::RefreshCacheRequest::SetRecursive
void SetRecursive(bool value)
Definition: RefreshCacheRequest.h:198
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::RefreshCacheRequest::GetFileShareARN
const Aws::String & GetFileShareARN() const
Definition: RefreshCacheRequest.h:44
Aws::StorageGateway::Model::RefreshCacheRequest::RecursiveHasBeenSet
bool RecursiveHasBeenSet() const
Definition: RefreshCacheRequest.h:186
Aws::StorageGateway::Model::RefreshCacheRequest::SetFileShareARN
void SetFileShareARN(const Aws::String &value)
Definition: RefreshCacheRequest.h:54
Aws::StorageGateway::Model::RefreshCacheRequest::FileShareARNHasBeenSet
bool FileShareARNHasBeenSet() const
Definition: RefreshCacheRequest.h:49
Aws::StorageGateway::Model::RefreshCacheRequest::WithRecursive
RefreshCacheRequest & WithRecursive(bool value)
Definition: RefreshCacheRequest.h:210
Aws::StorageGateway::Model::RefreshCacheRequest::GetRecursive
bool GetRecursive() const
Definition: RefreshCacheRequest.h:174