AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeDirectoriesRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectoryService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_DIRECTORYSERVICE_API DescribeDirectoriesRequest() = 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 "DescribeDirectories"; }
36
37 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
49 inline const Aws::Vector<Aws::String>& GetDirectoryIds() const { return m_directoryIds; }
50 inline bool DirectoryIdsHasBeenSet() const { return m_directoryIdsHasBeenSet; }
51 template<typename DirectoryIdsT = Aws::Vector<Aws::String>>
52 void SetDirectoryIds(DirectoryIdsT&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = std::forward<DirectoryIdsT>(value); }
53 template<typename DirectoryIdsT = Aws::Vector<Aws::String>>
54 DescribeDirectoriesRequest& WithDirectoryIds(DirectoryIdsT&& value) { SetDirectoryIds(std::forward<DirectoryIdsT>(value)); return *this;}
55 template<typename DirectoryIdsT = Aws::String>
56 DescribeDirectoriesRequest& AddDirectoryIds(DirectoryIdsT&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.emplace_back(std::forward<DirectoryIdsT>(value)); return *this; }
58
60
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 template<typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
68 template<typename NextTokenT = Aws::String>
69 DescribeDirectoriesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
71
73
77 inline int GetLimit() const { return m_limit; }
78 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
79 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
80 inline DescribeDirectoriesRequest& WithLimit(int value) { SetLimit(value); return *this;}
82 private:
83
84 Aws::Vector<Aws::String> m_directoryIds;
85 bool m_directoryIdsHasBeenSet = false;
86
87 Aws::String m_nextToken;
88 bool m_nextTokenHasBeenSet = false;
89
90 int m_limit{0};
91 bool m_limitHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace DirectoryService
96} // namespace Aws
AWS_DIRECTORYSERVICE_API DescribeDirectoriesRequest()=default
DescribeDirectoriesRequest & AddDirectoryIds(DirectoryIdsT &&value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeDirectoriesRequest & WithDirectoryIds(DirectoryIdsT &&value)
DescribeDirectoriesRequest & WithNextToken(NextTokenT &&value)
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