AWS SDK for C++  1.9.104
AWS SDK for C++
GetActiveNamesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Aws::String>& GetActiveNames() const{ return m_activeNames; }
40 
44  inline void SetActiveNames(const Aws::Vector<Aws::String>& value) { m_activeNames = value; }
45 
49  inline void SetActiveNames(Aws::Vector<Aws::String>&& value) { m_activeNames = std::move(value); }
50 
54  inline GetActiveNamesResult& WithActiveNames(const Aws::Vector<Aws::String>& value) { SetActiveNames(value); return *this;}
55 
59  inline GetActiveNamesResult& WithActiveNames(Aws::Vector<Aws::String>&& value) { SetActiveNames(std::move(value)); return *this;}
60 
64  inline GetActiveNamesResult& AddActiveNames(const Aws::String& value) { m_activeNames.push_back(value); return *this; }
65 
69  inline GetActiveNamesResult& AddActiveNames(Aws::String&& value) { m_activeNames.push_back(std::move(value)); return *this; }
70 
74  inline GetActiveNamesResult& AddActiveNames(const char* value) { m_activeNames.push_back(value); return *this; }
75 
76 
84  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
85 
93  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
94 
102  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
103 
111  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
112 
120  inline GetActiveNamesResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
121 
129  inline GetActiveNamesResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
130 
138  inline GetActiveNamesResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
139 
140  private:
141 
142  Aws::Vector<Aws::String> m_activeNames;
143 
144  Aws::String m_nextPageToken;
145  };
146 
147 } // namespace Model
148 } // namespace Lightsail
149 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetActiveNamesResult::SetActiveNames
void SetActiveNames(Aws::Vector< Aws::String > &&value)
Definition: GetActiveNamesResult.h:49
Aws::Lightsail::Model::GetActiveNamesResult::WithNextPageToken
GetActiveNamesResult & WithNextPageToken(Aws::String &&value)
Definition: GetActiveNamesResult.h:129
Aws::Lightsail::Model::GetActiveNamesResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetActiveNamesResult.h:111
Aws::Lightsail::Model::GetActiveNamesResult::WithActiveNames
GetActiveNamesResult & WithActiveNames(Aws::Vector< Aws::String > &&value)
Definition: GetActiveNamesResult.h:59
Aws::Lightsail::Model::GetActiveNamesResult::operator=
GetActiveNamesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetActiveNamesResult::AddActiveNames
GetActiveNamesResult & AddActiveNames(const char *value)
Definition: GetActiveNamesResult.h:74
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetActiveNamesResult
Definition: GetActiveNamesResult.h:29
Aws::Lightsail::Model::GetActiveNamesResult::WithActiveNames
GetActiveNamesResult & WithActiveNames(const Aws::Vector< Aws::String > &value)
Definition: GetActiveNamesResult.h:54
Aws::Lightsail::Model::GetActiveNamesResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetActiveNamesResult.h:93
AWSString.h
Aws::Lightsail::Model::GetActiveNamesResult::AddActiveNames
GetActiveNamesResult & AddActiveNames(const Aws::String &value)
Definition: GetActiveNamesResult.h:64
Aws::Lightsail::Model::GetActiveNamesResult::AddActiveNames
GetActiveNamesResult & AddActiveNames(Aws::String &&value)
Definition: GetActiveNamesResult.h:69
Aws::Lightsail::Model::GetActiveNamesResult::WithNextPageToken
GetActiveNamesResult & WithNextPageToken(const char *value)
Definition: GetActiveNamesResult.h:138
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetActiveNamesResult::GetActiveNamesResult
GetActiveNamesResult()
Aws::Lightsail::Model::GetActiveNamesResult::WithNextPageToken
GetActiveNamesResult & WithNextPageToken(const Aws::String &value)
Definition: GetActiveNamesResult.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetActiveNamesResult::GetActiveNamesResult
GetActiveNamesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetActiveNamesResult::SetActiveNames
void SetActiveNames(const Aws::Vector< Aws::String > &value)
Definition: GetActiveNamesResult.h:44
Aws::Lightsail::Model::GetActiveNamesResult::GetActiveNames
const Aws::Vector< Aws::String > & GetActiveNames() const
Definition: GetActiveNamesResult.h:39
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetActiveNamesResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetActiveNamesResult.h:102
Aws::Lightsail::Model::GetActiveNamesResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetActiveNamesResult.h:84