AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeSnapshotsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
44 
49  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
50 
55  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
56 
61  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
62 
67  inline DescribeSnapshotsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
68 
73  inline DescribeSnapshotsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
74 
79  inline DescribeSnapshotsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
80 
86  inline const Aws::Vector<Aws::String>& GetSnapshotIds() const{ return m_snapshotIds; }
87 
93  inline void SetSnapshotIds(const Aws::Vector<Aws::String>& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = value; }
94 
100  inline void SetSnapshotIds(Aws::Vector<Aws::String>&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = value; }
101 
107  inline DescribeSnapshotsRequest& WithSnapshotIds(const Aws::Vector<Aws::String>& value) { SetSnapshotIds(value); return *this;}
108 
114  inline DescribeSnapshotsRequest& WithSnapshotIds(Aws::Vector<Aws::String>&& value) { SetSnapshotIds(value); return *this;}
115 
121  inline DescribeSnapshotsRequest& AddSnapshotIds(const Aws::String& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
122 
128  inline DescribeSnapshotsRequest& AddSnapshotIds(Aws::String&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
129 
135  inline DescribeSnapshotsRequest& AddSnapshotIds(const char* value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.push_back(value); return *this; }
136 
141  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
142 
147  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
148 
153  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
154 
159  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
160 
165  inline DescribeSnapshotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
166 
171  inline DescribeSnapshotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
172 
177  inline DescribeSnapshotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
178 
182  inline int GetLimit() const{ return m_limit; }
183 
187  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
188 
192  inline DescribeSnapshotsRequest& WithLimit(int value) { SetLimit(value); return *this;}
193 
194  private:
195  Aws::String m_directoryId;
196  bool m_directoryIdHasBeenSet;
197  Aws::Vector<Aws::String> m_snapshotIds;
198  bool m_snapshotIdsHasBeenSet;
199  Aws::String m_nextToken;
200  bool m_nextTokenHasBeenSet;
201  int m_limit;
202  bool m_limitHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace DirectoryService
207 } // namespace Aws
const Aws::Vector< Aws::String > & GetSnapshotIds() const
DescribeSnapshotsRequest & WithDirectoryId(const Aws::String &value)
DescribeSnapshotsRequest & WithNextToken(const Aws::String &value)
DescribeSnapshotsRequest & WithDirectoryId(Aws::String &&value)
#define AWS_DIRECTORYSERVICE_API
DescribeSnapshotsRequest & WithSnapshotIds(Aws::Vector< Aws::String > &&value)
DescribeSnapshotsRequest & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeSnapshotsRequest & WithDirectoryId(const char *value)
DescribeSnapshotsRequest & AddSnapshotIds(Aws::String &&value)
DescribeSnapshotsRequest & AddSnapshotIds(const Aws::String &value)
void SetSnapshotIds(Aws::Vector< Aws::String > &&value)
DescribeSnapshotsRequest & AddSnapshotIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeSnapshotsRequest & WithNextToken(Aws::String &&value)
void SetSnapshotIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).
DescribeSnapshotsRequest & WithSnapshotIds(const Aws::Vector< Aws::String > &value)