AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DescribeImagePermissionsRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace AppStream
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeImagePermissions"; }
32
34
36
37
42 inline const Aws::String& GetName() const{ return m_name; }
43
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67
72 inline DescribeImagePermissionsRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73
78 inline DescribeImagePermissionsRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79
84 inline DescribeImagePermissionsRequest& WithName(const char* value) { SetName(value); return *this;}
85
86
90 inline int GetMaxResults() const{ return m_maxResults; }
91
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96
100 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101
105 inline DescribeImagePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
106
107
112 inline const Aws::Vector<Aws::String>& GetSharedAwsAccountIds() const{ return m_sharedAwsAccountIds; }
113
118 inline bool SharedAwsAccountIdsHasBeenSet() const { return m_sharedAwsAccountIdsHasBeenSet; }
119
124 inline void SetSharedAwsAccountIds(const Aws::Vector<Aws::String>& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds = value; }
125
130 inline void SetSharedAwsAccountIds(Aws::Vector<Aws::String>&& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds = std::move(value); }
131
137
143
148 inline DescribeImagePermissionsRequest& AddSharedAwsAccountIds(const Aws::String& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.push_back(value); return *this; }
149
154 inline DescribeImagePermissionsRequest& AddSharedAwsAccountIds(Aws::String&& value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.push_back(std::move(value)); return *this; }
155
160 inline DescribeImagePermissionsRequest& AddSharedAwsAccountIds(const char* value) { m_sharedAwsAccountIdsHasBeenSet = true; m_sharedAwsAccountIds.push_back(value); return *this; }
161
162
167 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
168
173 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
174
179 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
180
185 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
186
191 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
192
197 inline DescribeImagePermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
198
203 inline DescribeImagePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
204
209 inline DescribeImagePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
210
211 private:
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
216 int m_maxResults;
217 bool m_maxResultsHasBeenSet = false;
218
219 Aws::Vector<Aws::String> m_sharedAwsAccountIds;
220 bool m_sharedAwsAccountIdsHasBeenSet = false;
221
222 Aws::String m_nextToken;
223 bool m_nextTokenHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace AppStream
228} // namespace Aws
#define AWS_APPSTREAM_API
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(Aws::String &&value)
DescribeImagePermissionsRequest & WithNextToken(Aws::String &&value)
DescribeImagePermissionsRequest & WithName(const char *value)
void SetSharedAwsAccountIds(const Aws::Vector< Aws::String > &value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetSharedAwsAccountIds() const
DescribeImagePermissionsRequest & WithNextToken(const char *value)
DescribeImagePermissionsRequest & WithName(const Aws::String &value)
DescribeImagePermissionsRequest & WithSharedAwsAccountIds(Aws::Vector< Aws::String > &&value)
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(const Aws::String &value)
DescribeImagePermissionsRequest & WithSharedAwsAccountIds(const Aws::Vector< Aws::String > &value)
DescribeImagePermissionsRequest & WithNextToken(const Aws::String &value)
DescribeImagePermissionsRequest & WithName(Aws::String &&value)
DescribeImagePermissionsRequest & AddSharedAwsAccountIds(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector