AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeSnapshotsResult.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/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/Snapshot.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace DirectoryService {
24namespace Model {
32 public:
33 AWS_DIRECTORYSERVICE_API DescribeSnapshotsResult() = default;
36
38
45 inline const Aws::Vector<Snapshot>& GetSnapshots() const { return m_snapshots; }
46 template <typename SnapshotsT = Aws::Vector<Snapshot>>
47 void SetSnapshots(SnapshotsT&& value) {
48 m_snapshotsHasBeenSet = true;
49 m_snapshots = std::forward<SnapshotsT>(value);
50 }
51 template <typename SnapshotsT = Aws::Vector<Snapshot>>
53 SetSnapshots(std::forward<SnapshotsT>(value));
54 return *this;
55 }
56 template <typename SnapshotsT = Snapshot>
58 m_snapshotsHasBeenSet = true;
59 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 template <typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) {
72 m_nextTokenHasBeenSet = true;
73 m_nextToken = std::forward<NextTokenT>(value);
74 }
75 template <typename NextTokenT = Aws::String>
77 SetNextToken(std::forward<NextTokenT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 private:
97 Aws::Vector<Snapshot> m_snapshots;
98
99 Aws::String m_nextToken;
100
101 Aws::String m_requestId;
102 bool m_snapshotsHasBeenSet = false;
103 bool m_nextTokenHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace DirectoryService
109} // namespace Aws
DescribeSnapshotsResult & WithRequestId(RequestIdT &&value)
DescribeSnapshotsResult & AddSnapshots(SnapshotsT &&value)
AWS_DIRECTORYSERVICE_API DescribeSnapshotsResult()=default
DescribeSnapshotsResult & WithSnapshots(SnapshotsT &&value)
AWS_DIRECTORYSERVICE_API DescribeSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSnapshotsResult & WithNextToken(NextTokenT &&value)
AWS_DIRECTORYSERVICE_API DescribeSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue