AWS SDK for C++  1.8.154
AWS SDK for C++
DescribeRegionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DirectoryService
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribeRegions"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
41 
45  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
46 
50  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
51 
55  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
56 
60  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
61 
65  inline DescribeRegionsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
66 
70  inline DescribeRegionsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
71 
75  inline DescribeRegionsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
76 
77 
81  inline const Aws::String& GetRegionName() const{ return m_regionName; }
82 
86  inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
87 
91  inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
92 
96  inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
97 
101  inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
102 
106  inline DescribeRegionsRequest& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
107 
111  inline DescribeRegionsRequest& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
112 
116  inline DescribeRegionsRequest& WithRegionName(const char* value) { SetRegionName(value); return *this;}
117 
118 
123  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
124 
129  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
130 
135  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
136 
141  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
142 
147  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
148 
153  inline DescribeRegionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
154 
159  inline DescribeRegionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
160 
165  inline DescribeRegionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
166 
167  private:
168 
169  Aws::String m_directoryId;
170  bool m_directoryIdHasBeenSet;
171 
172  Aws::String m_regionName;
173  bool m_regionNameHasBeenSet;
174 
175  Aws::String m_nextToken;
176  bool m_nextTokenHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace DirectoryService
181 } // namespace Aws
Aws::DirectoryService::Model::DescribeRegionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeRegionsRequest.h:30
Aws::DirectoryService::Model::DescribeRegionsRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: DescribeRegionsRequest.h:55
Aws::DirectoryService::Model::DescribeRegionsRequest
Definition: DescribeRegionsRequest.h:22
Aws::DirectoryService::Model::DescribeRegionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeRegionsRequest.h:123
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::DescribeRegionsRequest::RegionNameHasBeenSet
bool RegionNameHasBeenSet() const
Definition: DescribeRegionsRequest.h:86
Aws::DirectoryService::Model::DescribeRegionsRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: DescribeRegionsRequest.h:40
Aws::DirectoryService::Model::DescribeRegionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeRegionsRequest.h:135
Aws::DirectoryService::Model::DescribeRegionsRequest::WithNextToken
DescribeRegionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeRegionsRequest.h:153
Aws::DirectoryService::Model::DescribeRegionsRequest::WithRegionName
DescribeRegionsRequest & WithRegionName(Aws::String &&value)
Definition: DescribeRegionsRequest.h:111
Aws::DirectoryService::Model::DescribeRegionsRequest::WithNextToken
DescribeRegionsRequest & WithNextToken(const char *value)
Definition: DescribeRegionsRequest.h:165
Aws::DirectoryService::Model::DescribeRegionsRequest::WithDirectoryId
DescribeRegionsRequest & WithDirectoryId(const Aws::String &value)
Definition: DescribeRegionsRequest.h:65
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::DescribeRegionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::DescribeRegionsRequest::WithRegionName
DescribeRegionsRequest & WithRegionName(const char *value)
Definition: DescribeRegionsRequest.h:116
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::DescribeRegionsRequest::SetRegionName
void SetRegionName(Aws::String &&value)
Definition: DescribeRegionsRequest.h:96
Aws::DirectoryService::Model::DescribeRegionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::DescribeRegionsRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: DescribeRegionsRequest.h:60
Aws::DirectoryService::Model::DescribeRegionsRequest::WithDirectoryId
DescribeRegionsRequest & WithDirectoryId(const char *value)
Definition: DescribeRegionsRequest.h:75
Aws::DirectoryService::Model::DescribeRegionsRequest::WithNextToken
DescribeRegionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeRegionsRequest.h:159
Aws::DirectoryService::Model::DescribeRegionsRequest::WithDirectoryId
DescribeRegionsRequest & WithDirectoryId(Aws::String &&value)
Definition: DescribeRegionsRequest.h:70
Aws::DirectoryService::Model::DescribeRegionsRequest::GetRegionName
const Aws::String & GetRegionName() const
Definition: DescribeRegionsRequest.h:81
AWSString.h
Aws::DirectoryService::Model::DescribeRegionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeRegionsRequest.h:141
Aws::DirectoryService::Model::DescribeRegionsRequest::DescribeRegionsRequest
DescribeRegionsRequest()
Aws::DirectoryService::Model::DescribeRegionsRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: DescribeRegionsRequest.h:50
Aws::DirectoryService::Model::DescribeRegionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeRegionsRequest.h:147
Aws::DirectoryService::Model::DescribeRegionsRequest::WithRegionName
DescribeRegionsRequest & WithRegionName(const Aws::String &value)
Definition: DescribeRegionsRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::DescribeRegionsRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: DescribeRegionsRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeRegionsRequest::SetRegionName
void SetRegionName(const Aws::String &value)
Definition: DescribeRegionsRequest.h:91
Aws::DirectoryService::Model::DescribeRegionsRequest::SetRegionName
void SetRegionName(const char *value)
Definition: DescribeRegionsRequest.h:101
Aws::DirectoryService::Model::DescribeRegionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeRegionsRequest.h:129
DirectoryServiceRequest.h