AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeFileCachesRequest.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/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 DescribeFileCachesRequest() = 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 "DescribeFileCaches"; }
29
30 AWS_FSX_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::Vector<Aws::String>& GetFileCacheIds() const { return m_fileCacheIds; }
39 inline bool FileCacheIdsHasBeenSet() const { return m_fileCacheIdsHasBeenSet; }
40 template <typename FileCacheIdsT = Aws::Vector<Aws::String>>
41 void SetFileCacheIds(FileCacheIdsT&& value) {
42 m_fileCacheIdsHasBeenSet = true;
43 m_fileCacheIds = std::forward<FileCacheIdsT>(value);
44 }
45 template <typename FileCacheIdsT = Aws::Vector<Aws::String>>
47 SetFileCacheIds(std::forward<FileCacheIdsT>(value));
48 return *this;
49 }
50 template <typename FileCacheIdsT = Aws::String>
52 m_fileCacheIdsHasBeenSet = true;
53 m_fileCacheIds.emplace_back(std::forward<FileCacheIdsT>(value));
54 return *this;
55 }
57
59
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<Aws::String> m_fileCacheIds;
89
90 int m_maxResults{0};
91
92 Aws::String m_nextToken;
93 bool m_fileCacheIdsHasBeenSet = false;
94 bool m_maxResultsHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace FSx
100} // namespace Aws
DescribeFileCachesRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FSX_API DescribeFileCachesRequest()=default
DescribeFileCachesRequest & WithFileCacheIds(FileCacheIdsT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FSX_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetFileCacheIds() const
DescribeFileCachesRequest & AddFileCacheIds(FileCacheIdsT &&value)
DescribeFileCachesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector