1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/chime-sdk-messaging/ChimeSDKMessaging_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/chime-sdk-messaging/model/ChannelMembershipSummary.h>
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 ChimeSDKMessaging
26 {
27 namespace Model
28 {
29   class AWS_CHIMESDKMESSAGING_API ListChannelMembershipsResult
30   {
31   public:
32     ListChannelMembershipsResult();
33     ListChannelMembershipsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     ListChannelMembershipsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>The ARN of the channel.</p>
39      */
GetChannelArn()40     inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
41 
42     /**
43      * <p>The ARN of the channel.</p>
44      */
SetChannelArn(const Aws::String & value)45     inline void SetChannelArn(const Aws::String& value) { m_channelArn = value; }
46 
47     /**
48      * <p>The ARN of the channel.</p>
49      */
SetChannelArn(Aws::String && value)50     inline void SetChannelArn(Aws::String&& value) { m_channelArn = std::move(value); }
51 
52     /**
53      * <p>The ARN of the channel.</p>
54      */
SetChannelArn(const char * value)55     inline void SetChannelArn(const char* value) { m_channelArn.assign(value); }
56 
57     /**
58      * <p>The ARN of the channel.</p>
59      */
WithChannelArn(const Aws::String & value)60     inline ListChannelMembershipsResult& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
61 
62     /**
63      * <p>The ARN of the channel.</p>
64      */
WithChannelArn(Aws::String && value)65     inline ListChannelMembershipsResult& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
66 
67     /**
68      * <p>The ARN of the channel.</p>
69      */
WithChannelArn(const char * value)70     inline ListChannelMembershipsResult& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
71 
72 
73     /**
74      * <p>The information for the requested channel memberships.</p>
75      */
GetChannelMemberships()76     inline const Aws::Vector<ChannelMembershipSummary>& GetChannelMemberships() const{ return m_channelMemberships; }
77 
78     /**
79      * <p>The information for the requested channel memberships.</p>
80      */
SetChannelMemberships(const Aws::Vector<ChannelMembershipSummary> & value)81     inline void SetChannelMemberships(const Aws::Vector<ChannelMembershipSummary>& value) { m_channelMemberships = value; }
82 
83     /**
84      * <p>The information for the requested channel memberships.</p>
85      */
SetChannelMemberships(Aws::Vector<ChannelMembershipSummary> && value)86     inline void SetChannelMemberships(Aws::Vector<ChannelMembershipSummary>&& value) { m_channelMemberships = std::move(value); }
87 
88     /**
89      * <p>The information for the requested channel memberships.</p>
90      */
WithChannelMemberships(const Aws::Vector<ChannelMembershipSummary> & value)91     inline ListChannelMembershipsResult& WithChannelMemberships(const Aws::Vector<ChannelMembershipSummary>& value) { SetChannelMemberships(value); return *this;}
92 
93     /**
94      * <p>The information for the requested channel memberships.</p>
95      */
WithChannelMemberships(Aws::Vector<ChannelMembershipSummary> && value)96     inline ListChannelMembershipsResult& WithChannelMemberships(Aws::Vector<ChannelMembershipSummary>&& value) { SetChannelMemberships(std::move(value)); return *this;}
97 
98     /**
99      * <p>The information for the requested channel memberships.</p>
100      */
AddChannelMemberships(const ChannelMembershipSummary & value)101     inline ListChannelMembershipsResult& AddChannelMemberships(const ChannelMembershipSummary& value) { m_channelMemberships.push_back(value); return *this; }
102 
103     /**
104      * <p>The information for the requested channel memberships.</p>
105      */
AddChannelMemberships(ChannelMembershipSummary && value)106     inline ListChannelMembershipsResult& AddChannelMemberships(ChannelMembershipSummary&& value) { m_channelMemberships.push_back(std::move(value)); return *this; }
107 
108 
109     /**
110      * <p>The token passed by previous API calls until all requested channel
111      * memberships are returned.</p>
112      */
GetNextToken()113     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
114 
115     /**
116      * <p>The token passed by previous API calls until all requested channel
117      * memberships are returned.</p>
118      */
SetNextToken(const Aws::String & value)119     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
120 
121     /**
122      * <p>The token passed by previous API calls until all requested channel
123      * memberships are returned.</p>
124      */
SetNextToken(Aws::String && value)125     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
126 
127     /**
128      * <p>The token passed by previous API calls until all requested channel
129      * memberships are returned.</p>
130      */
SetNextToken(const char * value)131     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
132 
133     /**
134      * <p>The token passed by previous API calls until all requested channel
135      * memberships are returned.</p>
136      */
WithNextToken(const Aws::String & value)137     inline ListChannelMembershipsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
138 
139     /**
140      * <p>The token passed by previous API calls until all requested channel
141      * memberships are returned.</p>
142      */
WithNextToken(Aws::String && value)143     inline ListChannelMembershipsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
144 
145     /**
146      * <p>The token passed by previous API calls until all requested channel
147      * memberships are returned.</p>
148      */
WithNextToken(const char * value)149     inline ListChannelMembershipsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
150 
151   private:
152 
153     Aws::String m_channelArn;
154 
155     Aws::Vector<ChannelMembershipSummary> m_channelMemberships;
156 
157     Aws::String m_nextToken;
158   };
159 
160 } // namespace Model
161 } // namespace ChimeSDKMessaging
162 } // namespace Aws
163