AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeSnapshotsRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectoryService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_DIRECTORYSERVICE_API DescribeSnapshotsRequest() = default;
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_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
48 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 template<typename DirectoryIdT = Aws::String>
50 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
51 template<typename DirectoryIdT = Aws::String>
52 DescribeSnapshotsRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
54
56
61 inline const Aws::Vector<Aws::String>& GetSnapshotIds() const { return m_snapshotIds; }
62 inline bool SnapshotIdsHasBeenSet() const { return m_snapshotIdsHasBeenSet; }
63 template<typename SnapshotIdsT = Aws::Vector<Aws::String>>
64 void SetSnapshotIds(SnapshotIdsT&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds = std::forward<SnapshotIdsT>(value); }
65 template<typename SnapshotIdsT = Aws::Vector<Aws::String>>
66 DescribeSnapshotsRequest& WithSnapshotIds(SnapshotIdsT&& value) { SetSnapshotIds(std::forward<SnapshotIdsT>(value)); return *this;}
67 template<typename SnapshotIdsT = Aws::String>
68 DescribeSnapshotsRequest& AddSnapshotIds(SnapshotIdsT&& value) { m_snapshotIdsHasBeenSet = true; m_snapshotIds.emplace_back(std::forward<SnapshotIdsT>(value)); return *this; }
70
72
76 inline const Aws::String& GetNextToken() const { return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 template<typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
80 template<typename NextTokenT = Aws::String>
81 DescribeSnapshotsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
83
85
88 inline int GetLimit() const { return m_limit; }
89 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
90 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
91 inline DescribeSnapshotsRequest& WithLimit(int value) { SetLimit(value); return *this;}
93 private:
94
95 Aws::String m_directoryId;
96 bool m_directoryIdHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_snapshotIds;
99 bool m_snapshotIdsHasBeenSet = false;
100
101 Aws::String m_nextToken;
102 bool m_nextTokenHasBeenSet = false;
103
104 int m_limit{0};
105 bool m_limitHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace DirectoryService
110} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API DescribeSnapshotsRequest()=default
DescribeSnapshotsRequest & WithDirectoryId(DirectoryIdT &&value)
DescribeSnapshotsRequest & AddSnapshotIds(SnapshotIdsT &&value)
DescribeSnapshotsRequest & WithNextToken(NextTokenT &&value)
DescribeSnapshotsRequest & WithSnapshotIds(SnapshotIdsT &&value)
const Aws::Vector< Aws::String > & GetSnapshotIds() const
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector