AWS SDK for C++  1.8.152
AWS SDK for C++
DescribeSnapshotsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DescribeSnapshots"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
47 
52  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
53 
58  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
59 
64  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
65 
70  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
71 
76  inline DescribeSnapshotsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
77 
82  inline DescribeSnapshotsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
83 
88  inline DescribeSnapshotsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
89 
90 
96  inline const Aws::Vector<Aws::String>& GetSnapshotIds() const{ return m_snapshotIds; }
97 
103  inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; }
104 
110  inline void SetSnapshotIds(const Aws::Vector<Aws::String>& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = value; }
111 
117  inline void SetSnapshotIds(Aws::Vector<Aws::String>&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = std::move(value); }
118 
124  inline DescribeSnapshotsRequest& WithSnapshotIds(const Aws::Vector<Aws::String>& value) { SetSnapshotIds(value); return *this;}
125 
131  inline DescribeSnapshotsRequest& WithSnapshotIds(Aws::Vector<Aws::String>&& value) { SetSnapshotIds(std::move(value)); return *this;}
132 
138  inline DescribeSnapshotsRequest& AddSnapshotIds(const Aws::String& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
139 
145  inline DescribeSnapshotsRequest& AddSnapshotIds(Aws::String&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(std::move(value)); return *this; }
146 
152  inline DescribeSnapshotsRequest& AddSnapshotIds(const char* value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
153 
154 
159  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
160 
165  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
166 
171  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
172 
177  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
178 
183  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
184 
189  inline DescribeSnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
190 
195  inline DescribeSnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
196 
201  inline DescribeSnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
202 
203 
207  inline int GetLimit() const{ return m_limit; }
208 
212  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
213 
217  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
218 
222  inline DescribeSnapshotsRequest& WithLimit(int value) { SetLimit(value); return *this;}
223 
224  private:
225 
226  Aws::String m_directoryId;
227  bool m_directoryIdHasBeenSet;
228 
229  Aws::Vector<Aws::String> m_snapshotIds;
230  bool m_snapshotIdsHasBeenSet;
231 
232  Aws::String m_nextToken;
233  bool m_nextTokenHasBeenSet;
234 
235  int m_limit;
236  bool m_limitHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace DirectoryService
241 } // namespace Aws
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: DescribeSnapshotsRequest.h:70
Aws::DirectoryService::Model::DescribeSnapshotsRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: DescribeSnapshotsRequest.h:52
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: DescribeSnapshotsRequest.h:64
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetSnapshotIds
void SetSnapshotIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSnapshotsRequest.h:117
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::DescribeSnapshotsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithNextToken
DescribeSnapshotsRequest & WithNextToken(const char *value)
Definition: DescribeSnapshotsRequest.h:201
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::DescribeSnapshotsRequest::GetLimit
int GetLimit() const
Definition: DescribeSnapshotsRequest.h:207
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DescribeSnapshotsRequest::AddSnapshotIds
DescribeSnapshotsRequest & AddSnapshotIds(const char *value)
Definition: DescribeSnapshotsRequest.h:152
Aws::DirectoryService::Model::DescribeSnapshotsRequest::DescribeSnapshotsRequest
DescribeSnapshotsRequest()
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSnapshotsRequest.h:177
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithDirectoryId
DescribeSnapshotsRequest & WithDirectoryId(Aws::String &&value)
Definition: DescribeSnapshotsRequest.h:82
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetLimit
void SetLimit(int value)
Definition: DescribeSnapshotsRequest.h:217
Aws::DirectoryService::Model::DescribeSnapshotsRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: DescribeSnapshotsRequest.h:46
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithNextToken
DescribeSnapshotsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeSnapshotsRequest.h:195
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: DescribeSnapshotsRequest.h:58
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithDirectoryId
DescribeSnapshotsRequest & WithDirectoryId(const Aws::String &value)
Definition: DescribeSnapshotsRequest.h:76
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SnapshotIdsHasBeenSet
bool SnapshotIdsHasBeenSet() const
Definition: DescribeSnapshotsRequest.h:103
Aws::DirectoryService::Model::DescribeSnapshotsRequest::AddSnapshotIds
DescribeSnapshotsRequest & AddSnapshotIds(const Aws::String &value)
Definition: DescribeSnapshotsRequest.h:138
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSnapshotsRequest.h:171
AWSString.h
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithDirectoryId
DescribeSnapshotsRequest & WithDirectoryId(const char *value)
Definition: DescribeSnapshotsRequest.h:88
Aws::DirectoryService::Model::DescribeSnapshotsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSnapshotsRequest.h:159
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithSnapshotIds
DescribeSnapshotsRequest & WithSnapshotIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSnapshotsRequest.h:124
Aws::DirectoryService::Model::DescribeSnapshotsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSnapshotsRequest.h:35
Aws::DirectoryService::Model::DescribeSnapshotsRequest::AddSnapshotIds
DescribeSnapshotsRequest & AddSnapshotIds(Aws::String &&value)
Definition: DescribeSnapshotsRequest.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetSnapshotIds
void SetSnapshotIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSnapshotsRequest.h:110
Aws::DirectoryService::Model::DescribeSnapshotsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeSnapshotsRequest.h:165
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithLimit
DescribeSnapshotsRequest & WithLimit(int value)
Definition: DescribeSnapshotsRequest.h:222
DirectoryServiceRequest.h
Aws::DirectoryService::Model::DescribeSnapshotsRequest::GetSnapshotIds
const Aws::Vector< Aws::String > & GetSnapshotIds() const
Definition: DescribeSnapshotsRequest.h:96
Aws::DirectoryService::Model::DescribeSnapshotsRequest
Definition: DescribeSnapshotsRequest.h:27
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithSnapshotIds
DescribeSnapshotsRequest & WithSnapshotIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSnapshotsRequest.h:131
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSnapshotsRequest.h:183
Aws::DirectoryService::Model::DescribeSnapshotsRequest::WithNextToken
DescribeSnapshotsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeSnapshotsRequest.h:189
Aws::DirectoryService::Model::DescribeSnapshotsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::DescribeSnapshotsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeSnapshotsRequest.h:212