AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListRegionsRequest.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/account/AccountRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/account/model/RegionOptStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Account
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ACCOUNT_API ListRegionsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListRegions"; }
33
34 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
35
36
38
60 inline const Aws::String& GetAccountId() const{ return m_accountId; }
61 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
62 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
63 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
64 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
65 inline ListRegionsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
66 inline ListRegionsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
67 inline ListRegionsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
69
71
82 inline int GetMaxResults() const{ return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
85 inline ListRegionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
87
89
96 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
99 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
100 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
101 inline ListRegionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 inline ListRegionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
103 inline ListRegionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105
107
113 inline const Aws::Vector<RegionOptStatus>& GetRegionOptStatusContains() const{ return m_regionOptStatusContains; }
114 inline bool RegionOptStatusContainsHasBeenSet() const { return m_regionOptStatusContainsHasBeenSet; }
115 inline void SetRegionOptStatusContains(const Aws::Vector<RegionOptStatus>& value) { m_regionOptStatusContainsHasBeenSet = true; m_regionOptStatusContains = value; }
116 inline void SetRegionOptStatusContains(Aws::Vector<RegionOptStatus>&& value) { m_regionOptStatusContainsHasBeenSet = true; m_regionOptStatusContains = std::move(value); }
119 inline ListRegionsRequest& AddRegionOptStatusContains(const RegionOptStatus& value) { m_regionOptStatusContainsHasBeenSet = true; m_regionOptStatusContains.push_back(value); return *this; }
120 inline ListRegionsRequest& AddRegionOptStatusContains(RegionOptStatus&& value) { m_regionOptStatusContainsHasBeenSet = true; m_regionOptStatusContains.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::String m_accountId;
125 bool m_accountIdHasBeenSet = false;
126
127 int m_maxResults;
128 bool m_maxResultsHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132
133 Aws::Vector<RegionOptStatus> m_regionOptStatusContains;
134 bool m_regionOptStatusContainsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Account
139} // namespace Aws
ListRegionsRequest & WithAccountId(const char *value)
const Aws::String & GetNextToken() const
ListRegionsRequest & AddRegionOptStatusContains(RegionOptStatus &&value)
void SetRegionOptStatusContains(const Aws::Vector< RegionOptStatus > &value)
virtual const char * GetServiceRequestName() const override
AWS_ACCOUNT_API Aws::String SerializePayload() const override
const Aws::String & GetAccountId() const
ListRegionsRequest & WithMaxResults(int value)
void SetAccountId(const Aws::String &value)
ListRegionsRequest & WithNextToken(Aws::String &&value)
ListRegionsRequest & WithRegionOptStatusContains(const Aws::Vector< RegionOptStatus > &value)
ListRegionsRequest & WithAccountId(const Aws::String &value)
ListRegionsRequest & WithNextToken(const Aws::String &value)
void SetNextToken(const Aws::String &value)
ListRegionsRequest & WithAccountId(Aws::String &&value)
const Aws::Vector< RegionOptStatus > & GetRegionOptStatusContains() const
ListRegionsRequest & AddRegionOptStatusContains(const RegionOptStatus &value)
ListRegionsRequest & WithNextToken(const char *value)
ListRegionsRequest & WithRegionOptStatusContains(Aws::Vector< RegionOptStatus > &&value)
void SetRegionOptStatusContains(Aws::Vector< RegionOptStatus > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector