AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeFileCachesRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace FSx
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_FSX_API DescribeFileCachesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeFileCaches"; }
32
33 AWS_FSX_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::Vector<Aws::String>& GetFileCacheIds() const { return m_fileCacheIds; }
43 inline bool FileCacheIdsHasBeenSet() const { return m_fileCacheIdsHasBeenSet; }
44 template<typename FileCacheIdsT = Aws::Vector<Aws::String>>
45 void SetFileCacheIds(FileCacheIdsT&& value) { m_fileCacheIdsHasBeenSet = true; m_fileCacheIds = std::forward<FileCacheIdsT>(value); }
46 template<typename FileCacheIdsT = Aws::Vector<Aws::String>>
47 DescribeFileCachesRequest& WithFileCacheIds(FileCacheIdsT&& value) { SetFileCacheIds(std::forward<FileCacheIdsT>(value)); return *this;}
48 template<typename FileCacheIdsT = Aws::String>
49 DescribeFileCachesRequest& AddFileCacheIds(FileCacheIdsT&& value) { m_fileCacheIdsHasBeenSet = true; m_fileCacheIds.emplace_back(std::forward<FileCacheIdsT>(value)); return *this; }
51
53
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
56 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
57 inline DescribeFileCachesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
59
61
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template<typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
66 template<typename NextTokenT = Aws::String>
67 DescribeFileCachesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
69 private:
70
71 Aws::Vector<Aws::String> m_fileCacheIds;
72 bool m_fileCacheIdsHasBeenSet = false;
73
74 int m_maxResults{0};
75 bool m_maxResultsHasBeenSet = false;
76
77 Aws::String m_nextToken;
78 bool m_nextTokenHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace FSx
83} // 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