AWS SDK for C++  1.9.160
AWS SDK for C++
ListLocationsResult.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 DataSync
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<LocationListEntry>& GetLocations() const{ return m_locations; }
46 
50  inline void SetLocations(const Aws::Vector<LocationListEntry>& value) { m_locations = value; }
51 
55  inline void SetLocations(Aws::Vector<LocationListEntry>&& value) { m_locations = std::move(value); }
56 
60  inline ListLocationsResult& WithLocations(const Aws::Vector<LocationListEntry>& value) { SetLocations(value); return *this;}
61 
65  inline ListLocationsResult& WithLocations(Aws::Vector<LocationListEntry>&& value) { SetLocations(std::move(value)); return *this;}
66 
70  inline ListLocationsResult& AddLocations(const LocationListEntry& value) { m_locations.push_back(value); return *this; }
71 
75  inline ListLocationsResult& AddLocations(LocationListEntry&& value) { m_locations.push_back(std::move(value)); return *this; }
76 
77 
82  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 
88  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
89 
94  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
95 
100  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
101 
106  inline ListLocationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
112  inline ListLocationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 
118  inline ListLocationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119 
120  private:
121 
122  Aws::Vector<LocationListEntry> m_locations;
123 
124  Aws::String m_nextToken;
125  };
126 
127 } // namespace Model
128 } // namespace DataSync
129 } // namespace Aws
Aws::DataSync::Model::ListLocationsResult::SetLocations
void SetLocations(const Aws::Vector< LocationListEntry > &value)
Definition: ListLocationsResult.h:50
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::ListLocationsResult::WithNextToken
ListLocationsResult & WithNextToken(const Aws::String &value)
Definition: ListLocationsResult.h:106
Aws::DataSync::Model::ListLocationsResult::WithLocations
ListLocationsResult & WithLocations(Aws::Vector< LocationListEntry > &&value)
Definition: ListLocationsResult.h:65
Aws::DataSync::Model::ListLocationsResult::SetLocations
void SetLocations(Aws::Vector< LocationListEntry > &&value)
Definition: ListLocationsResult.h:55
Aws::DataSync::Model::ListLocationsResult::WithNextToken
ListLocationsResult & WithNextToken(Aws::String &&value)
Definition: ListLocationsResult.h:112
Aws::DataSync::Model::ListLocationsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListLocationsResult.h:100
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DataSync::Model::ListLocationsResult::AddLocations
ListLocationsResult & AddLocations(LocationListEntry &&value)
Definition: ListLocationsResult.h:75
Aws::DataSync::Model::ListLocationsResult::WithNextToken
ListLocationsResult & WithNextToken(const char *value)
Definition: ListLocationsResult.h:118
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::ListLocationsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListLocationsResult.h:94
Aws::DataSync::Model::ListLocationsResult::AddLocations
ListLocationsResult & AddLocations(const LocationListEntry &value)
Definition: ListLocationsResult.h:70
Aws::DataSync::Model::ListLocationsResult::ListLocationsResult
ListLocationsResult()
Aws::DataSync::Model::ListLocationsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListLocationsResult.h:82
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::ListLocationsResult::WithLocations
ListLocationsResult & WithLocations(const Aws::Vector< LocationListEntry > &value)
Definition: ListLocationsResult.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::LocationListEntry
Definition: LocationListEntry.h:36
Aws::DataSync::Model::ListLocationsResult::ListLocationsResult
ListLocationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DataSync::Model::ListLocationsResult
Definition: ListLocationsResult.h:35
Aws::DataSync::Model::ListLocationsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListLocationsResult.h:88
Aws::DataSync::Model::ListLocationsResult::operator=
ListLocationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DataSync::Model::ListLocationsResult::GetLocations
const Aws::Vector< LocationListEntry > & GetLocations() const
Definition: ListLocationsResult.h:45
LocationListEntry.h