AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeFileCachesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fsx/FSx_EXPORTS.h>
10#include <aws/fsx/model/FileCache.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace FSx {
24namespace Model {
26 public:
27 AWS_FSX_API DescribeFileCachesResult() = default;
30
32
35 inline const Aws::Vector<FileCache>& GetFileCaches() const { return m_fileCaches; }
36 template <typename FileCachesT = Aws::Vector<FileCache>>
37 void SetFileCaches(FileCachesT&& value) {
38 m_fileCachesHasBeenSet = true;
39 m_fileCaches = std::forward<FileCachesT>(value);
40 }
41 template <typename FileCachesT = Aws::Vector<FileCache>>
43 SetFileCaches(std::forward<FileCachesT>(value));
44 return *this;
45 }
46 template <typename FileCachesT = FileCache>
48 m_fileCachesHasBeenSet = true;
49 m_fileCaches.emplace_back(std::forward<FileCachesT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 template <typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) {
59 m_nextTokenHasBeenSet = true;
60 m_nextToken = std::forward<NextTokenT>(value);
61 }
62 template <typename NextTokenT = Aws::String>
64 SetNextToken(std::forward<NextTokenT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template <typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) {
74 m_requestIdHasBeenSet = true;
75 m_requestId = std::forward<RequestIdT>(value);
76 }
77 template <typename RequestIdT = Aws::String>
79 SetRequestId(std::forward<RequestIdT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<FileCache> m_fileCaches;
85
86 Aws::String m_nextToken;
87
88 Aws::String m_requestId;
89 bool m_fileCachesHasBeenSet = false;
90 bool m_nextTokenHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace FSx
96} // namespace Aws
DescribeFileCachesResult & WithRequestId(RequestIdT &&value)
AWS_FSX_API DescribeFileCachesResult()=default
DescribeFileCachesResult & WithNextToken(NextTokenT &&value)
AWS_FSX_API DescribeFileCachesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeFileCachesResult & AddFileCaches(FileCachesT &&value)
AWS_FSX_API DescribeFileCachesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< FileCache > & GetFileCaches() const
DescribeFileCachesResult & WithFileCaches(FileCachesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue