AWS SDK for C++

AWS SDK for C++ Version 1.11.789

Loading...
Searching...
No Matches
DescribeSnapshotsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11#include <aws/ds/model/Snapshot.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DirectoryService {
25namespace Model {
33 public:
34 AWS_DIRECTORYSERVICE_API DescribeSnapshotsResult() = default;
37
39
46 inline const Aws::Vector<Snapshot>& GetSnapshots() const { return m_snapshots; }
47 template <typename SnapshotsT = Aws::Vector<Snapshot>>
48 void SetSnapshots(SnapshotsT&& value) {
49 m_snapshotsHasBeenSet = true;
50 m_snapshots = std::forward<SnapshotsT>(value);
51 }
52 template <typename SnapshotsT = Aws::Vector<Snapshot>>
54 SetSnapshots(std::forward<SnapshotsT>(value));
55 return *this;
56 }
57 template <typename SnapshotsT = Snapshot>
59 m_snapshotsHasBeenSet = true;
60 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 template <typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) {
73 m_nextTokenHasBeenSet = true;
74 m_nextToken = std::forward<NextTokenT>(value);
75 }
76 template <typename NextTokenT = Aws::String>
78 SetNextToken(std::forward<NextTokenT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 Aws::Vector<Snapshot> m_snapshots;
101
102 Aws::String m_nextToken;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_snapshotsHasBeenSet = false;
107 bool m_nextTokenHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace DirectoryService
113} // 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