AWS SDK for C++  1.8.152
AWS SDK for C++
DescribeSnapshotsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/ds/model/Snapshot.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace DirectoryService
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
50  inline const Aws::Vector<Snapshot>& GetSnapshots() const{ return m_snapshots; }
51 
59  inline void SetSnapshots(const Aws::Vector<Snapshot>& value) { m_snapshots = value; }
60 
68  inline void SetSnapshots(Aws::Vector<Snapshot>&& value) { m_snapshots = std::move(value); }
69 
77  inline DescribeSnapshotsResult& WithSnapshots(const Aws::Vector<Snapshot>& value) { SetSnapshots(value); return *this;}
78 
86  inline DescribeSnapshotsResult& WithSnapshots(Aws::Vector<Snapshot>&& value) { SetSnapshots(std::move(value)); return *this;}
87 
95  inline DescribeSnapshotsResult& AddSnapshots(const Snapshot& value) { m_snapshots.push_back(value); return *this; }
96 
104  inline DescribeSnapshotsResult& AddSnapshots(Snapshot&& value) { m_snapshots.push_back(std::move(value)); return *this; }
105 
106 
111  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
112 
117  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
118 
123  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
124 
129  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
130 
135  inline DescribeSnapshotsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
136 
141  inline DescribeSnapshotsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
142 
147  inline DescribeSnapshotsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
148 
149  private:
150 
151  Aws::Vector<Snapshot> m_snapshots;
152 
153  Aws::String m_nextToken;
154  };
155 
156 } // namespace Model
157 } // namespace DirectoryService
158 } // namespace Aws
Aws::DirectoryService::Model::DescribeSnapshotsResult::SetSnapshots
void SetSnapshots(const Aws::Vector< Snapshot > &value)
Definition: DescribeSnapshotsResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectoryService::Model::DescribeSnapshotsResult::SetSnapshots
void SetSnapshots(Aws::Vector< Snapshot > &&value)
Definition: DescribeSnapshotsResult.h:68
Aws::DirectoryService::Model::DescribeSnapshotsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSnapshotsResult.h:117
Aws::DirectoryService::Model::DescribeSnapshotsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSnapshotsResult.h:123
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeSnapshotsResult::WithNextToken
DescribeSnapshotsResult & WithNextToken(Aws::String &&value)
Definition: DescribeSnapshotsResult.h:141
Aws::DirectoryService::Model::Snapshot
Definition: Snapshot.h:35
Aws::DirectoryService::Model::DescribeSnapshotsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSnapshotsResult.h:129
Aws::DirectoryService::Model::DescribeSnapshotsResult::WithNextToken
DescribeSnapshotsResult & WithNextToken(const char *value)
Definition: DescribeSnapshotsResult.h:147
Aws::DirectoryService::Model::DescribeSnapshotsResult
Definition: DescribeSnapshotsResult.h:36
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DirectoryService::Model::DescribeSnapshotsResult::WithSnapshots
DescribeSnapshotsResult & WithSnapshots(const Aws::Vector< Snapshot > &value)
Definition: DescribeSnapshotsResult.h:77
Aws::DirectoryService::Model::DescribeSnapshotsResult::operator=
DescribeSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::DescribeSnapshotsResult::WithSnapshots
DescribeSnapshotsResult & WithSnapshots(Aws::Vector< Snapshot > &&value)
Definition: DescribeSnapshotsResult.h:86
AWSString.h
Aws::DirectoryService::Model::DescribeSnapshotsResult::DescribeSnapshotsResult
DescribeSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::DescribeSnapshotsResult::AddSnapshots
DescribeSnapshotsResult & AddSnapshots(const Snapshot &value)
Definition: DescribeSnapshotsResult.h:95
Aws::DirectoryService::Model::DescribeSnapshotsResult::WithNextToken
DescribeSnapshotsResult & WithNextToken(const Aws::String &value)
Definition: DescribeSnapshotsResult.h:135
Aws::DirectoryService::Model::DescribeSnapshotsResult::DescribeSnapshotsResult
DescribeSnapshotsResult()
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeSnapshotsResult::AddSnapshots
DescribeSnapshotsResult & AddSnapshots(Snapshot &&value)
Definition: DescribeSnapshotsResult.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeSnapshotsResult::GetSnapshots
const Aws::Vector< Snapshot > & GetSnapshots() const
Definition: DescribeSnapshotsResult.h:50
Snapshot.h
Aws::DirectoryService::Model::DescribeSnapshotsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSnapshotsResult.h:111