AWS SDK for C++  1.9.124
AWS SDK for C++
ListEnvironmentsResult.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 MWAA
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<Aws::String>& GetEnvironments() const{ return m_environments; }
40 
44  inline void SetEnvironments(const Aws::Vector<Aws::String>& value) { m_environments = value; }
45 
49  inline void SetEnvironments(Aws::Vector<Aws::String>&& value) { m_environments = std::move(value); }
50 
54  inline ListEnvironmentsResult& WithEnvironments(const Aws::Vector<Aws::String>& value) { SetEnvironments(value); return *this;}
55 
59  inline ListEnvironmentsResult& WithEnvironments(Aws::Vector<Aws::String>&& value) { SetEnvironments(std::move(value)); return *this;}
60 
64  inline ListEnvironmentsResult& AddEnvironments(const Aws::String& value) { m_environments.push_back(value); return *this; }
65 
69  inline ListEnvironmentsResult& AddEnvironments(Aws::String&& value) { m_environments.push_back(std::move(value)); return *this; }
70 
74  inline ListEnvironmentsResult& AddEnvironments(const char* value) { m_environments.push_back(value); return *this; }
75 
76 
80  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
90  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
91 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
100  inline ListEnvironmentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
101 
105  inline ListEnvironmentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 
110  inline ListEnvironmentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
111 
112  private:
113 
114  Aws::Vector<Aws::String> m_environments;
115 
116  Aws::String m_nextToken;
117  };
118 
119 } // namespace Model
120 } // namespace MWAA
121 } // namespace Aws
Aws::MWAA::Model::ListEnvironmentsResult::AddEnvironments
ListEnvironmentsResult & AddEnvironments(Aws::String &&value)
Definition: ListEnvironmentsResult.h:69
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MWAA::Model::ListEnvironmentsResult::AddEnvironments
ListEnvironmentsResult & AddEnvironments(const char *value)
Definition: ListEnvironmentsResult.h:74
Aws::MWAA::Model::ListEnvironmentsResult::WithNextToken
ListEnvironmentsResult & WithNextToken(const Aws::String &value)
Definition: ListEnvironmentsResult.h:100
Aws::MWAA::Model::ListEnvironmentsResult::WithEnvironments
ListEnvironmentsResult & WithEnvironments(const Aws::Vector< Aws::String > &value)
Definition: ListEnvironmentsResult.h:54
Aws::MWAA::Model::ListEnvironmentsResult::WithNextToken
ListEnvironmentsResult & WithNextToken(const char *value)
Definition: ListEnvironmentsResult.h:110
Aws::MWAA::Model::ListEnvironmentsResult::SetEnvironments
void SetEnvironments(Aws::Vector< Aws::String > &&value)
Definition: ListEnvironmentsResult.h:49
Aws::MWAA::Model::ListEnvironmentsResult
Definition: ListEnvironmentsResult.h:29
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MWAA::Model::ListEnvironmentsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListEnvironmentsResult.h:80
Aws::MWAA::Model::ListEnvironmentsResult::ListEnvironmentsResult
ListEnvironmentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::MWAA::Model::ListEnvironmentsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListEnvironmentsResult.h:85
Aws::MWAA::Model::ListEnvironmentsResult::SetEnvironments
void SetEnvironments(const Aws::Vector< Aws::String > &value)
Definition: ListEnvironmentsResult.h:44
Aws::MWAA::Model::ListEnvironmentsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListEnvironmentsResult.h:95
AWSString.h
Aws::MWAA::Model::ListEnvironmentsResult::operator=
ListEnvironmentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MWAA::Model::ListEnvironmentsResult::WithNextToken
ListEnvironmentsResult & WithNextToken(Aws::String &&value)
Definition: ListEnvironmentsResult.h:105
AWS_MWAA_API
#define AWS_MWAA_API
Definition: MWAA_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MWAA::Model::ListEnvironmentsResult::GetEnvironments
const Aws::Vector< Aws::String > & GetEnvironments() const
Definition: ListEnvironmentsResult.h:39
Aws::MWAA::Model::ListEnvironmentsResult::ListEnvironmentsResult
ListEnvironmentsResult()
Aws::MWAA::Model::ListEnvironmentsResult::WithEnvironments
ListEnvironmentsResult & WithEnvironments(Aws::Vector< Aws::String > &&value)
Definition: ListEnvironmentsResult.h:59
Aws::MWAA::Model::ListEnvironmentsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListEnvironmentsResult.h:90
Aws::MWAA::Model::ListEnvironmentsResult::AddEnvironments
ListEnvironmentsResult & AddEnvironments(const Aws::String &value)
Definition: ListEnvironmentsResult.h:64
MWAA_EXPORTS.h