AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeSharedDirectoriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DirectoryService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeSharedDirectories"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetOwnerDirectoryId() const{ return m_ownerDirectoryId; }
42 
46  inline bool OwnerDirectoryIdHasBeenSet() const { return m_ownerDirectoryIdHasBeenSet; }
47 
51  inline void SetOwnerDirectoryId(const Aws::String& value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId = value; }
52 
56  inline void SetOwnerDirectoryId(Aws::String&& value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId = std::move(value); }
57 
61  inline void SetOwnerDirectoryId(const char* value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId.assign(value); }
62 
66  inline DescribeSharedDirectoriesRequest& WithOwnerDirectoryId(const Aws::String& value) { SetOwnerDirectoryId(value); return *this;}
67 
71  inline DescribeSharedDirectoriesRequest& WithOwnerDirectoryId(Aws::String&& value) { SetOwnerDirectoryId(std::move(value)); return *this;}
72 
76  inline DescribeSharedDirectoriesRequest& WithOwnerDirectoryId(const char* value) { SetOwnerDirectoryId(value); return *this;}
77 
78 
82  inline const Aws::Vector<Aws::String>& GetSharedDirectoryIds() const{ return m_sharedDirectoryIds; }
83 
87  inline bool SharedDirectoryIdsHasBeenSet() const { return m_sharedDirectoryIdsHasBeenSet; }
88 
92  inline void SetSharedDirectoryIds(const Aws::Vector<Aws::String>& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds = value; }
93 
97  inline void SetSharedDirectoryIds(Aws::Vector<Aws::String>&& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds = std::move(value); }
98 
102  inline DescribeSharedDirectoriesRequest& WithSharedDirectoryIds(const Aws::Vector<Aws::String>& value) { SetSharedDirectoryIds(value); return *this;}
103 
107  inline DescribeSharedDirectoriesRequest& WithSharedDirectoryIds(Aws::Vector<Aws::String>&& value) { SetSharedDirectoryIds(std::move(value)); return *this;}
108 
112  inline DescribeSharedDirectoriesRequest& AddSharedDirectoryIds(const Aws::String& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds.push_back(value); return *this; }
113 
117  inline DescribeSharedDirectoriesRequest& AddSharedDirectoryIds(Aws::String&& value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds.push_back(std::move(value)); return *this; }
118 
122  inline DescribeSharedDirectoriesRequest& AddSharedDirectoryIds(const char* value) { m_sharedDirectoryIdsHasBeenSet = true; m_sharedDirectoryIds.push_back(value); return *this; }
123 
124 
130  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
131 
137  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 
144  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
145 
151  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
152 
158  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
159 
165  inline DescribeSharedDirectoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
166 
172  inline DescribeSharedDirectoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
173 
179  inline DescribeSharedDirectoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
180 
181 
185  inline int GetLimit() const{ return m_limit; }
186 
190  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
191 
195  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
196 
200  inline DescribeSharedDirectoriesRequest& WithLimit(int value) { SetLimit(value); return *this;}
201 
202  private:
203 
204  Aws::String m_ownerDirectoryId;
205  bool m_ownerDirectoryIdHasBeenSet;
206 
207  Aws::Vector<Aws::String> m_sharedDirectoryIds;
208  bool m_sharedDirectoryIdsHasBeenSet;
209 
210  Aws::String m_nextToken;
211  bool m_nextTokenHasBeenSet;
212 
213  int m_limit;
214  bool m_limitHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace DirectoryService
219 } // namespace Aws
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest
Definition: DescribeSharedDirectoriesRequest.h:23
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSharedDirectoriesRequest.h:130
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSharedDirectoriesRequest.h:151
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithOwnerDirectoryId
DescribeSharedDirectoriesRequest & WithOwnerDirectoryId(const Aws::String &value)
Definition: DescribeSharedDirectoriesRequest.h:66
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeSharedDirectoriesRequest.h:31
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSharedDirectoriesRequest.h:144
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetSharedDirectoryIds
void SetSharedDirectoryIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSharedDirectoriesRequest.h:92
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::DescribeSharedDirectoriesRequest
DescribeSharedDirectoriesRequest()
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetOwnerDirectoryId
void SetOwnerDirectoryId(const char *value)
Definition: DescribeSharedDirectoriesRequest.h:61
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithNextToken
DescribeSharedDirectoriesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeSharedDirectoriesRequest.h:172
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithSharedDirectoryIds
DescribeSharedDirectoriesRequest & WithSharedDirectoryIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSharedDirectoriesRequest.h:107
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithNextToken
DescribeSharedDirectoriesRequest & WithNextToken(const char *value)
Definition: DescribeSharedDirectoriesRequest.h:179
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithSharedDirectoryIds
DescribeSharedDirectoriesRequest & WithSharedDirectoryIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeSharedDirectoriesRequest.h:102
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::AddSharedDirectoryIds
DescribeSharedDirectoriesRequest & AddSharedDirectoryIds(const Aws::String &value)
Definition: DescribeSharedDirectoriesRequest.h:112
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetOwnerDirectoryId
void SetOwnerDirectoryId(Aws::String &&value)
Definition: DescribeSharedDirectoriesRequest.h:56
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::OwnerDirectoryIdHasBeenSet
bool OwnerDirectoryIdHasBeenSet() const
Definition: DescribeSharedDirectoriesRequest.h:46
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetSharedDirectoryIds
void SetSharedDirectoryIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeSharedDirectoriesRequest.h:97
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithLimit
DescribeSharedDirectoriesRequest & WithLimit(int value)
Definition: DescribeSharedDirectoriesRequest.h:200
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeSharedDirectoriesRequest.h:137
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::AddSharedDirectoryIds
DescribeSharedDirectoriesRequest & AddSharedDirectoryIds(Aws::String &&value)
Definition: DescribeSharedDirectoriesRequest.h:117
AWSString.h
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SharedDirectoryIdsHasBeenSet
bool SharedDirectoryIdsHasBeenSet() const
Definition: DescribeSharedDirectoriesRequest.h:87
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetOwnerDirectoryId
void SetOwnerDirectoryId(const Aws::String &value)
Definition: DescribeSharedDirectoriesRequest.h:51
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithOwnerDirectoryId
DescribeSharedDirectoriesRequest & WithOwnerDirectoryId(const char *value)
Definition: DescribeSharedDirectoriesRequest.h:76
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::AddSharedDirectoryIds
DescribeSharedDirectoriesRequest & AddSharedDirectoryIds(const char *value)
Definition: DescribeSharedDirectoriesRequest.h:122
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::GetOwnerDirectoryId
const Aws::String & GetOwnerDirectoryId() const
Definition: DescribeSharedDirectoriesRequest.h:41
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::GetLimit
int GetLimit() const
Definition: DescribeSharedDirectoriesRequest.h:185
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithOwnerDirectoryId
DescribeSharedDirectoriesRequest & WithOwnerDirectoryId(Aws::String &&value)
Definition: DescribeSharedDirectoriesRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetLimit
void SetLimit(int value)
Definition: DescribeSharedDirectoriesRequest.h:195
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::GetSharedDirectoryIds
const Aws::Vector< Aws::String > & GetSharedDirectoryIds() const
Definition: DescribeSharedDirectoriesRequest.h:82
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::WithNextToken
DescribeSharedDirectoriesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeSharedDirectoriesRequest.h:165
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSharedDirectoriesRequest.h:158
Aws::DirectoryService::Model::DescribeSharedDirectoriesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeSharedDirectoriesRequest.h:190
DirectoryServiceRequest.h