AWS SDK for C++  1.9.123
AWS SDK for C++
DescribeRegionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace DirectoryService
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<RegionDescription>& GetRegionsDescription() const{ return m_regionsDescription; }
42 
47  inline void SetRegionsDescription(const Aws::Vector<RegionDescription>& value) { m_regionsDescription = value; }
48 
53  inline void SetRegionsDescription(Aws::Vector<RegionDescription>&& value) { m_regionsDescription = std::move(value); }
54 
59  inline DescribeRegionsResult& WithRegionsDescription(const Aws::Vector<RegionDescription>& value) { SetRegionsDescription(value); return *this;}
60 
65  inline DescribeRegionsResult& WithRegionsDescription(Aws::Vector<RegionDescription>&& value) { SetRegionsDescription(std::move(value)); return *this;}
66 
71  inline DescribeRegionsResult& AddRegionsDescription(const RegionDescription& value) { m_regionsDescription.push_back(value); return *this; }
72 
77  inline DescribeRegionsResult& AddRegionsDescription(RegionDescription&& value) { m_regionsDescription.push_back(std::move(value)); return *this; }
78 
79 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
92  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
93 
99  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
100 
106  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
107 
113  inline DescribeRegionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 
120  inline DescribeRegionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
127  inline DescribeRegionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<RegionDescription> m_regionsDescription;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace DirectoryService
138 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectoryService::Model::DescribeRegionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeRegionsResult.h:99
Aws::DirectoryService::Model::DescribeRegionsResult::SetRegionsDescription
void SetRegionsDescription(const Aws::Vector< RegionDescription > &value)
Definition: DescribeRegionsResult.h:47
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::DescribeRegionsResult::WithRegionsDescription
DescribeRegionsResult & WithRegionsDescription(Aws::Vector< RegionDescription > &&value)
Definition: DescribeRegionsResult.h:65
Aws::DirectoryService::Model::DescribeRegionsResult::AddRegionsDescription
DescribeRegionsResult & AddRegionsDescription(RegionDescription &&value)
Definition: DescribeRegionsResult.h:77
Aws::DirectoryService::Model::DescribeRegionsResult::DescribeRegionsResult
DescribeRegionsResult()
Aws::DirectoryService::Model::DescribeRegionsResult::WithNextToken
DescribeRegionsResult & WithNextToken(const Aws::String &value)
Definition: DescribeRegionsResult.h:113
Aws::DirectoryService::Model::DescribeRegionsResult::AddRegionsDescription
DescribeRegionsResult & AddRegionsDescription(const RegionDescription &value)
Definition: DescribeRegionsResult.h:71
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::DescribeRegionsResult::WithNextToken
DescribeRegionsResult & WithNextToken(Aws::String &&value)
Definition: DescribeRegionsResult.h:120
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RegionDescription.h
Aws::DirectoryService::Model::DescribeRegionsResult::WithNextToken
DescribeRegionsResult & WithNextToken(const char *value)
Definition: DescribeRegionsResult.h:127
AWSVector.h
Aws::DirectoryService::Model::DescribeRegionsResult::WithRegionsDescription
DescribeRegionsResult & WithRegionsDescription(const Aws::Vector< RegionDescription > &value)
Definition: DescribeRegionsResult.h:59
Aws::DirectoryService::Model::DescribeRegionsResult::SetRegionsDescription
void SetRegionsDescription(Aws::Vector< RegionDescription > &&value)
Definition: DescribeRegionsResult.h:53
Aws::DirectoryService::Model::DescribeRegionsResult::DescribeRegionsResult
DescribeRegionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::RegionDescription
Definition: RegionDescription.h:37
Aws::DirectoryService::Model::DescribeRegionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeRegionsResult.h:92
Aws::DirectoryService::Model::DescribeRegionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeRegionsResult.h:85
AWSString.h
Aws::DirectoryService::Model::DescribeRegionsResult::operator=
DescribeRegionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::DescribeRegionsResult::GetRegionsDescription
const Aws::Vector< RegionDescription > & GetRegionsDescription() const
Definition: DescribeRegionsResult.h:41
Aws::DirectoryService::Model::DescribeRegionsResult
Definition: DescribeRegionsResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::DescribeRegionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeRegionsResult.h:106