AWS SDK for C++  1.8.56
AWS SDK for C++
DescribeEnvironmentMembershipsResult.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 Cloud9
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<EnvironmentMember>& GetMemberships() const{ return m_memberships; }
41 
45  inline void SetMemberships(const Aws::Vector<EnvironmentMember>& value) { m_memberships = value; }
46 
50  inline void SetMemberships(Aws::Vector<EnvironmentMember>&& value) { m_memberships = std::move(value); }
51 
55  inline DescribeEnvironmentMembershipsResult& WithMemberships(const Aws::Vector<EnvironmentMember>& value) { SetMemberships(value); return *this;}
56 
60  inline DescribeEnvironmentMembershipsResult& WithMemberships(Aws::Vector<EnvironmentMember>&& value) { SetMemberships(std::move(value)); return *this;}
61 
65  inline DescribeEnvironmentMembershipsResult& AddMemberships(const EnvironmentMember& value) { m_memberships.push_back(value); return *this; }
66 
70  inline DescribeEnvironmentMembershipsResult& AddMemberships(EnvironmentMember&& value) { m_memberships.push_back(std::move(value)); return *this; }
71 
72 
79  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 
87  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
88 
95  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
96 
103  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
104 
111  inline DescribeEnvironmentMembershipsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 
119  inline DescribeEnvironmentMembershipsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
127  inline DescribeEnvironmentMembershipsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<EnvironmentMember> m_memberships;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace Cloud9
138 } // namespace Aws
void SetMemberships(const Aws::Vector< EnvironmentMember > &value)
DescribeEnvironmentMembershipsResult & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeEnvironmentMembershipsResult & WithMemberships(Aws::Vector< EnvironmentMember > &&value)
DescribeEnvironmentMembershipsResult & AddMemberships(const EnvironmentMember &value)
DescribeEnvironmentMembershipsResult & WithNextToken(Aws::String &&value)
DescribeEnvironmentMembershipsResult & WithMemberships(const Aws::Vector< EnvironmentMember > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeEnvironmentMembershipsResult & WithNextToken(const Aws::String &value)
#define AWS_CLOUD9_API
DescribeEnvironmentMembershipsResult & AddMemberships(EnvironmentMember &&value)