AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeSnapshotsRequest.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/ds/DirectoryServiceRequest.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DirectoryService {
16namespace Model {
17
25 public:
26 AWS_DIRECTORYSERVICE_API DescribeSnapshotsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeSnapshots"; }
33
34 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
44 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
45 template <typename DirectoryIdT = Aws::String>
46 void SetDirectoryId(DirectoryIdT&& value) {
47 m_directoryIdHasBeenSet = true;
48 m_directoryId = std::forward<DirectoryIdT>(value);
49 }
50 template <typename DirectoryIdT = Aws::String>
52 SetDirectoryId(std::forward<DirectoryIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::Vector<Aws::String>& GetSnapshotIds() const { return m_snapshotIds; }
64 inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; }
65 template <typename SnapshotIdsT = Aws::Vector<Aws::String>>
66 void SetSnapshotIds(SnapshotIdsT&& value) {
67 m_snapshotIdsHasBeenSet = true;
68 m_snapshotIds = std::forward<SnapshotIdsT>(value);
69 }
70 template <typename SnapshotIdsT = Aws::Vector<Aws::String>>
72 SetSnapshotIds(std::forward<SnapshotIdsT>(value));
73 return *this;
74 }
75 template <typename SnapshotIdsT = Aws::String>
77 m_snapshotIdsHasBeenSet = true;
78 m_snapshotIds.emplace_back(std::forward<SnapshotIdsT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 template <typename NextTokenT = Aws::String>
91 void SetNextToken(NextTokenT&& value) {
92 m_nextTokenHasBeenSet = true;
93 m_nextToken = std::forward<NextTokenT>(value);
94 }
95 template <typename NextTokenT = Aws::String>
97 SetNextToken(std::forward<NextTokenT>(value));
98 return *this;
99 }
101
103
106 inline int GetLimit() const { return m_limit; }
107 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
108 inline void SetLimit(int value) {
109 m_limitHasBeenSet = true;
110 m_limit = value;
111 }
113 SetLimit(value);
114 return *this;
115 }
117 private:
118 Aws::String m_directoryId;
119
120 Aws::Vector<Aws::String> m_snapshotIds;
121
122 Aws::String m_nextToken;
123
124 int m_limit{0};
125 bool m_directoryIdHasBeenSet = false;
126 bool m_snapshotIdsHasBeenSet = false;
127 bool m_nextTokenHasBeenSet = false;
128 bool m_limitHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace DirectoryService
133} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API DescribeSnapshotsRequest()=default
DescribeSnapshotsRequest & WithDirectoryId(DirectoryIdT &&value)
DescribeSnapshotsRequest & AddSnapshotIds(SnapshotIdsT &&value)
DescribeSnapshotsRequest & WithNextToken(NextTokenT &&value)
DescribeSnapshotsRequest & WithSnapshotIds(SnapshotIdsT &&value)
const Aws::Vector< Aws::String > & GetSnapshotIds() const
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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